Hi,

exactly the same cxfreeze commandline without -O or -OO works fine, i will try 
to create a small example and i will send it to the list. Thanks.

Regards,
Miguel Angel.


Anthony Tuininga escribió:
> Hi,
> 
> Let me see if I can answer some of your questions.
> 
> 1) Yes, -O and -OO really do make a difference and sometimes the
> difference can be substantial. It depends on (for example) how many
> docstrings you are using
> 
> 2) I have tested using -O and -OO with version 4.0.1 and all appears
> to work fine and the executable size changes for each of the options
> 
> 3) The executable created with cxfreeze is a zip file and you can list
> the contents of the zip file in order to see what is inside it
> 
> 4) If you use a setup.py you can create a library.zip which makes the
> zip file a little more obvious (and more accessible to some zip file
> handling applications)
> 
> 5) The error you are getting suggests that there is a directory with
> the same name as a package (or module) you are trying to import but no
> __init__.py; if you believe this problem is being created by cx_Freeze
> and not your own setup then please provide a script that demonstrates
> the problem and I'll look into it
> 
> Hope that helps.
> 
> Anthony
> 
> On Thu, Nov 20, 2008 at 12:50 PM, Linos <[EMAIL PROTECTED]> wrote:
>> Hello, i have updated my machine to python 2.6 and cx_freeze 4.01 (i was 
>> using
>> python 2.5.2 and cx_freeze-3.03) and i cant use cxfreeze -O or -OO options, i
>> get this error:
>>
>>
>> ------------------------------------------------------------------------------------------
>> [EMAIL PROTECTED] ~/temporal/cx_Freeze-4.0.1 $ cxfreeze -OO -c
>> --include-modules=sip,datetime,encodings.cp850,hashlib,encodings.utf_8,encodings.latin_1,syslog,csv
>> --target-dir=output/ --target-name=tpv /home/skuda/git/tpv/tpv.py
>> Traceback (most recent call last):
>>   File "/usr/bin/cxfreeze", line 5, in <module>
>>     main()
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/main.py", line 170, in 
>> main
>>     freezer.Freeze()
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/freezer.py", line 405, in 
>> Freeze
>>     self._FreezeExecutable(executable)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/freezer.py", line 149, in
>> _FreezeExecutable
>>     scriptModule = finder.IncludeFile(exe.script, exe.moduleName)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 386, in
>> IncludeFile
>>     deferredImports)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 281, in
>> _LoadModule
>>     self._ScanCode(module.code, module, deferredImports)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 348, in
>> _ScanCode
>>     module, relativeImportIndex)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 176, in
>> _ImportModule
>>     deferredImports)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 246, in
>> _InternalImportModule
>>     parentModule)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 281, in
>> _LoadModule
>>     self._ScanCode(module.code, module, deferredImports)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 365, in
>> _ScanCode
>>     self._ScanCode(constant, module, deferredImports)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 365, in
>> _ScanCode
>>     self._ScanCode(constant, module, deferredImports)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 348, in
>> _ScanCode
>>     module, relativeImportIndex)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 176, in
>> _ImportModule
>>     deferredImports)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 246, in
>> _InternalImportModule
>>     parentModule)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 281, in
>> _LoadModule
>>     self._ScanCode(module.code, module, deferredImports)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 365, in
>> _ScanCode
>>     self._ScanCode(constant, module, deferredImports)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 365, in
>> _ScanCode
>>     self._ScanCode(constant, module, deferredImports)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 348, in
>> _ScanCode
>>     module, relativeImportIndex)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 176, in
>> _ImportModule
>>     deferredImports)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 246, in
>> _InternalImportModule
>>     parentModule)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 281, in
>> _LoadModule
>>     self._ScanCode(module.code, module, deferredImports)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 365, in
>> _ScanCode
>>     self._ScanCode(constant, module, deferredImports)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 365, in
>> _ScanCode
>>     self._ScanCode(constant, module, deferredImports)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 348, in
>> _ScanCode
>>     module, relativeImportIndex)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 176, in
>> _ImportModule
>>     deferredImports)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 246, in
>> _InternalImportModule
>>     parentModule)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 254, in
>> _LoadModule
>>     return self._LoadPackage(name, path, parent, deferredImports)
>>   File "/usr/lib/python2.6/site-packages/cx_Freeze/finder.py", line 288, in
>> _LoadPackage
>>     fp, path, info = imp.find_module("__init__", module.path)
>> ImportError: No module named __init__
>>
>> ------------------------------------------------------------------------------------------
>>
>> I have detected too my executable is more large than before.
>>
>> [EMAIL PROTECTED] ~/temporal/cx_Freeze-4.0.1 $ l output/tpv
>> -rwxr-xr-x 1 skuda users 3068177 nov 20 20:38 output/tpv
>> [EMAIL PROTECTED] ~/temporal/cx_Freeze-4.0.1 $ l
>> /home/skuda/temporal/cx_Freeze-3.0.3/output/tpv
>> -rwxr-xr-x 1 skuda users 2627264 nov 19 12:37
>> /home/skuda/temporal/cx_Freeze-3.0.3/output/tpv
>>
>> How could i investigate the contents to see the difference, -OO should not 
>> have
>> a big difference like this, no?
>>
>> Best Regards,
>> Miguel Angel.
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> cx-freeze-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>>
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> cx-freeze-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
> 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to