Re: [PyOpenGL-Users] 2.0.1.03 demos
Brought to you by:
mcfletch
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/ |