[ pyopengl-Bugs-1690908 ] numarray dependency issues warning
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.python.opengl.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1690908, was opened at 2007-03-29 21:13
Message generated for change (Comment added) made by blais
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1690908&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: install
Group: v3.0.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Martin Blais (blais)
Assigned to: Nobody/Anonymous (nobody)
Summary: numarray dependency issues warning
Initial Comment:
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.
----------------------------------------------------------------------
>Comment By: Martin Blais (blais)
Date: 2007-03-29 21:31
Message:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1690908&group_id=5988
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net