[ pyopengl-Bugs-2943244 ] PyOpenGL-accelerate and numpy 1.4 numpy_formathandler error

"SourceForge.net" <[email protected]> Thu, 16 Jun 2011 14:40:50 +0000
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
Bugs item #2943244, was opened at 2010-01-31 15:16
Message generated for change (Comment added) made by nobody
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: Nobody/Anonymous (nobody)
Date: 2011-06-16 14:40

Message:
zmVDVG  <a href="http://smwzxlxkmkhu.com/">smwzxlxkmkhu</a>,
[url=http://bculerputyyq.com/]bculerputyyq[/url],
[link=http://skoydrbjloib.com/]skoydrbjloib[/link],
http://hufvpxgfcfgd.com/

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2011-04-07 03:31

Message:
Kq5Acn  <a href="http://umbmjcuegdeh.com/">umbmjcuegdeh</a>,
[url=http://iqquspbismqt.com/]iqquspbismqt[/url],
[link=http://gryulfjfwfpj.com/]gryulfjfwfpj[/link],
http://tmrtwczsqytf.com/

----------------------------------------------------------------------

Comment By: Andrej Schoeke (aschoeke)
Date: 2010-03-22 23:54

Message:
Same problem on Mac OS X 10.5 with MacPorts.

----------------------------------------------------------------------

Comment By: Mike C. Fletcher (mcfletch)
Date: 2010-02-22 20:29

Message:
Hrm.  Sounds like we have a problem with the numpy version changes.  Argh. 
Seems we need to be patching setuptools to allow for checking against the
numpy version.  I'd hoped we'd seen the back of patching setup scripts. 
I'll attempt to fix it when I'm on Win32 again.

----------------------------------------------------------------------

Comment By: jfpacker (jfpacker)
Date: 2010-01-31 15: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

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net