Bugs item #1145859, was opened at 2005-02-22 00:59
Message generated for change (Comment added) made by giovannibajo
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1145859&group_id=5988
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: install
Group: v2.0.1
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: John A Meinel (jfmeinel)
Assigned to: Nobody/Anonymous (nobody)
Summary: py2exe fails missing "version" file in OpenGL/__init__.py
Initial Comment:
In OpenGL/__init__.py you find out the current version
by doing:
filename = os.path.join(os.path.dirname(__file__),
'version')
__version__ = string.strip(open(filename).read())
However, once things are packed up by py2exe,
__init__.py is actually inside a zipfile, and there is
no "version" file for it to read.
The easiest fix that I've found is to just wrap the
above in a try/except block, and use whatever the
current version should be.
For example
try:
filename =
os.path.join(os.path.dirname(__file__), 'version')
__version__ = string.strip(open(filename).read())
except OSError:
__version__ = '2.0.2.01'
Even if you did something that indicated an "unknown"
version, or something else, it would be nice to have
pyOpenGL work out of the box when packed up.
Thanks,
John
----------------------------------------------------------------------
Comment By: Giovanni Bajo (giovannibajo)
Date: 2008-02-25 02:10
Message:
Logged In: YES
user_id=727687
Originator: NO
I'll notice that PyInstaller has a stable workaround for this bug, so it
can be used with stock PyOpenGL.
----------------------------------------------------------------------
Comment By: Giovanni Bajo (giovannibajo)
Date: 2005-08-23 18:39
Message:
Logged In: YES
user_id=727687
I have the very same problem. Can we get a fix for this bug?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1145859&group_id=5988
|