[Tutor] problems with 'freeze' on windows

Igor Kaplounenko igor at bioeng.ucsd.edu
Thu Nov 4 23:12:54 CET 2004


I've compiled my own version of Python for Windows, along with the 
Freeze utility.  Freeze works fine for most things, but when I attempt 
to freeze the following code:

###### temp.py ########
import sys
print sys.path
from opengltk.OpenGL import GL
######################

I get the following error from running the executable only:

E:\continuity_distribution\application_files\pcty>temp.exe
['E:\\continuity_distribution\\application_files\\pcty', 
'E:\\Python23\\lib\\site-packages\\Numeric', 'E:\\WINDOWS\\System32\\python
23.zip', 'E:\\Python23\\lib\\site-packages\\Pythonwin', 
'E:\\Python23\\lib\\site-packages\\win32', 'E:\\Python23\\lib\\site-packages
\\win32\\lib', 'E:\\Python23\\lib\\site-packages', 'E:\\Python23\\Lib', 
'E:\\Python23\\DLLs', 'E:\\Python23\\Lib\\lib-tk', 'E:\\cont
inuity_distribution\\application_files\\pcty', 'E:\\Python23', 
'E:\\Python23\\lib\\site-packages\\CONT', 'E:\\Python23\\lib\\site-pa
ckages\\InsightToolkit', 'E:\\Python23\\lib\\site-packages\\PIL', 
'e:\\Python23\\Lib\\site-packages\\opengltk']
Traceback (most recent call last):
  File "temp.py", line 4, in ?
    from opengltk.OpenGL import GL
  File "E:\Python23\lib\site-packages\opengltk\OpenGL\GL.py", line 9, in ?
    from gllib import *
ImportError: No module named extent.utillib

The .py version works just fine, however.  Did anyone else run into this 
sort of trouble before, or knows what may have caused this?
Incidentally, putting a "from gllib import *" statement into the body of 
temp.py works just fine in the frozen executable.  So I thought it might 
be a problem with the paths, but I'm not sure about the specifics.


More information about the Tutor mailing list