Re: [PyOpenGL-Users] [fix] ImportError: No module named _GL__init__
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@ro...> - 2004-06-21 04:24:29
|
WGL should *not* be built on Unix machines, it's the Win32 equivalent (loosely) of GLX (Unix) or AGL (Apple). Haven't really got time to look at it now, but I'd be suspicious that pyui/renderers/openglBase is doing something silly by using a platform-specific API w/out checking to see if they're on that platform. That is, the traceback looks like you've got PyOpenGL installed, and therefor you have the WGL wrapper Python modules, but not the .dll/.so (since there's no WGL available on your platform). Nothing excludes the wrapper modules from getting copied over on Unix, possibly something should, but that would just have made the exception show up a few levels higher in your traceback. Good luck, Mike Dan Charno wrote: ... > from pyui.renderers import openglBase > File > "/usr/local/lib/python2.3/site-packages/pyui/renderers/openglBase.py", > line 49, in ? from OpenGL.WGL import wglUseFontBitmaps, > wglGetCurrentDC > File > "/usr/local/lib/python2.3/site-packages/OpenGL/WGL/__init__.py", line > 2, in ? > from WGL__init__ import * > ImportError: No module named WGL__init__ ... ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://members.rogers.com/mcfletch/ blog: http://zope.vex.net/~mcfletch/plumbing/ |