Harke: Another in the Learned Group, I think it was Steve Plant but I can't find the post, suggested connecting a keyboard and mouse to the BBB and running the Python program with 'sudo python your_python_program'. That worked great for me. I never would have thought of it. My code is a GUI with buttons, text boxes and an animation graph running Tkinter and also running PyBBIO for PWM output and ADC inputs. John johnbakeree.blogspot.com
On Saturday, February 13, 2016 at 3:07:04 AM UTC-8, Harke Smits wrote: > > Hello Learned Group, > > I have a BBB running Debian (2015-11-03 version) with a Chipsee 4.3 > display. It works great, so far so good: both in graphic mode and text. I > try to script an application requiring a GUI, so I loaded Tkinter and > entered a test program. > This is the result: > > Traceback (most recent call last): > File "testtk.py", line 2, in <module> > root = Tkinter.Tk() > File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1712, in __init__ > self.tk = _tkinter.create(screenName, baseName, className, > interactive, wantobjects, useTk, sync, use) > _tkinter.TclError: no display name and no $DISPLAY environment variable > root@beaglebone:/home/apptest# > > Its the same whether I run from BBB via bash or via another pc with Cloud9. > > I googled a lot and the error is not uncommon, but could not find a clue > for my case. > > Please advise, regards, > Harke > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
