willprice / python-omxplayer-wrapper

:tv: Control OMXPlayer, the Raspberry Pi media player, from Python
http://python-omxplayer-wrapper.readthedocs.io
GNU Lesser General Public License v3.0
253 stars 71 forks source link

"ImportError: No Module named 'dbus' #92

Closed chelseamw13 closed 7 years ago

chelseamw13 commented 7 years ago

Issue Report

Description

I am able to run the wrapper using python2, however when I run it with python3 (after downloading your python_2_3 support) I get the above error. I have re installed dbus quite a few times but I believe the problem is that it's not installing properly. Do you have a recommended way to install dbus?

Example

python3 test.py

Import Error: No module named 'dbus'

have tried the following ways of installing  dbus

sudo apt-get install python-dbus
...
"python-dbus is already the newest version."

sudo apt-get install python3-dbus
...
"python3-dbus is already the newest version."

sudo pip3 install dbus-python

...
Error: Command "/usr/bin/python -u -c "import setup tools, tokenize;__file__='/tmp/pip-build-eabW81/dbus-python/setup.py.....

Environment details

Software Version
python-omxplayer-wrapper 0.1.0
python-dbus (dpkg -s python-dbus) 1.2.0-2
python (python --version) 2.7.9
omxplayer (omxplayer --version) dfeaBc9

willprice commented 7 years ago

Try off master, I thought I merged py3 support in.

chelseamw13 commented 7 years ago

I tried it of master as well but no luck!

chelseamw13 commented 7 years ago

Thank you anyways! I fixed it by creating a virtualenv -- was having problems with python3.4 vs python3.5