I would like to call my Raspberry Pi with phony with my mobile phone.
I have installed it as described in the manual, but unfortunately I get the following output with an error message when running the script.
"
Traceback (most recent call last):
File "phone.py", line 93, in
Service.run ()
File "phone.py", line 43, in run
Phony.headset.HandsFreeHeadset (bus, adapter, hfp, audio) as hs:
File "/usr/local/lib/python2.7/dist-packages/phony/headset.py", line 34, in init
Self._bus = bus_provider.session_bus ()
File "/usr/local/lib/python2.7/dist-packages/phony/base/ipc.py", line 20, in session_bus
Return dbus.SessionBus (mainloop = main_loop)
File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 211, in new
Mainloop = mainloop)
File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 100, in new
Bus = BusConnection . new (subclass, bus_type, mainloop = mainloop)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 122, in new
Bus = cls._new_for_bus (address_or_type, mainloop = mainloop)
Dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus daemon without a $ DISPLAY for X11
"
What does this error message mean and how can I fix it?
I'm not familiar with Linux, but I'm starting with Python.
Hello,
I would like to call my Raspberry Pi with phony with my mobile phone. I have installed it as described in the manual, but unfortunately I get the following output with an error message when running the script. " Traceback (most recent call last): File "phone.py", line 93, in
Service.run ()
File "phone.py", line 43, in run
Phony.headset.HandsFreeHeadset (bus, adapter, hfp, audio) as hs:
File "/usr/local/lib/python2.7/dist-packages/phony/headset.py", line 34, in init
Self._bus = bus_provider.session_bus ()
File "/usr/local/lib/python2.7/dist-packages/phony/base/ipc.py", line 20, in session_bus
Return dbus.SessionBus (mainloop = main_loop)
File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 211, in new
Mainloop = mainloop)
File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 100, in new
Bus = BusConnection . new (subclass, bus_type, mainloop = mainloop)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 122, in new
Bus = cls._new_for_bus (address_or_type, mainloop = mainloop)
Dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus daemon without a $ DISPLAY for X11
"
What does this error message mean and how can I fix it?
I'm not familiar with Linux, but I'm starting with Python.
Sorry for my english.
I am happy about your answers.
Best regards Philipp