Hi
Using PyOpenGL 3.0.0a6
I have numpy installed.
When I call glGenTextures(2), I get the following junk warning on stdout:
Traceback (most recent call last):
File "build/bdist.linux-i686/egg/OpenGL/arrays/formathandler.py", line 41, in loadAll
plugin_class = entrypoint.load()
File "/usr/lib/python2.5/site-packages/setuptools-0.6c5-py2.5.egg/pkg_resources.py", line 1830, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "build/bdist.linux-i686/egg/OpenGL/arrays/numarrays.py", line 7, in <module>
ImportError: No numarray module present: No module named numarray
Is this normal?
I assume not, logging as a bug (I think it's a bug).
If not, please let me know how I'm supposed to suppress the warning.
Logged In: YES
user_id=10996
Originator: YES
this ugly kludge works for me to remove the warning:
# Kludge to remove annoying unexpected numarray warning.
import pkg_resources
group = "OpenGL.arrays.formathandler"
for dist in pkg_resources.working_set:
entries = dist.get_entry_map()
if group in entries:
emap = entries[group]
del emap['numarray']
I'm sure there is an "official" way to do this or this is a bug.
Please let me know.