Problem using compileall
Stephen Hansen
apt.shansen at gmail.com
Tue Feb 3 02:53:06 EST 2009
I'm having a slight problem with pre-compiling some files for distribution
that I'm not sure where to even look for.
An excerpt from an output:
C:\mother\Python24\core\application\sysconfig>python -m compileall .
Listing . ...
Compiling .\BulkListClass.py ...
Sorry: TypeError: ('compile() expected string without null bytes',)
Compiling .\BulkUserImporter.py ...
The BulkListClass is then not creating a PYC.
Yet, if I:
C:\mother\Python24\core\application\sysconfig>python
Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import BulkListClass
It imports the module fine and made the PYC file.
I'm not sure why compileall is failing to compile that file, yet Python can
import it to do so.
Any suggestions for how to debug this?
This is Python 2.4.3 on Windows Vista.
Thanks.
--S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090202/7efc8969/attachment.html>
More information about the Python-list
mailing list