backintime ImportError: No module named 'dbus'

Asked by Sven

Hi
I tried to install from source backintime-1.1.18 on CentOs7 like written in README (configure, make)

Unit test fails

$ make test
coverage run -p -m unittest -b test/test_applicationinstance.py
Coverage.py warning: No data was collected.
Traceback (most recent call last):
  File "/usr/lib64/python2.7/unittest/__main__.py", line 12, in <module>
    main(module=None)
  File "/usr/lib64/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/usr/lib64/python2.7/unittest/main.py", line 149, in parseArgs
    self.createTests()
  File "/usr/lib64/python2.7/unittest/main.py", line 158, in createTests
    self.module)
  File "/usr/lib64/python2.7/unittest/loader.py", line 128, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib64/python2.7/unittest/loader.py", line 91, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
ImportError: Import by filename is not supported.
make: *** [unittest] Error 1

When I try to run backintime it fails like this:

$ cd common && ./backintime
Traceback (most recent call last):
  File "/home/sforner/tmp/backintime/backintime-1.1.18/common/backintime.py", line 24, in <module>
    import config
  File "/home/sforner/tmp/backintime/backintime-1.1.18/common/config.py", line 31, in <module>
    import tools
  File "/home/sforner/tmp/backintime/backintime-1.1.18/common/tools.py", line 45, in <module>
    import dbus
ImportError: No module named 'dbus'

My setup:
Python 3.3.2
Installed Packages
dbus.x86_64 1:1.6.12-17.el7
dbus-python.x86_64 1.1.1-9.el7

How to fix this? Any help appreciated.

Thx

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu backintime Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Germar (germar) said :
#1

You need to install the dependency 'python3-dbus'.

Please hop over to https://github.com/bit-team/backintime for further questions as this is only for Ubuntu...

Revision history for this message
Sven (misterxubuntu) said :
#2

Thx. Yes will switch.
Looks like I have trouble installing the correct python3-dbus package on CentOs.

Revision history for this message
Germar (germar) said :
#3

I've not much experience with CentOS but I think I recently used python34-dbus

Can you help with this problem?

Provide an answer of your own, or ask Sven for more information if necessary.

To post a message you must log in.