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

RPi-5 dbus import issue #193

Open
nickFridays opened this issue Mar 12, 2025 · 0 comments
Open

RPi-5 dbus import issue #193

nickFridays opened this issue Mar 12, 2025 · 0 comments

Comments

@nickFridays
Copy link

nickFridays commented Mar 12, 2025

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.

Image

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.

@nickFridays nickFridays changed the title dbus import issue RPi-5 dbus import issue Mar 12, 2025
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

1 participant