Skip to content
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

Missing dependency on debian:8.10 vanilla #249

Closed
eaglerainbow opened this issue Dec 29, 2017 · 2 comments
Closed

Missing dependency on debian:8.10 vanilla #249

eaglerainbow opened this issue Dec 29, 2017 · 2 comments

Comments

@eaglerainbow
Copy link

Prio low

For testing in #242 I had created a small environment using docker, whose Dockerfile reads like this:

FROM debian:8.10

RUN apt-get update && apt-get -y install mc jed less python3 git \
  python3-pyqt5 parted util-linux mtools python3-dbus python3-pyudev \
  p7zip-full python3-six

Running then the docker image with /bin/bash I issued the following set of commands:

cd && git clone https://github.com/mbusb/multibootusb.git && cd multibootusb

Current state of branch master (which is checked out here) is 67f57a8, which is roughly 8.9.0.

Trying then to run multibootusb, the following error message is issued:

root@cf058091d456:~/multibootusb# python3 ./multibootusb
Traceback (most recent call last):
  File "./multibootusb", line 174, in <module>
    if config.debug is True:
NameError: name 'config' is not defined

Please note that python3 -V states

Python 3.4.2

The same result is also provided when changing the underlying operating system version from debian:8.10 to ubuntu:16.04. There, Python 3.5.x is running.

Problem statement
There seems to be "some additional" dependency necessary, which is not documented properly in the README.md. Yet, the dependencies python3-pyqt5 parted util-linux mtools python3-dbus python3-pyudev p7zip-full python3-six I copied out from the manifest file of the current .deb package. I would have expected that these dependencies would also be mentioned as prerequisites to the section "Installation" -> "On Linux" -> "Using source code method".

Additional Information
Could be related to #238, but that's unclear.

@klopsi
Copy link

klopsi commented Jan 9, 2018

Not sure what dependency would fix this.

I first installed https://github.com/mbusb/multibootusb/releases/download/v9.1.0/python3-multibootusb_9.1.0-1_all.deb

Running this yielded the error:
Traceback (most recent call last):
File "./multibootusb", line 174, in
if config.debug is True:
NameError: name 'config' is not defined

git cloning the 09 Jan repo yielded same error.

Commenting out the config stuff brought up a NameError for 'gen' later on.

The "from scripts import" (admin/gen/config) stuff doesn't seem to give give an error.
I tried adding
sys.path.append('/home/klopsi/Downloads/multiboot/multibootusb/scripts/') to expllicitly load the scripts in the multibootusb git repo, but same errors.

print(sys.path) with my added append returns:
['/home/klopsi/Downloads/multiboot/multibootusb', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/usr/local/lib/python3.5/dist-packages', '/usr/lib/python3/dist-packages', '/usr/local/lib/python3.5/dist-packages', '/usr/lib/python3/dist-packages/scripts/', '/home/klopsi/Downloads/multiboot/multibootusb/scripts/']

Commenting-out the config. and gen. stuff, i got the next error:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in activate_name_owner
return self.get_name_owner(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
's', (bus_name,), **keywords)
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.freedesktop.UDisks2': no such name

dbus is running. Is this stuff somehow dependent on systemd by chance?

@mbusb
Copy link
Owner

mbusb commented Jan 9, 2018

@klopsi Remove your old install. Install again deb package and let me know the terminal output of ls \usr\lib\python3\dist-packages\scripts\.

@mbusb mbusb closed this as completed Apr 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants