[PyOpenGL-Users] py2exe problem, need help
Brought to you by:
mcfletch
From: daniel h. <car...@ya...> - 2004-05-25 12:21:57
|
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 pyopengl 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" 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 On the other hand, I found on this mail list the workaround proposed by John F Meinel, I used it in 2 variants: -with --excludes=OpenGL and then copy the package in dist -without the --excludes The situation is the same in both variants, my application starts but the glCanvas is not displayed, no error message is given though. What should I do ?? Thanks __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ |