On Tuesday, June 7, 2011 3:39:22 AM UTC-6, gunzapper wrote:
>
> Ciao, 
> I'm trying to work with cheetah, but I got some problems with 
> executable (made by PyInstaller):  "ImportError: No module named 
> Cheetah.DummyTransaction" 
>
> I need help! Can anyone help me? 
>
> Pietro


I encountered the exact same issue.   I tried creating a custom hook file 
to fix the issue, but got the error:

File 
"c:\Programming\Python\pyinstaller-2.0\PyInstaller\hooks\hook-site.py", 
line 37, in hook
new_code_object = PyInstaller.utils.misc.get_code_object(fake_file) 
AttributeError: 'module' object has no attribute 'utils'

I didn't find an ultimate solution, but a workaround is to provide the 
missing module in the "hiddenimport" field of the spec file, as opposed to 
placing it in a hook file and pointing the spec file to the hook file's 
directory.  So my spec file has the following:

> a = Analysis(['..\\..\\cheetah_importing_script.py'],  
             pathex=['C:\\Python27\\Tools\\pyinstaller-2.0'],  
             hiddenimports=['Cheetah.DummyTransaction'],  
             hookspath=None)

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to