Cherrytree not starting

I saw a demonstration of Cherrytree amd thought it would be quite useful for me. I installed it and tried to start it. It would not start. So, I opened a terminal and tried to start it and got an import error:

bart@MSI-5960:~> cherrytree
Traceback (most recent call last):
  File "/usr/bin/cherrytree", line 78, in <module>
    f_main(args)
  File "/usr/bin/cherrytree", line 49, in f_main
    import main
  File "/usr/share/cherrytree/modules/main.py", line 24, in <module>
    import dbus
ImportError: No module named dbus
bart@MSI-5960:~> 

I looked for dbus

bart@MSI-5960:~> su -
Password: 
MSI-5960:~ # find / -name dbus
/var/lib/systemd/migrated/dbus
/var/lib/dbus
/run/dbus
find: ‘/run/user/1000/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied
/usr/lib/cups/notifier/dbus
/usr/lib/python3.6/site-packages/dbus
/usr/lib/python3.6/site-packages/slip/dbus
/usr/share/doc/packages/dnsmasq/dbus
/usr/lib64/ruby/gems/2.5.0/gems/ruby-dbus-0.14.0/lib/dbus
find: ‘/proc/2533/task/2533/net’: Invalid argument
find: ‘/proc/2533/net’: Invalid argument
find: ‘/mnt/Server’: Permission denied
/etc/apparmor.d/abstractions/dbus
MSI-5960:~ #

Line 24 in /usr/share/cherrytree/modules/main.py simply says “import dbus”

What am I missing?

Bart

Hi
Is python36-dbus-python installed?

I would say not. I did a find and it’s not shown. I used yast -> softwaremanagement -> search and got the no results message.

Is it part of a package?

I did the install using yast and thought all the requirements would have been included.

Bart

Hi
The Cherrytree version in Leap is unsupported, I maintain the newer version in Tumbleweed…

Install python-dbus-python and all should be good.

I tried that and no joy Same error message :frowning:

It seems to be a great utility, I’m thinking I could really use it.

Is there a way to install the tumbleweed version in leap?

Bart

Hi
I tested the Leap 15.3 version here and all working fine after installing that python package…

Nope, the newer version is completely different build process and not supported in Leap :frowning:

Using yast, and searching for python-dbus-python, the package is shown as python-dbus-python-common-devel. Is that is the one you are recommending I install? (I did).

If I understand what I’m seeing in the error message, cherrytree is looking for a .py module called dbus. There is no module called dbus.py in /usr/share/cherrytree/modules/.

Using find I see only these three items:

MSI-5960:~ # find / -name dbus.py
/usr/lib/python3.6/site-packages/firewall/config/dbus.py
/usr/lib/python3.6/site-packages/apparmor/rule/dbus.py
/usr/share/konversation/scripting_support/python/konversation/dbus.py

It would seem I should have /usr/lib/python3.6/site-packages/cherrytree/dbus.py or a generic dbus.py somewhere on my system.

Something has to be different between my system and yours.

Hi
It’s python2 not python3, python2-dbus-python when I installed it selected capabilities and installed…

AHA! Now it works! I just searched for python-dbus-python and installed it. That little 2 was all it took.

Thank you so much!

Bart