473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Installing PyOpenGL - can't find libnumarray module

This is probably a fairly newbie type problem, but I'm trying to use
PyOpenGL, and don't seem to have installed it correctly.

I'm running Python 2.3 on a Windows NT machine. Whenever I go into IDLE and
type

from OpenGL.GL import *

I get a flagrant crash which shuts down IDLE.

The error message I get (as well as I could copy it) is as follows:

Traceback (most recent call last):

File
"C:\Python23\lib\site-packages\Pythonwin\pywin\scintilla\formatter.py", line
222, in

OnStyleNeeded

notify = self.scintilla.SCIUnpackNotifyMessage(extra)

File "C:\Python23\lib\site-packages\Pythonwin\pywin\scintilla\control.py"
, line 57, in

SCIUnpackNotifyMessage

margin = margin)

ImportError: No module named libnumarray

win32ui: Exception in OnNotify() handler

The main problem seems to be the lack of a libnumarray module. However,

I have already installed numarray, and have verified that it's in my
sys.path:
sys.path


['', 'c:\\dislin\\python', 'C:\\WINDOWS\\System32\\python23.zip',
'C:\\Python23\\lib\\site-packages\\Pythonwin',
'C:\\Python23\\lib\\site-packages\\win32',
'C:\\Python23\\lib\\site-packages\\win32\\lib',
'C:\\Python23\\lib\\site-packages', 'C:\\Python23\\DLLs',
'C:\\Python23\\lib', 'C:\\Python23\\lib\\plat-win',
'C:\\Python23\\lib\\lib-tk', 'C:\\Python23',
'C:\\Python23\\Deitel_Examples',
'C:\\Python23\\lib\\site-packages\\Numeric',
'C:\\Python23\\lib\\site-packages\\PIL',
'C:\\Python23\\lib\\site-packages\\gist',
'C:\\Python23\\lib\\site-packages\\numarray',
'C:\\Python23\\lib\\site-packages\\PythonPrograms']

It's the next to last entry.

Inside my numarray directory there is a file libnumarray.pyd.

I reinstalled numarray & checked the version for Python2.2. All I see in
each version is libnumarray.pyd.

Is there anything obvious that I'm missing or should try ?

Thanks,

Steven Gutstein
Jul 18 '05 #1
3 2551
Steven Gutstein wrote:
This is probably a fairly newbie type problem, but I'm trying to use
PyOpenGL, and don't seem to have installed it correctly.

....
ImportError: No module named libnumarray

....
The main problem seems to be the lack of a libnumarray module. However,

I have already installed numarray, and have verified that it's in my
sys.path:

Well, if you format this somewhat differently, yes, it's the problem.
PyOpenGL currently requires NumPy (as distinct from NumArray). I
haven't had the time to track down what's broken in the
PyOpenGL/NumArray interface (I gather NumArray is supposed to be
compatible with NumPy at some level, as it gets to the point of crashing
when people attempt to use this setup, but I don't know whether that's
supposed to be a binary compatibility or not).

Basically, to fix the problem, uninstall NumArray and install NumPy 23.0.

HTH,
Mike

_______________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://members.rogers.com/mcfletch/


Jul 18 '05 #2
"Mike C. Fletcher" <mc******@rogers.com> wrote in message
Basically, to fix the problem, uninstall NumArray and install NumPy 23.0.


I tried this, without success.
I also find I get the same error when I type

from numarray import *

I'm wondering if there's some problem with the fact that libnumarray
is a .pyd file. I came across a comment that for some reason .pyd
files don't get found and what I should do is create the following
setup.cfg file:

<setup.cfg>
[py2exe]
includes=numarray.libnumarray,
numarray.memory,
numarray._bytes,
numarray._chararray,
numarray._conv,
numarray._converter,
numarray._ndarray,
numarray._numarray,
numarray._operator,
numarray._sort,
numarray._ufunc,
numarray._ufuncBool,
numarray._ufuncComplex32,
numarray._ufuncComplex64,
numarray._ufuncFloat32,
numarray._ufuncFloat64,
numarray._ufuncInt16,
numarray._ufuncInt32,
numarray._ufuncInt64,
numarray._ufuncInt8,
numarray._ufuncUInt16,
numarray._ufuncUInt32,
numarray._ufuncUInt8
</setup.cfg>

This file was supposed to be placed in the same directory as setup.py.

The only reasonable setup.py I found was in c:\python23\Tools\scripts.
However, my setup.cfg file still didn't work. Is there something
obvious that I'm missing here ?
Jul 18 '05 #3
Steven Gutstein wrote:
"Mike C. Fletcher" <mc******@rogers.com> wrote in message
Basically, to fix the problem, uninstall NumArray and install NumPy 23.0.

I tried this, without success.
I also find I get the same error when I type

from numarray import *

You are trying to import a package you just un-installed? Is this line
showing up from some other package you're trying to run and you're
debugging by trying it at the Python prompt? A Numpy import looks like
this:

from Numeric import *

AFAICS, there's nothing named numarray anywhere in a Numpy 23.0
installation, so if you get that working, then you've not got NumArray
purged yet.

However, since your original problem was an import error, "the same
error" probably (posting exception tracebacks is useful) indicates that
you're getting an ImportError saying that numarray doesn't exist.
That's what you *want* (since you don't want NumArray hanging around).
I'm wondering if there's some problem with the fact that libnumarray
is a .pyd file. I came across a comment that for some reason .pyd
files don't get found and what I should do is create the following
setup.cfg file:

<lot of py2exe setup stuff snipped>

This is only for creating stand-alone executables, it has nothing to do
with just running PyOpenGL. It's also related to NumArray, *not* Numpy,
so again, not relevant.
Is there something
obvious that I'm missing here ?

Hopefully not any more.

Good luck,
Mike

_______________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://members.rogers.com/mcfletch/


Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rod Stephenson | last post by:
I am developing an engineering application for modelling multiphase flows in large pipe networks, and have just discovered the joy of pyopengl for 3D visualization. However the incantation I'm...
1
by: julia | last post by:
Hi, I'm having trouble turning a python program with pyOpenGL into an exe with py2exe. I was wondering if you could help. Basically I have a setup.py like this: # setup.py from...
3
by: hepp | last post by:
Is it possible to run a Python script in Windows without installing Python on your machine first? At my work we are using a mixed environment - some have Solaris workstations and others PC's. I...
0
by: sweetmelon | last post by:
(I'm a newbie in Python and pyOpenGL.) Environment: WinXP SP2 Python ver. 2.5 WingIDE easy_install is installed PIL, pyNum is installed Download PyOpenGL-3.0.0a5-py2.5.egg run: easy_install...
4
by: math2life | last post by:
I work with python for two years, are familiar with image processing, but beginner on PyOpenGL and OpenGL. Any advice appreciated!
2
by: seb.haase | last post by:
Hi, I am distributing a package with a precompiled collection of modules and packages useful for Python based medical/biological/astronomical image analysis and algorithm development. (Codename:...
0
by: =?ISO-8859-1?Q?S=E9bastien_Ramage?= | last post by:
Hi ! How can I make an exe that use the new pyopengl 3.0.0b1 ??? I use py2exe 0.6.6 with the 3.0.0a6 version I have make it working by copying the egg and by forcing loading it at the start...
0
by: Colin J. Williams | last post by:
I have just installed PyOpenGL and get a series of warning messages: Best match: PyOpenGL 3.0.0b3 Downloading...
1
by: Clay Hobbs | last post by:
I need a tutorial for PyOpenGL (specifically, to be used with wxPython). I searched with Google and didn't find one. Does anybody know where one is? -- Ratfink
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.