From: Jon S. <js...@gm...> - 2006-11-22 21:50:41
|
Thanks I did determine that the problem was an X11 problem, and after repairing permissions, reinstalling python, and vpython, and resinstalling x11 1.1.3...I'm happy to say that back in business. Happy Thanksgiving to all On 11/22/06 4:19 PM, "Martin Costabel" <cos...@wa...> wrote: > Jon Schull wrote: >> Vpython has stopped working. What to do? > > What you show has nothing to do with vpython nor with tkinter. You need > to run X11 which you don't seem to be able to. > >> I'm suddenly having problems I remember from 3 years ago and gather it has >> something to do with the upgrade of x11. But I can't figure out how to get >> it going again. >> >> When I run vpython I get >> >> Xlib: connection to ":0.0" refused by server >> Xlib: No protocol specified > > The X server is not starting up completely. > >> Traceback (most recent call last): >> File "/sw/bin/idle2.4", line 5, in ? >> main() >> File "/sw/lib/python2.4/idlelib/PyShell.py", line 1350, in main >> root = Tk(className="Idle") >> File "/sw/lib/python2.4/lib-tk/Tkinter.py", line 1569, in __init__ >> self.tk = _tkinter.create(screenName, baseName, className, interactive, >> wantobjects, useTk, sync, use) >> _tkinter.TclError: this isn't a Tk applicationcouldn't connect to display >> ":0.0" >> [apples-powerbook-g4-99:/] apple% > > You get this when you try to run vpython without running X11. > >> x11 is running > > Actually no. It tries to start, but doesn't manage. > >> But if I try running startX from a non-x11 terminal I get this: > > Using startx on MacOSX is always a bad idea. Why don't you just > double-click on X11.app? > >> /usr/X11R6/bin/startx: line 33: [: /Users/apple: binary operator expected >> /usr/X11R6/bin/startx: line 42: [: /Users/apple: binary operator expected > > This looks like you have a user name with a space inside, like "apple > user". Dont't do this, it will break all kinds of things. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Jon Schull, Ph.D. Associate Professor Information Technology Rochester Institute of Technology 102 Lomb Memorial Drive Rochester, New York 14623 sc...@di... fax: 978-246-0487 cell: 585-738-6696 |