From: Bruce S. <Bru...@nc...> - 2006-07-14 15:15:09
|
Thanks for the report. On Windows XP on a laptop I can reproduce the dir() behavior(str object not callable). When I try visual.sphere() I get a different problem: NameError: name 'visual' is not defined. There seem to be various screws loose in the Windows version, and it's useful to have a catalog of these loose screws. Bruce Sherwood Dr P H Borcherds wrote: > I have downloaded VPython-Win-Py2.4-4.beta2.exe (but visual.version = (4, > 'beta1')) > > My operating system is windows Me (update from windows 98) > > When I import visual as [from visual import *], dir() generates error > message : see below > but if I import it as "import visual" dir(visual) works ok > > When I type ball = visual.sphere() I get message from PythonW : > PythonW has caused an error in OPENGL32.DLL > > Help, please > > Peter Borcherds > > IDLE 1.1.3 > >>>> dir() >>>> > ['__builtins__', '__doc__', '__name__'] > >>>> from visual import * >>>> dir() >>>> > > Traceback (most recent call last): > File "<pyshell#2>", line 1, in -toplevel- > dir() > TypeError: 'str' object is not callable > >>>> ball = sphere() >>>> >>>> > > from Dr P H Borcherds > reply to: p.h...@bh... > telephone (+44) 121 475 3029 > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |