Hi,

I've a file edit_widget.py that's analysed and integrated into the archive but 
the dynamic import is failing.

It's analysed. It's integrated / packed. But it's not found! Why does 
PyInstaller not use the integrated file?

Details
=======

first lines of the build run:
=============================
C:\Projekte.hg\wxglade>c:\Programme\Python25\python.exe 
c:\Programme\pyinstaller-1.5\Build.py wxglade.spec
checking Analysis
building Analysis because outAnalysis0.toc non existent
running Analysis outAnalysis0.toc
Analyzing: c:\Programme\pyinstaller-1.5\support\_mountzlib.py
Analyzing: c:\Programme\pyinstaller-1.5\support\useUnicode.py
Analyzing: wxglade.py
warning: Not importing directory 'C:\Projekte.hg\wxglade\locale': missing 
__init__.py
Analyzing: edit_widget.py
Analyzing: codegen\cpp_codegen.py
[...]

output of the archive viewer:
=============================
C:\Projekte.hg\wxglade>c:\Programme\Python25\python.exe 
c:\Programme\pyinstaller-1.5\ArchiveViewer.py bdist\wxglade.exe
 pos, length, uncompressed, iscompressed, type, name
[(0, 1757910, 1757910, 0, 'z', 'outPYZ1.pyz'),
 (1757910, 8282, 21234, 1, 'm', 'iu'),
 (1766192, 1494, 3733, 1, 'm', 'struct'),
 (1767686, 5952, 14820, 1, 'm', 'archive'),
 (1773638, 1157, 2272, 1, 's', '_mountzlib'),
 (1774795, 81, 76, 1, 's', 'useUnicode'),
 (1774876, 1953, 5031, 1, 's', 'wxglade'),
 (1776829, 1524, 4285, 1, 's', 'edit_widget')]
? 

ImportError raised during program startup:
==========================================
C:\Projekte.hg\wxglade\bdist>wxglade.exe
Found embedded PKG: C:\Dokumente und Einstellungen\carsten\Eigene 
Dateien\Projekte.hg\wxglade\bdist\wxglade.exe
Extracting binaries
manifestpath: C:\Projekte.hg\wxglade\bdist\wxglade.exe.manifest
Activation context created
Activation context activated
C:\Projekte.hg\wxglade\bdist\python25.dll
Manipulating evironment
PYTHONPATH=C:/Projekte.hg/wxglade/bdist
importing modules from CArchive
extracted iu
extracted struct
extracted archive
Installing import hooks
outPYZ1.pyz
Running scripts
[...]
ERROR loading "floatspin"
Traceback (most recent call last):
  File "C:\Projekte.hg\wxglade\build\pyi.win32\wx
glade\outPYZ1.pyz/common", line 159, in __load_widgets
  File 
"C:\Programme\Python25\Lib\site-packages\vespa\common\wx_gravy\widgets\floatspin\__init__.py",
 line 8, in initialize
    import floatspin_editor
  File "c:\Programme\pyinstaller-1.5\iu.py", line 436, in importHook
    mod = _self_doimport(nm, ctx, fqname)
  File "c:\Programme\pyinstaller-1.5\iu.py", line 521, in doimport
    exec co in mod.__dict__
  File 
"C:\Programme\Python25\Lib\site-packages\vespa\common\wx_gravy\widgets\floatspin\floatspin_editor.py",
 line 9, in <module>
    import edit_widget
  File "c:\Programme\pyinstaller-1.5\iu.py", line 455, in importHook
    raise ImportError, "No module named %s" % fqname
ImportError: No module named edit_widget
[...]

Regards,
Carsten

-- 
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.

Reply via email to