473,804 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\si te-packages\OpenGL \Demo\GLUT\exam ples 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 __glutCreateMen uWithExit 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.p y", 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('moleh ill.py') from Python(command line) ?
Thanks,

Steven Gutstein
Jul 18 '05 #1
5 5511
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?dow nload

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?dow nload

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
1995
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 and GLUT. Based on the dots.py code (from the examples) I wrote a working application that reacts fine to my keyboard. Now I would like to add some Tk widgets, like 'Quit' in the texturesurf2.py example. The problem is that texturesurf2.py takes a
9
3197
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 programs. To do this I need to draw pictures of the molecules, typically using OpenGL, and do some basic control, using some widget set. The code currently uses GTK, and runs on Macintosh OS X under Fink, and Linux. I would like to support the...
2
1291
by: hpy_awad | last post by:
Where can I exactly find the header files and library files for borland C++ programming
4
4130
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 engine. Now I'm looking to build a GUI in python with the rendering engine as an integrated window. I will most likely use wxPython for the GUI and I know it has support for adding an OpenGL canvas. After looking around in these groups and others it...
0
1343
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 example 3: Collision detection # Originally by Matthias Baas.
3
9997
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 OpenGL.GLUT import *
22
2789
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 direct me step-by-step on how to have a standard openGL setup on Dev c++. P.S- i do have GLUT, but i reckon it's only part of openGL. cheers! thanx! yours,
3
3447
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 got no reply, in an OpenGL group somebody recommended me to use Visual C++ which I did. That worked OK but I do would like to use Watcom. In the meantime I found solutions to several of the errors I got but one is left which I cannot find a...
0
1926
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? using System; using System.Collections.Generic; using System.Text; using Tao.OpenGl;
0
9712
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10343
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9171
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7634
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5530
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.