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

py2exe and OpenGL problem

I am using the new py2exe and python 24. When I run my setup.py, the
dist seems to generate just fine. However run I run the resulting exe,
I get an error:

IOError: [Errno 2] No such file or directory
'c:\\app\\dist\\library.zip\\OpenGL\\version'

Now I've tried the recommended route with older py2exes, where I
exclude OpenGL and copy the entire directory over to my dist, but that
didn't work. I included "version" into the "OpenGL" directory via my
setup.py script, and it is there right in the library.zip, but I still
get the same error.

Anyone have any ideas or suggections?

Thanks,
Patrick

Sep 25 '05 #1
1 1649
Line 13:17 of OpenGL.__init__.py, replace with:

try:
filename = os.path.join(os.path.dirname(__file__), 'version')
__version__ = string.strip(open(filename).read())
except Exception, err:
__version__ = '2.0.2.02'

HTH,
Mike

bi**********@gmail.com wrote:
I am using the new py2exe and python 24. When I run my setup.py, the
dist seems to generate just fine. However run I run the resulting exe,
I get an error:

IOError: [Errno 2] No such file or directory
'c:\\app\\dist\\library.zip\\OpenGL\\version'

Now I've tried the recommended route with older py2exes, where I
exclude OpenGL and copy the entire directory over to my dist, but that
didn't work. I included "version" into the "OpenGL" directory via my
setup.py script, and it is there right in the library.zip, but I still
get the same error.

Anyone have any ideas or suggections?


--
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com

Sep 25 '05 #2

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

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
8
by: Kathleen Kudzma | last post by:
Does anyone know how to resolve the following problem that I'm getting in Python 2.2 and 2.3? PROBLEM: When I try to create a classReader object I get an exception: "SAXReaderNotAvailable: No...
6
by: Luc Saffre | last post by:
Hello, I had a strange problem when freezing (using either py2exe or McMillan installer) a script that imports reportlab (which imports PIL (which imports FixTk))). - Python 2.3.3c (also with...
6
by: bap | last post by:
When I try to run a program on a clean machine using the VPython extensions after compiling with PY2EXE I get the following error message: "The procedure entry point IsWow64Process could not be...
1
by: julia | last post by:
Hi, I'm having trouble turning a python program with pyOpenGL into an exe with py2exe. I was wondering if you could help. Basically I have a setup.py like this: # setup.py from...
1
by: Szucs Szabolcs Laszlo | last post by:
Hello, I do `python setup.py py2exe --exclude=OpenGL --includes=Tkinter'. It runs, OK. No error messages. I copy the whole OpenGL dir. next to the .exe file. When I run the .exe, it don't...
1
by: Kirill Kuvaldin | last post by:
Hello All! My program in python uses PyOpenGL and I need to convert it to a standalone windows executable file. Following to these instructions...
4
by: bwaha | last post by:
First time trying to create an executable with py2exe. I have a small program which makes use of python23 (2.3.5?), wxpython ('2.6.2.1'), matplotlib ('0.83.2'), win32com (latest?), Numeric...
0
by: =?ISO-8859-1?Q?S=E9bastien_Ramage?= | last post by:
Hi ! How can I make an exe that use the new pyopengl 3.0.0b1 ??? I use py2exe 0.6.6 with the 3.0.0a6 version I have make it working by copying the egg and by forcing loading it at the start...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
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,...
0
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...
0
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...
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...

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.