OpenGLContext Notes

[Home] [Python Modules]

When you go to compile OpenGLContext you'll probably get the following error.

# truncated for brevity

creating build\temp.win32-2.4\Release\vrml\accellerate
L:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox
/MD /W3 /GX /DNDEBUG -IL:\Python24\include -IL:\Python24\PC /Tc.\vrml\accellerate\fieldaccel.c /Fobuild\temp.win32-2.4\Release\.\vrml\accellerate\fieldaccel.obj
fieldaccel.c
L:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo
/INCREMENTAL:NO /LIBPATH:L:\Python24\libs /LIBPATH:L:\Python24\PCBuild /EXPORT:
initfieldaccel build\temp.win32-2.4\Release\.\vrml\accellerate\fieldaccel.obj /O
UT:build\lib.win32-2.4\vrml\fieldaccel.pyd /IMPLIB:build\temp.win32-2.4\Release\
.\vrml\accellerate\fieldaccel.lib
Creating library build\temp.win32-2.4\Release\.\vrml\accellerate\fieldaccel.l
ib and object build\temp.win32-2.4\Release\.\vrml\accellerate\fieldaccel.exp
building 'vrml.tmatrixaccel' extension
L:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox
/MD /W3 /GX /DNDEBUG -IL:\Python24\include -IL:\Python24\PC /Tc.\vrml\accellerate\tmatrixaccel.c/Fobuild\temp.win32-2.4\Release\.\vrml\accellerate\tmatrixaccel.objtmatrixaccel.c
vrml\accellerate\tmatrixaccel.c(2) : fatal error C1083: Cannot open include file
: 'Numeric/arrayobject.h': No such file or directory
error: command '"L:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe"' failed with exit status 2

 

Instructions to fix the error above

1. You will need to download and install numpy (AKA Numerical Python). You can find it at the following two links:

http://numpy.scipy.org/ 
http://sourceforge.net/projects/numpy

2. After installation, go to your Python installation and navigate to the following:

..\Python24\Lib\site-packages\numpy\core\include\numpy

3. Copy the files that are in there and go to:

..\Python24\include

4. Create a directory here called "numeric" and paste those files into the newly created directory.

5. Now try to compile the extension again. This worked for me!