473,399 Members | 2,478 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,399 software developers and data experts.

Problem with OpenGL.GLUT

I've just managed to get PyOpenGL installed on a Windows NT machine.
I've tried testing it using one of the programs supplied with the
PyOpenGL download - molehill.py. On my machine, it was placed in the
python23\Lib\site-packages\OpenGL\Demo\GLUT\examples directory.

When I'm in Windows Explorer and double click on the icon for this
program, it runs fine.

However, when I try to 'execfile' molehill from the Python command
line, I have the following problem:

First I get a message window from Windows stating "The procedure entry
point __glutCreateMenuWithExit could not be located in dynamic link
library glut32.dll". The title of this window is "python.exe - Entry
Point Not Found"

After I click "OK" to make this message window disappear, I get the
following traceback:
Traceback of
File "<stdin>", line 1, in ?
File "molehill.py", line 19, in ?
fron OpenGL.GLUT import *
ImportError: DLL Load failed: The specified procedure could not be
found.

Is there any reason why this program should run when I double click it
from within Windows file manager, but not when I type
execfile('molehill.py') from Python(command line) ?
Thanks,

Steven Gutstein
Jul 18 '05 #1
5 5487
Steven ....

I'm also having import problems
with a Win98 installation of PyOpenGL for Python 2.3
from ....

http://prdownloads.sourceforge.net/pyopengl
/PyOpenGL-2.0.1.07.py2.3-numpy23.exe?download

Any of the test programs in the Demo folder
that attempt from OpenGL.GLUT fail
as does a direct import attempt
from the Python interpreter ....

python
Enthought Edition build 1028
Python 2.3 (#46, Aug 11 2003, 09:34:05) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

from OpenGL.GLUT import *

Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: DLL load failed: One of the library files needed to run this applic
ation cannot be found.

Using < dependency walker > to examine ....

/site-packages/OpenGL/GLUT.pyd

shows .... glut32.dll * Not Found *

I've done a few searches on Google,
but as yet haven't turned up what
seems to be a compatible version
of this particular missing DLL file ....

Hopefully, someone here might know
how to resolve this ....

--
Cousin Stanley
Human Being
Phoenix, Arizona

Jul 18 '05 #2
Cousin Stanley wrote:
Steven ....

I'm also having import problems
with a Win98 installation of PyOpenGL for Python 2.3
from ....

....
Using < dependency walker > to examine ....

/site-packages/OpenGL/GLUT.pyd

shows .... glut32.dll * Not Found *

PyOpenGL doesn't include the actual GLUT library, just a wrapper around
it (most systems already have GLUT installed these days). You can find
a link for GLUT for win32 here:

http://pyopengl.sourceforge.net/docu...tallation.html

(look for "Win32 binary package" under GLUT 3.7+).
I've done a few searches on Google,
but as yet haven't turned up what
seems to be a compatible version
of this particular missing DLL file ....

Hopefully, someone here might know
how to resolve this ....

HTH,
Mike

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


Jul 18 '05 #3
"Cousin Stanley" <Co***********@hotmail.com> writes:
Steven ....

I'm also having import problems
with a Win98 installation of PyOpenGL for Python 2.3
from ....

http://prdownloads.sourceforge.net/pyopengl
/PyOpenGL-2.0.1.07.py2.3-numpy23.exe?download

Any of the test programs in the Demo folder
that attempt from OpenGL.GLUT fail
as does a direct import attempt
from the Python interpreter ....

python
Enthought Edition build 1028
Python 2.3 (#46, Aug 11 2003, 09:34:05) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

from OpenGL.GLUT import *

Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: DLL load failed: One of the library files needed to run this applic
ation cannot be found.

Using < dependency walker > to examine ....

/site-packages/OpenGL/GLUT.pyd

shows .... glut32.dll * Not Found *

I've done a few searches on Google,
but as yet haven't turned up what
seems to be a compatible version
of this particular missing DLL file ....

Hopefully, someone here might know
how to resolve this ....

--
Cousin Stanley
Human Being
Phoenix, Arizona


I use the glut DLLs from here[1] with PyOpenGL on NT and I am pretty sure
that the GLUT examples worked OK. I haven't got access to that machine
at the moment so I can't check. But if you haven't already tried the
DLLs from[1] perhaps they might work for you.

[1] http://www.xmission.com/~nate/glut.html

Sean
--
"Hver sin smak", sa vintapperen, han drakk mens de andre sloss.
Jul 18 '05 #4
| PyOpenGL doesn't include the actual GLUT library,
| just a wrapper around it
| ....
| You can find a link for GLUT for win32 here:
|
| http://pyopengl.sourceforge.net/docu...tallation.html

Mike ....

Thanks for the info ....

Sticking a copy of glut32.dll from the link you provided above
in /site-packages/OpenGL fixed the import problem
and the PyOpenGL demos now seem to fly as expected,
with a few exceptions that have some errors
that are of a different nature ....

I also have a working version of PyOpenGL under Python 2.2
that has the glut32.dll in /site-packages/OpenGL
and assumed that the installer that I used many months ago
had stuck it there since I couldn't find any other GLUT related
files in my archived downloads ....

However, I probably somehow deleted it post-install ....

--
Cousin Stanley
Human Being
Phoenix, Arizona

Jul 18 '05 #5
Sean ....

The link that Mike Fletcher posted ....

http://pyopengl.sourceforge.net/docu...tallation.html

Leads ultimately to the one you posted ....

http://www.xmission.com/%7Enate/glut.html

I now have a glut32.dll that works fine
with Python 2.3 / PyOpenGL ....

Thanks for the info ....

--
Cousin Stanley
Human Being
Phoenix, Arizona

Jul 18 '05 #6

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

Similar topics

1
by: Fulko van Westrenen | last post by:
Hello, I'm very new to Python and rather unexperienced in OpenGL, and now I try to learn both at the same time. I can find my way around in Perl with Perl/Tk. What I try to do is combining Tk...
9
by: Rick Muller | last post by:
I have a problem that I would like to get some advice on from other Pythonistas. I currently manage a (soon to be) open source project for displaying molecular graphics for a variety of different...
2
by: hpy_awad | last post by:
Where can I exactly find the header files and library files for borland C++ programming
4
by: tobfon | last post by:
I'm creating a scientific visualization application with rather high demands on performance. I've created a nice rendering engine for it in C++/OpenGL and a python interface to the rendering...
0
by: freshman | last post by:
# test code: http://pyode.sourceforge.net/tutorials/tutorial3.html # #i want selecting object in pyode test code. # what's wrong? # under modify code # see selectObject() function # pyODE...
3
by: jg.campbell.ng | last post by:
I'm beginning learning Python and OpenGL in Python. Python fine. But difficulties with OpenGL; presumably with the installation of OpenGL. OS = Linux FC5. Python program gl_test.py: from...
22
by: MC felon | last post by:
hello. i have a Dev c++ compiler (version 4.0). i wish to start on openGL. How do i enable openGL programming in Dev c++? what exactly do i download? assume me to be a complete fresher and please...
3
by: Rene | last post by:
Hello to all! For a long time I have been "fighting" a problem compiling an OpenGL program which uses GLUT. First I have put a question in a Watcom group (I want to use this compiler) to which I...
0
by: Smurfas | last post by:
Hi, I programin whit C# and OpenGL, but I have one problam. I don't find wha't is wrong. Windows is white, don't do enything. What's wrong? And maybe some no good OpenGL+C# book for beginner? ...
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: 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
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.