[Ironpython-users] py_compile.compile() constant error (unable to generate a .pyc file)

John Trinder TrinderJohn at dsl.pipex.com
Mon Jul 21 01:10:47 CEST 2014


If I try to compile a .pyc file doing the following, I get:

 >>> import py_compile as p
 >>> p.compile('dummy.py')
Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File "D:\Programming\IronPython 2.7\Lib\py_compile.py", line 126, in 
compile
     marshal.dump(codeobject, fc)
ValueError: unmarshallable object

where 'dummy.py' is a simple test file consisting of:
a = 1

I seem to have noticed that whenever files are imported in a session 
that no .pyc files are automatically generated.

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com



More information about the Ironpython-users mailing list