getsenic / gatt-python

Bluetooth GATT SDK for Python
MIT License
318 stars 86 forks source link

DBus Socket not found #54

Open akloster opened 4 years ago

akloster commented 4 years ago

I'm running this in a conda environment and getting this problem:

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /home/andi/anaconda3/envs/py37/var/run/dbus/system_bus_socket: No such file or directory

Obviously it shouldn't be looking for the dbus socket in that path right?

voland62 commented 3 years ago

I've issued something like ln -s /var/run/dbus/system_bus_socket /home/andi/anaconda3/envs/py37/var/run/dbus/system_bus_socket to fix this. I know, this is strange, and I think this is a problem of dbus-python package of conda, not the gatt-python one...

RangeOfGlitching commented 1 year ago

Hi @voland62 Nice work! Your solution work for me But why? I check systemctl status dbus.service and everything was fine. Could you explain why create a soft link will solve the problem.