Thread: [PyOpenGL-Users] 2.0.1.03 demos
Brought to you by:
mcfletch
From: Dan C. <Dan...@NA...> - 2003-02-19 17:16:05
|
PyOpenGL-2.0.1.03 is working, but most of the demos have bugs. I was running python 2.2.2. The demos in dek and tom seem to work. Most of the other demos die with a very similar error: da/dots.py: File "dots.py", line 95, in main glutInit(sys.argv) TypeError: argument 1 must be string, not list GLE/cone.py, GLE/helix.py, GLE/texas.py : File "maintest.py", line 40, in main glutInit(sys.argv) TypeError: argument 1 must be string, not list GLUT/examples/molehill.py: File "molehill.py", line 36, in main glutInit(sys.argv) TypeError: argument 1 must be string, not list -Dan |
From: Mike C. F. <mcf...@ro...> - 2003-02-19 17:58:58
|
Okay, that's strange. This was an old bug that _should_ be fixed now (was fixed by Tarn > a year ago). I'll take a look at the code this evening if I get a chance. Basically there are two possible approaches to the glutInit call. The older one was the single-string version. The newer one was the sys.argv version. I'd thought all paths now used the list-based version, but I guess not. Would be helpful to have the info file from OpenGL/scripts/info.py to figure out which version of GLUT you've got and why it's unhappy (I'm pretty sure we've got the wrappers right for v3.7, as that works on both RedHat and Win32, but I don't test with earlier GLUT versions). Your OS information would also be helpful (I'm assuming you're on a Unix-type OS by the / characters). BTW: dek and tom are Tkinter/Togl-based, rather than GLUT based. You'd probably find that the wxPython context also works for you. Anything using GLUT, however, will be hosed. Enjoy, Mike Dan Christian wrote: >PyOpenGL-2.0.1.03 is working, but most of the demos have bugs. I was >running python 2.2.2. > >The demos in dek and tom seem to work. > >Most of the other demos die with a very similar error: > >da/dots.py: > File "dots.py", line 95, in main > glutInit(sys.argv) >TypeError: argument 1 must be string, not list > >GLE/cone.py, GLE/helix.py, GLE/texas.py : > File "maintest.py", line 40, in main > glutInit(sys.argv) >TypeError: argument 1 must be string, not list > >GLUT/examples/molehill.py: > File "molehill.py", line 36, in main > glutInit(sys.argv) >TypeError: argument 1 must be string, not list > >-Dan > > _______________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://members.rogers.com/mcfletch/ |
From: Dan C. <Dan...@NA...> - 2003-02-19 19:03:32
|
On Wednesday 19 February 2003 09:58, Mike C. Fletcher wrote: ... > Would be helpful to have the info file from OpenGL/scripts/info.py to > figure out which version of GLUT you've got and why it's unhappy (I'm > pretty sure we've got the wrappers right for v3.7, as that works on > both RedHat and Win32, but I don't test with earlier GLUT versions). > Your OS information would also be helpful (I'm assuming you're on a > Unix-type OS by the / characters). Just to make sure that things were sane, I rebuilt on another machine. Things worked there, so sanity was definately not present :-). I've been having endless difficulties trying to get Python2/gtk2/OpenGl to work together. It seems that some old builds of PyOpenGL were getting loaded. I removed all of /usr/lib/python2.2/site-packages/OpenGl and then re-installed. Now everything seems to work. FYI. I'm running RedHat 7.3-i386 with a stock XFree86 4.2.0 (glut-3.7) with python-2.2.2. -Dan |
From: Mike C. F. <mcf...@ro...> - 2003-02-19 20:17:36
|
Okay, I've added a note to my building-on-Linux notes regarding clearing out the old version of PyOpenGL first. Good to hear it's working for you. Mike Dan Christian wrote: >On Wednesday 19 February 2003 09:58, Mike C. Fletcher wrote: >... > > >>Would be helpful to have the info file from OpenGL/scripts/info.py to >>figure out which version of GLUT you've got and why it's unhappy (I'm >>pretty sure we've got the wrappers right for v3.7, as that works on >>both RedHat and Win32, but I don't test with earlier GLUT versions). >>Your OS information would also be helpful (I'm assuming you're on a >>Unix-type OS by the / characters). >> >> > >Just to make sure that things were sane, I rebuilt on another machine. >Things worked there, so sanity was definately not present :-). > >I've been having endless difficulties trying to get Python2/gtk2/OpenGl >to work together. It seems that some old builds of PyOpenGL were >getting loaded. I removed all of >/usr/lib/python2.2/site-packages/OpenGl and then re-installed. Now >everything seems to work. > >FYI. I'm running RedHat 7.3-i386 with a stock XFree86 4.2.0 (glut-3.7) >with python-2.2.2. > >-Dan > > >------------------------------------------------------- >This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. >The most comprehensive and flexible code editor you can use. >Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. >www.slickedit.com/sourceforge >_______________________________________________ >PyOpenGL Homepage >http://pyopengl.sourceforge.net >_______________________________________________ >PyOpenGL-Users mailing list >PyO...@li... >https://lists.sourceforge.net/lists/listinfo/pyopengl-users > > > -- _______________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://members.rogers.com/mcfletch/ |