> And another surprise when I'm using trunc version of cx_Freeze:
>
> $ cxfreeze calculate.pyw
>
> coyping
> /home/kodemi/.local/lib/python3.0/site-packages/cx_Freeze/bases/Console ->
> /home/kodemi/dist/calculate
> coyping (0xb8063000) -> /home/kodemi/dist/(0xb8063000)
> Traceback (most recent call last):
>   File "/usr/local/bin/cxfreeze", line 5, in <module>
>     main()
>   File "/home/kodemi/.local/lib/python3.0/site-packages/cx_Freeze/main.py",
> line 189, in main
>     freezer.Freeze()
>   File
> "/home/kodemi/.local/lib/python3.0/site-packages/cx_Freeze/freezer.py", line
> 442, in Freeze
>     self._FreezeExecutable(executable)
>   File
> "/home/kodemi/.local/lib/python3.0/site-packages/cx_Freeze/freezer.py", line
> 131, in _FreezeExecutable
>     includeMode = True)
>   File
> "/home/kodemi/.local/lib/python3.0/site-packages/cx_Freeze/freezer.py", line
> 112, in _CopyFile
>     self._CopyFile(source, target, copyDependentFiles)
>   File
> "/home/kodemi/.local/lib/python3.0/site-packages/cx_Freeze/freezer.py", line
> 104, in _CopyFile
>     shutil.copyfile(source, target)
>   File "/usr/lib/python3.0/shutil.py", line 52, in copyfile
>     fsrc = open(src, 'rb')
>   File "/usr/lib/python3.0/io.py", line 278, in __new__
>     return open(*args, **kwargs)
>   File "/usr/lib/python3.0/io.py", line 222, in open
>     closefd)
>   File "/usr/lib/python3.0/io.py", line 619, in __init__
>     _fileio._FileIO.__init__(self, name, mode, closefd)
> IOError: [Errno 2] No such file or directory: '(0xb8063000)'
>
> 0xb8063000 -- it's one of results of ldd call.
> __GetDependentFiles code (which is responsible for this processing)  is same
> for 1.4 and trunc versions. But result is different. I can't understand why.
> I added this lines in __GetDependentFiles function:
>
> if dependentFile in ("not found", "(file not found)"):
>                         fileName = parts[0]
>                         if fileName not in self.lddWarnings:
>                             self.lddWarnings[fileName] = None
>                             message = "WARNING: cannot find %s\n" % fileName
>                             sys.stdout.write(message)
>                         continue
>                     elif dependentFile.startswith('(0x'): # <---- added
>                         continue # <---- added

Yes, this problem was introduced in the past couple of days because of
another problem I resolved. I have checked in a change that resolves
this problem.

I have also checked in a change that should eliminate the need for
adding the option --include-modules sip. I still haven't manage to get
PyQt4 to run properly with Python 3.1. It crashes on exit. When trying
to freeze it I get a Unicode decoding issue that I haven't had the
time to track down further. I'll look into it a bit more but it will
have to wait a few days now.

Anthony

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to