cxfreeze crashed with TypeError in _LoadModule() when trying to freeze an executable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cx-freeze (Ubuntu) |
Fix Released
|
Medium
|
Dustin Kirkland |
Bug Description
Binary package hint: cx-freeze
Create a simple python file: helloworld.py with the following content
print "Hello, World!"
Then do cxfreeze helloworld.py
Crashes with the errors
copying /usr/lib/
copying /usr/lib/
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/lib/
freezer.
File "/usr/lib/
self.
File "/usr/lib/
exe.
File "/usr/lib/
initModule = finder.
File "/usr/lib/
deferredImp
File "/usr/lib/
module.code = compile(fp.read() + "\n", path, "exec")
TypeError: compile() expected string without null bytes
ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: cx-freeze 4.0.1-0ubuntu3
ProcVersionSign
Uname: Linux 2.6.35-20-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Wed Sep 8 17:06:44 2010
ExecutablePath: /usr/bin/cxfreeze
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
InterpreterPath: /usr/bin/python2.6
ProcCmdline: /usr/bin/python2.6 /usr/bin/cxfreeze /home/username/
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_US.utf8
PythonArgs: ['/usr/
SourcePackage: cx-freeze
Title: cxfreeze crashed with TypeError in _LoadModule()
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
Related branches
tags: | removed: need-duplicate-check |
visibility: | private → public |
Changed in cx-freeze (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Dustin Kirkland (kirkland) |
This bug was fixed in the package cx-freeze - 4.0.1-0ubuntu6
---------------
cx-freeze (4.0.1-0ubuntu6) precise; urgency=low
* debian/ patches/ handle_ pyc_in_ load_module. patch: LP: #473610, #633594 ubuntuforums. org/showthread. php?t=1500926
- the web is crawling with reports of cx-freeze failing to compile
even simple hello world python code
- I have reproduced the issue on multiple Ubuntu development system,
and adapted a "fix" from:
+ http://
- basically, .pyc files need to be handled in a special manner
-- Dustin Kirkland <email address hidden> Mon, 13 Feb 2012 16:02:12 -0600