You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope someone can save time reading this post. If somebody knows a better way to do this, please advise.
It looks like RPi-5 has a bit different file tree. It needs to add the path to dbus for python3 before importing bluedot, like below.
Or, if you use venv you can manually copy to your venv two dbus folders + two binding files from /usr/lib/python3/dist-packages
Unlike many other packages, dbus doesn't want to be installed into venv with (venvGE) pi@pi:~/projects/15Bi $ sudo apt-get install python3-dbus
import sys
sys.path.insert(0, "/usr/lib/python3/dist-packages")
from bluedot import BlueDot
The issue:
buedot installed in vertual env. The first import line complaints about dbus. pls, see the picture.
To install dbus: sudo apt-get install python3-dbus (it is not pip or pip3)
(venvGE) pi@pi:~/projects/15Bi $ sudo apt-get install python3-dbus
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-dbus is already the newest version (1.3.2-4+b1).
0 upgraded, 0 newly installed, 0 to remove and 81 not upgraded.
The text was updated successfully, but these errors were encountered:
I hope someone can save time reading this post. If somebody knows a better way to do this, please advise.
It looks like RPi-5 has a bit different file tree. It needs to add the path to dbus for python3 before importing bluedot, like below.
Or, if you use venv you can manually copy to your venv two dbus folders + two binding files from /usr/lib/python3/dist-packages
Unlike many other packages, dbus doesn't want to be installed into venv with
(venvGE) pi@pi:~/projects/15Bi $ sudo apt-get install python3-dbus
import sys
sys.path.insert(0, "/usr/lib/python3/dist-packages")
from bluedot import BlueDot
The issue:
buedot installed in vertual env. The first import line complaints about dbus. pls, see the picture.
To install dbus: sudo apt-get install python3-dbus (it is not pip or pip3)
(venvGE) pi@pi:~/projects/15Bi $ sudo apt-get install python3-dbus
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-dbus is already the newest version (1.3.2-4+b1).
0 upgraded, 0 newly installed, 0 to remove and 81 not upgraded.
The text was updated successfully, but these errors were encountered: