Problem in keyboard input using python pyUserInput module

Beaglebone Black related support

Problem in keyboard input using python pyUserInput module

Postby kmehindru4 » 03 Feb 2015, 05:31

i am working on a project which aim to generate keyboard input in python .I am working on beaglebone black(angstrom) plugged to my laptop using usb.I installed python 2.7 & xlib for it & pUserInput python module but on compilation i am getting error

File "project.py", line 2, in <module>
k=PyKeyboard()
File "/usr/lib/python2.7/site-packages/pykeyboard/x11.py", line 75, in __init__
self.display = Display(display)[img][img][/img][/img]
File "/usr/lib/python2.7/site-packages/Xlib/display.py", line 83, in __init__
self.display = _BaseDisplay(display)
File "/usr/lib/python2.7/site-packages/Xlib/display.py", line 65, in __init__
apply(protocol.display.Display.__init__, (self, ) + args, keys)
File "/usr/lib/python2.7/site-packages/Xlib/protocol/display.py", line 44, in __init__
name, host, displayno, screenno = connect.get_display(display)
File "/usr/lib/python2.7/site-packages/Xlib/support/connect.py", line 65, in get_display
return mod.get_display(display)
File "/usr/lib/python2.7/site-packages/Xlib/support/unix_connect.py", line 59, in get_display
raise error.DisplayNameError(display)
Xlib.error.DisplayNameError: Bad display name ""

I am attaching the screenshot of error
i think problem is in display detection .. or is it that i need to use different display & keyboard for my beaglebone and not my laptop ?
kmehindru4
 
Posts: 1
Joined: 03 Feb 2015, 05:29

Re: Problem in keyboard input using python pyUserInput modul

Postby ACX » 03 Feb 2015, 16:17

Hi kmehindru4,
are you running Angstrom distribution? In that case why are you asking for support in RuneAudio's forum? :)
User avatar
ACX
RuneAudio co-founder
 
Posts: 1689
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

support RuneAudio Donate with PayPal


Return to Beaglebone Black

Who is online

Users browsing this forum: No registered users and 2 guests
cron