[PyOpenGL-Users] Failure to build on Linux
Brought to you by:
mcfletch
|
From: Richard J. <ric...@op...> - 2003-12-16 02:35:57
|
I just tried to build 2.0.1.07 on Linux (Mandrake 9.1) against python 2.3.2=
=2E=20
Used the standard "python setup.py install". It appeared to build OK, but a=
ny=20
attempt to use it breaks:
[richard@richardpc PyOpenGL-2.0.1.07]$ python
Python 2.3.2 (#1, Oct 8 2003, 09:16:48)
[GCC 3.3.1 (Mandrake Linux 9.2 3.3.1-0.7mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from OpenGL.GL import *
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/site-packages/OpenGL/__init__.py", line 26, in ?
from GL.GL__init___ import __numeric_present__, __numeric_support__
File "/usr/lib/python2.3/site-packages/OpenGL/GL/__init__.py", line 2, in=
?
from GL__init__ import *
File "/usr/lib/python2.3/site-packages/OpenGL/GL/GL__init__.py", line 4, =
in=20
?
import _GL__init__
ImportError: No module named _GL__init__
>>>=20
The contents of OpenGL/GL/ are:
_3DFX/ EXT/ IBM/ INTEL/ PGI/ SGIX/
APPLE/ GL__init__.py INGR/ KTX/ REND/ SUN/
ARB/ GL__init__.pyc __init__.py MESA/ S3/ SUNX/
ATI/ GL__init___.so* __init__.pyc NV/ SGI/ WIN/
Autodesk/ HP/ __init___.so* OML/ SGIS/
I renamed the GL__init___.so and __init___.so files to _GL__init__.so and=20
___init__.so respectively. I also edited OpenGL/__init__.py and=20
OpenGL/GL/__init__.py since they referred to the GL__init___ module. The=20
import of OpenGL.GL works now. Other imports break though ("from OpenGL.GLU=
T=20
import *" for example)
Richard
|