-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Still no solution to - ImportError: No module named 'dbus' #871
Comments
May you be missing python3-dbus, perhaps? Anyways, I have it, but I cannot launch BiT either:
Note that I don't have any python3 installed in /usr/local, or anything. I think the issue is because python3-dbus.mainloop.pyqt5 (5.9.2) package is not delivering any so file anymore:
Any help is more than welcome |
In my distribution (Sabayon/Gentoo) the package Dbus Python 1.2.4 is installed which has runtime dependencies: dev-lang/python:3.5[threads(+)] >=dev-lang/python-2.7.5-r2:2.7[threads(+) >=dev-lang/python-exec-2:2[python_targets_python2_7,python_targets_python3_5,-python_single_target_python2_7,-python_single_target_python3_4,-python_single_target_python3_5,-python_single_target_python3_6] >=dev-libs/dbus-glib-0.100:0 >=sys-apps/dbus-1.6:0 Both python 2.7.5 and python 3.5 are installed including pyqt5 5.9.2 in python3.5 the file exists Trying to sym-link as dbus.py in /usr/share/backintime/common/ does not help The version BiT 1.2.0~alpha0 does not seem to be a branch on Git. Where can I get this source code to try? |
I have same problem with backintime (BiT) v1.2.0-alpha17 which produces the error that others have found above. When I enter "systemctl status dbus.service" this error is reported: Months later: I think I have now discovered the source of my problem and can run Backintime v1.1.24 in LinuxMint18.3 (uses Ubuntu 16.04 repositories) distribution deb file with no problems. Below I describe how I fixed my python setup to allow BIT to run correctly. I then installed Anaconda python3 within which I can run Spyder. Anaconda installs itself quite separately from Ubuntu distribution files in my home directory. This allows me to have different python versions running which in no way interact with the Ubuntu setup. If I use pip without understanding how to manage it separately from the Ubuntu distribution files it is likely to install files within the system directories which will potentially break the Ubuntu setup. This is what appears to have happened to muck up the dbus setup and stop BIT from working. |
If I manually execute
Ubuntu has made python3-dbus.mainloop.pyqt5 a dummy package without any |
Just as a hint what might help in a similar way others too, when the above error message occurs: |
checking it out, thanks for sharing |
Not working here:
@jaleks, what distribution (and distro version) are you using? |
Ok, I fixed my problem in KDE neon User Edition (based on Ubuntu 16.04) by:
it seems all the problem was that pyqt5.cpython-35m-x86_64-linux-gnu.so was missing in my system. A KDE neon packaging bug, I guess. |
I realise this is closed, but I have been having this same issue for awhile in Ubuntu 20.04 LTS I had to run |
Despite being a closed issue: IMHO the documentation of the dependencies must be updated. I will open a new issue referencing this. @webmasterMeyers Thanks for your input! |
Closing as duplicate of #1233. |
Since KDE plasma 5 (now 5.42) and Qt5 (now 5.9.4) dropped KDE4 support some time last year Backintime fails to start. It would be really useful to continue using Backintime.
$ backintime Traceback (most recent call last): File "/usr/share/backintime/common/backintime.py", line 24, in <module> import config File "/usr/share/backintime/common/config.py", line 31, in <module> import tools File "/usr/share/backintime/common/tools.py", line 45, in <module> import dbus ImportError: No module named 'dbus'
or
$ backintime-qt Traceback (most recent call last): File "/usr/share/backintime/qt/app.py", line 35, in <module> import qttools File "/usr/share/backintime/qt/qttools.py", line 47, in <module> import snapshots File "/usr/share/backintime/common/snapshots.py", line 32, in <module> import config File "/usr/share/backintime/common/config.py", line 31, in <module> import tools File "/usr/share/backintime/common/tools.py", line 45, in <module> import dbus ImportError: No module named 'dbus'
It looks like there should be a module /usr/share/backintime/common/dbus.py which is missing?
Installing from Sabayon repo or compiling from Github source gives the same result. Because both 2.7.14 and Python 3.5.4 are installed the configure switch --python3 was used when compiling.
The text was updated successfully, but these errors were encountered: