Can't get demo apps in latest PyOpenGL to work

Phlip phlip_cpp at yahoo.com
Wed Aug 14 18:20:48 CEST 2002


Hypo Nt:

I'm running Linux 2.4.3-20mdk, with all the latest RPMs from Mandrake, 
including the latest Mesa and XFree86.

I'm trying to catch up with Glinter, so I install PyOpenGL-2.0.0.44. It 
compiles fine (after it requested those latest RPMs).

But all the Demo apps complain about something; usually glutInit. Glinter 
also complains about that, and then experiences what's probably a cascading 
error:

Traceback (most recent call last):
  File "Glinter.py", line 16, in ?
    g = Gl()
  File "Foundation.py", line 225, in __init__
    self.InitGlut()
  File "Foundation.py", line 231, in InitGlut
    glutInit(sys.argv)
TypeError: argument 1 must be string, not list
deleted Widget <Foundation.Gl instance at 0x8211104>
Exception exceptions.AttributeError: "Gl instance has no attribute '_w'" in 
<bound method Gl.__del__ of <Foundation.Gl instance
at 0x8211104>> ignored
WindowDestroyer destroying Gl

tom/cone.py works, but GLE/cone.py does not.

So if I put "glutInit('')" in GLE/cone.py, it sez "glutDisplayFunc(DrawStuff)
TypeError: function takes exactly 0 arguments (1 given)"

Any tips how to fix this?

-- 
  Phlip
            http://www.greencheese.org/SonseOne
  --  All analysis and no coding makes Jack a dull boy.
      All analysis and no coding makes Jack a dull boy.
      All analysis and no coding makes Jack a dull boy.  --



More information about the Python-list mailing list