473,703 Members | 2,829 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[pyOpenGL]Demo cannot run on Python2.5

(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 PyOpenGL-3.0.0a5-py2.5.egg
pyOpenGL is installed in
D:\Python25\Lib \site-packages\PyOpen GL-3.0.0a5-py2.5.egg\

I tried to run a example ".\OpenGL\Demo\ da\dots.py", but it fails in
the line:
from OpenGL.GL import *
with errors:
AttributeError: 'WinFunctionTyp e' object has no attribute
'returnValues'

Traceback (innermost last):

File "OpenGL\Demo\da \dots.py", line 1, in <module>
#!/usr/bin/python
File "OpenGL\Demo\da \dots.py", line 24, in <module>
from OpenGL.GL import *
File "OpenGL\GL\__in it__.py", line 3, in <module>
from OpenGL.raw.GL.a nnotations import *
File "OpenGL\raw\GL\ annotations.py" , line 19, in <module>
'textures',
File "OpenGL\arrays\ arrayhelpers.py ", line 68, in setInputArraySi zeType
if not hasattr( function, 'returnValues' ):
File "OpenGL\wrapper .py", line 64, in __getattr__
return getattr( self.wrappedOpe ration, key )

It seems that pyOpenGL reimplements the module "ctypes" internally, but
not finished.... I cannot find "self.wrappedOp eration" with any
attribute with the name of 'returnValues'. How to go through this
problem? Did I make some simple mistakes at the beginning of the
installation of pyOpenGL?

Thank you!

ShenLei

Dec 24 '06 #1
0 1452

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

Similar topics

0
1195
by: John Hunter | last post by:
Does anyone have a a windows installer for pyopengl built for python2.3 on win32 that they can send me, or a link? Thanks, John Hunter
3
2052
by: Jimmy Johns | last post by:
Hi, why hasn't there a version of pyOpenGL for python 2.3.x yet? Currently the binary installers for windows only work with python 2.2, and will give an when installing for python 2.3. I can't build it either unless I build python 2.3 from source as well. Is there a work around available?? Thanks in advance. -s
3
2567
by: Steven Gutstein | last post by:
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.
0
1916
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 using - with glut on Windows - doesnt coexist well with other python gui's - glutMainLoop() appears not to work alongside tkinter.mainloop(). (I tried putting them in separate threads but no success there either) The issue has been raised in various...
2
3932
by: matt.walsh | last post by:
Hey I'm a programmer looking to port some of my opengl ...although limited into a python app I've made... I'd like to know where to find any python/opengl source or a tutorial etc.. whatever I'd like to get a series of points that represent a 3d slope presented to the user. Thanks Matt
1
3444
by: Marco | last post by:
I must use text in Opengl, Python This text is for architecture design then I need to use AutoCad fonts (extension .shx). I have two troubles: I don't find a guide, a good program, something for use any kind of fonts in PyOpengl. The nehe tutorial has some bugs in translation to Python. I need to scale rotate the text.
1
1738
by: matthew | last post by:
Hi, I have Python 2-4-2, Numpy 24.2, and PyOpenGL-2.0.2.01 install, along with glut 3.7. The 1st 'funny' thing is that I always seem to get two pythons in /usr/local/bin, ie python and python2.4. These are exactly the same timestamp and size. The other problem is that the demos in ../site-packages/OpenGL/Demo/tom
2
1637
by: Frank | last post by:
Hi, I installed pyopengl (opengl for python) on my linux box and everything works fine. But now I want to save the generated images as, e.g., ps or eps. How can I do that and how can I adjust the resolution (if necessary)? This is probably simple but for some reason I can not find out how to do that. I appreciate every hint!
4
3355
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!
0
8659
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9239
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9102
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...
1
8995
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7844
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...
0
5920
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
4674
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2055
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.