Lynn Oliver píše v Po 02. 04. 2012 v 16:03 -0700:
> If I build in onefile mode, I get the following runtime error:
> 
> ImportError:
> dlopen(/var/folders/qq/h5gj3f3s0rx41lhd7h0lt2hm0000gn/T/_MEIyI7ve3/_tkinter.so,
>  2): Library not loaded: @executable_path/Tcl
>   Referenced
> from: /var/folders/qq/h5gj3f3s0rx41lhd7h0lt2hm0000gn/T/_MEIyI7ve3/_tkinter.so
>   Reason: image not found 
> 
> What can cause it to fail in onefile mode but not onedir mode? 

Hi Oliver, I found out that we have a serious issue with onefile mode
(no matter what OS).

Current development version is not able import included Python
C-extension modules. Top-level modules works but not modules included in
submodules.

e.g: module 'time' is a C extension and on Linux it is file 'time.so'.
Frozen executable in onefile mode is able to find and import this
module.

But the following example won't work:
In wx library we have module 'wx._core_'. This is a C-extension module.
In default python installation it is file 'site-packages/wx/_core_.so'.
In frozen executable this module is renamed to 'wx._core_.so'. Modules
like this cannot be found and imported in onefile mode.

I'm trying to debug it. The broken file is ./PyInstaller/loader/iu.py.

I'm pretty sure the issue you are experiencing is related to this issue.

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