[Comm] python-module-cx-freeze

Alexey Petrakov lex на asd.iao.ru
Пн Фев 7 11:45:47 UTC 2011


И снова здравствуйте.

В бранче p5 cx_Freeze попросту нерабочий. При попытке собрать что-угодно (даже 
на его собственных сэмплах) валится с руганью:
$ python setup.py build 
running build                                         
running build_exe                                     
creating directory build/exe.linux-i686-2.5
coyping /usr/lib/python2.5/site-packages/cx_Freeze/bases/Console -> 
build/exe.linux-i686-2.5/test_matplotlib
coyping /usr/lib/libpython2.5.so.1.0 -> build/exe.linux-
i686-2.5/libpython2.5.so.1.0
Traceback (most recent call last):
  File "setup.py", line 26, in <module>
    executables = executables)
  File "/usr/lib/python2.5/site-packages/cx_Freeze/dist.py", line 284, in 
setup
    distutils.core.setup(**attrs)
  File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/distutils/command/build.py", line 112, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/site-packages/cx_Freeze/dist.py", line 171, in run
    freezer.Freeze()
  File "/usr/lib/python2.5/site-packages/cx_Freeze/freezer.py", line 419, in 
Freeze
    self.compress, self.copyDependentFiles)
  File "/usr/lib/python2.5/site-packages/cx_Freeze/freezer.py", line 340, in 
_WriteModules
    initModule = finder.IncludeFile(initScript, "cx_Freeze__init__")
  File "/usr/lib/python2.5/site-packages/cx_Freeze/finder.py", line 388, in 
IncludeFile
    deferredImports)
  File "/usr/lib/python2.5/site-packages/cx_Freeze/finder.py", line 261, in 
_LoadModule
    module.code = compile(fp.read() + "\n", path, "exec")
TypeError: compile() expected string without null bytes

В интернетах эта проблема широко известна и никакого другого решения, кроме 
как обновить предложено не было.
Очень прошу.


Подробная информация о списке рассылки community