Hi all,
I'm facing some problems with pyinstaller and pyopengl and i was
wondering if you could help me.
My set up is:
windows7 prof
python 2.7
wxpython 2.8.12.1
pyopengl 3.0.1
pyinstaller 1.5.1
everything on a 64 environment.
My code works well by sources, but when I build the exe and I start
it, I got this message:
Traceback (most recent call last):
File "app\build\pyi.win32\app\outPYZ1.pyz/gui.canvas3", line 97, in
OnDraw
File "app\build\pyi.win32\app\outPYZ1.pyz/gui.canvas3", line 581, in
_draw
File "app\build\pyi.win32\app\outPYZ1.pyz/gui.canvas3", line 1047,
in axis
File "app\build\pyi.win32\app\outPYZ1.pyz/
OpenGL.platform.baseplatform", line
340, in __call__
OpenGL.error.NullFunctionError: Attempt to call an undefined function
glutBitmap
Character, check for bool(glutBitmapCharacter) before calling
I use this script to get the exe:
cd pyinstaller-1.5.1
python -O Configure.py
python Makespec.py -X --icon=..\gui\favicon.ico ..\app.py
python -O Build.py app/app.spec
cd ..
And this is the .spec file:
# -*- mode: python -*-
a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'),
os.path.join(HOMEPATH,'support\\useUnicode.py'), '..\\app.py'],
pathex=['C:\\Users\\user\\gui\\pyinstaller-1.5.1'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build\\pyi.win32\\app', 'app.exe'),
debug=False,
strip=False,
upx=True,
console=True , icon='..\\gui\\favicon.ico')
coll = COLLECT( exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name=os.path.join('dist', 'app'))
glutbitmapcharacter is a function located in one the libraries in C:
\Python27\Lib\site-packages\OpenGL\DLLS directory, which contains
freeglut.dll, gle32.dll and glut32.dll.
It works if I start the software by python app.py, but not by app.exe.
Maybe pyinstaller is not able to link the software to opengl dlls?
Google in this case was not helpful.
I tried to copy these dlls in the same folder of the exe, but it
didn't worked.
I also tried to add OpenGL.GLUT.glutBitmapCharacter in the hook-
OpenGL, but it didn't worked.
Can you please suggest me anything to try to get this issue fixed?
Best regards.
Nando
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.