when i run "sudo python /home/pi/Bluetooth_HID/user_interface.py"
it says
pi@raspberrypi:~ $ sudo python `/home/pi/Bluetooth_HID/user_interface.py
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/init.py:57: GtkWarning: could n ot open display
warnings.warn(str(e), _gtk.Warning)
Setting up service
Setting up DBus Client
Setting up Bluetooth device
Configuring for name Bluetooth_Keyboard/Mouse
Setting up DBus Client
Waiting for keyboard
Traceback (most recent call last):
Waiting for mouse
File "/home/pi/Bluetooth_HID/user_interface.py", line 411, in
root = Tk()
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1823, in init
self.tk = _tkinter.create(screenName, baseName, className, interactive, want objects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable
Found a keyboard with the keyword 'mouse'
device name is USB OPTICAL MOUSE
Mouse Found
Starting mouse event loop
Keyboard not found after 100 tries
Configuring Bluez Profile
Reading service record
Profile registered
Waiting for connections
Reading service record
ERROR:dbus.proxies:Introspect error on :1.5:/org/bluez: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ERROR:dbus.proxies:Introspect error on :1.82:/org/upwork/HidBluetoothService: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
Couldn't send mouse input
when i run "sudo python /home/pi/Bluetooth_HID/user_interface.py" it says
pi@raspberrypi:~ $ sudo python `/home/pi/Bluetooth_HID/user_interface.py /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/init.py:57: GtkWarning: could n ot open display warnings.warn(str(e), _gtk.Warning) Setting up service Setting up DBus Client Setting up Bluetooth device Configuring for name Bluetooth_Keyboard/Mouse Setting up DBus Client Waiting for keyboard Traceback (most recent call last): Waiting for mouse File "/home/pi/Bluetooth_HID/user_interface.py", line 411, in
root = Tk()
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1823, in init
self.tk = _tkinter.create(screenName, baseName, className, interactive, want objects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable
Found a keyboard with the keyword 'mouse'
device name is USB OPTICAL MOUSE
Mouse Found
Starting mouse event loop
Keyboard not found after 100 tries
Configuring Bluez Profile
Reading service record
Profile registered
Waiting for connections
Reading service record
ERROR:dbus.proxies:Introspect error on :1.5:/org/bluez: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ERROR:dbus.proxies:Introspect error on :1.82:/org/upwork/HidBluetoothService: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
Couldn't send mouse input