#220 importing GL fails in 64bit Windows7

open
GL (74)
5
2009-10-07
2009-10-07
Anonymous
No

On a Windows 7 64 bit machine
using:
- eclipse
- pydev
- PyQt4
- Python 3.1
with only(in __init__.py):

"from OpenGL import GL"

the following error message is displayed on console:

"
Traceback (most recent call last):
File "C:\Users\MyUserName\workspace\MyTest\src\root\__init__.py", line 1, in <module>
from OpenGL import GL
File "C:\Python31\lib\site-packages\OpenGL\GL\__init__.py", line 2, in <module>
from OpenGL.raw.GL import *
File "C:\Python31\lib\site-packages\OpenGL\raw\GL\__init__.py", line 6, in <module>
from OpenGL.raw.GL.constants import *
File "C:\Python31\lib\site-packages\OpenGL\raw\GL\constants.py", line 7, in <module>
from OpenGL import platform, arrays
File "C:\Python31\lib\site-packages\OpenGL\platform\__init__.py", line 36, in <module>
_load()
File "C:\Python31\lib\site-packages\OpenGL\platform\__init__.py", line 27, in _load
plugin_class = plugin.load()
File "C:\Python31\lib\site-packages\OpenGL\plugins.py", line 14, in load
return importByName( self.import_path )
File "C:\Python31\lib\site-packages\OpenGL\plugins.py", line 28, in importByName
module = __import__( ".".join(moduleName), {}, {}, moduleName)
File "C:\Python31\lib\site-packages\OpenGL\platform\win32.py", line 19
except WindowsError, err:
^
SyntaxError: invalid syntax
"

Running the same code through pydev/eclipse on a windows98 machine with Python 2.5 works fine.

Discussion


Log in to post a comment.