Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 20th, 2004, 07:25 AM
carpatic carpatic is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 7 carpatic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 16 m 19 sec
Reputation Power: 0
py2exe and pyOpenGL

Hello.
I am trying to make my generated executable work, but I have a problem. I use the latest pyOpenGL, with Python 2.3 and use py2exe 0.5.
I use the --excludes=OpenGL flag when running the script (following the advice found at puopengl doc page and copy the installed OpenGL package directly in the distribution folder (/dist). But still the application does not find it ("ImportError: No module named OpenGL.GL")
At the project-page of pyOpenGL they have a "sample" for using py2exe with pyOpenGL. I have downloaded it, tried to rebuild the executables with their setups (but my py2exe of course) and failed in the same way :"ImportError: No module named OpenGL.GL"
Am I doing something wrong ? How can this problem be solved ?
Thank you.

Reply With Quote
  #2  
Old May 20th, 2004, 07:33 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,537 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 17 m 47 sec
Reputation Power: 68
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Do your programs run before you try to compile them using py2exe? You should also probably try the examples provided as a way of testing everything works ok .

Mark.
__________________
programming language development: www.netytan.com Hula


Reply With Quote
  #3  
Old May 20th, 2004, 08:00 AM
carpatic carpatic is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 7 carpatic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 16 m 19 sec
Reputation Power: 0
yes of course the application works. I compiled applications with py2exe before, no problem, but they did not use pyOpenGL. But this one does. Also, regarding the examples provided by the pyopengl developers, I could not make it work when recompiling. Could it be a problem with the library.zip generated by py2exe ? In the given examples (made probably -my opinion- with another version of py2exe there is no library.zip). And it seems that my exe is looking for the resources there, not directly in the current folder. But as I can see, the zip is generated by py2exe with zlib and I would have to rebuild the archive again with zlib (including the OpenGL package) to make it work. I'll try this, eventually, but hope to find an easier way.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > py2exe and pyOpenGL

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap