[ pyopengl-Bugs-2943244 ] PyOpenGL-accelerate and numpy 1.4 numpy_formathandler error
"SourceForge.net" <[email protected]> Sun, 31 Jan 2010 15:23:30 +0000
| Newsgroups | gmane.comp.python.opengl.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #2943244, was opened at 2010-01-31 08:16
Message generated for change (Comment added) made by jfpacker
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2943244&group_id=5988
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: GL
Group: v3.0.0
Status: Open
Resolution: None
>Priority: 3
Private: No
Submitted By: jfpacker (jfpacker)
Assigned to: Mike C. Fletcher (mcfletch)
Summary: PyOpenGL-accelerate and numpy 1.4 numpy_formathandler error
Initial Comment:
importing OpenGL.GL gives the error: "ValueError: numpy.dtype does not appear to be the correct type object".
To reproduce this bug, install python 2.6 (my minor version 4, ie: 2.6.4), PyOpenGL 3.0.1b2-py26-win32 and PyOpenGL-accelerate-3.0.1b2-py26-win32 and numpy 1.4. In the interpreter type:
import OpenGL
from OpenGL import GL
This gives the output:
File "C:\Python26\lib\site-packages\GLavish\library\locals.py", line 7, in <mo
dule>
from OpenGL import GL
File "C:\Python26\lib\site-packages\pyopengl-3.0.1b2-py2.6-win32.egg\OpenGL\GL
\__init__.py", line 2, in <module>
from OpenGL.raw.GL import *
File "C:\Python26\lib\site-packages\pyopengl-3.0.1b2-py2.6-win32.egg\OpenGL\ra
w\GL\__init__.py", line 6, in <module>
from OpenGL.raw.GL.constants import *
File "C:\Python26\lib\site-packages\pyopengl-3.0.1b2-py2.6-win32.egg\OpenGL\ra
w\GL\constants.py", line 7, in <module>
from OpenGL import platform, arrays
File "C:\Python26\lib\site-packages\pyopengl-3.0.1b2-py2.6-win32.egg\OpenGL\ar
rays\__init__.py", line 22, in <module>
formathandler.FormatHandler.loadAll()
File "C:\Python26\lib\site-packages\pyopengl-3.0.1b2-py2.6-win32.egg\OpenGL\ar
rays\formathandler.py", line 37, in loadAll
cls.loadPlugin( entrypoint )
File "C:\Python26\lib\site-packages\pyopengl-3.0.1b2-py2.6-win32.egg\OpenGL\ar
rays\formathandler.py", line 44, in loadPlugin
plugin_class = entrypoint.load()
File "C:\Python26\lib\site-packages\pyopengl-3.0.1b2-py2.6-win32.egg\OpenGL\pl
ugins.py", line 14, in load
return importByName( self.import_path )
File "C:\Python26\lib\site-packages\pyopengl-3.0.1b2-py2.6-win32.egg\OpenGL\pl
ugins.py", line 28, in importByName
module = __import__( ".".join(moduleName), {}, {}, moduleName)
File "C:\Python26\lib\site-packages\pyopengl-3.0.1b2-py2.6-win32.egg\OpenGL\ar
rays\numpymodule.py", line 25, in <module>
from OpenGL_accelerate.numpy_formathandler import NumpyHandler
File "c:\users\jeff\appdata\local\temp\easy_install-uwdslx\PyOpenGL_accelerate
-3.0.1b2-py2.6-win32.egg.tmp\OpenGL_accelerate\numpy_formathandler.py", line 7,
in <module>
File "c:\users\jeff\appdata\local\temp\easy_install-uwdslx\PyOpenGL_accelerate
-3.0.1b2-py2.6-win32.egg.tmp\OpenGL_accelerate\numpy_formathandler.py", line 6,
in __bootstrap__
File "numpy.pxd", line 30, in OpenGL_accelerate.numpy_formathandler (src\numpy
_formathandler.c:3543)
ValueError: numpy.dtype does not appear to be the correct type object
----------------------------------------------------------------------
>Comment By: jfpacker (jfpacker)
Date: 2010-01-31 08:23
Message:
This only occurs if you easy_install PyOpenGL-accelerate as it downloads
the pre-built version win32 version. I downloaded the source and installed
from source and it works.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2943244&group_id=5988
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net