[New-bugs-announce] [issue15030] PyPycLoader can't read cached .pyc files

Ronan Lamy report at bugs.python.org
Thu Jun 7 20:29:05 CEST 2012


New submission from Ronan Lamy <ronan.lamy at gmail.com>:

PyPycLoader can't read or write .pyc files created by the core import machinery. I'm attaching a failing test case demonstrating the issue: if you import a .py file using standard mechanisms, thus creating a .pyc, and then (in a separate process, say) attempt to make use of that cached file with PyPycLoader, the import fails with 'ValueError: bad marshal data (unknown type code)'.

It looks like that there has been a change in the binary format of .pyc files but PyPycLoader wasn't updated.

----------
components: Library (Lib)
files: test_PyPyc.diff
keywords: patch
messages: 162486
nosy: Ronan.Lamy, brett.cannon
priority: normal
severity: normal
status: open
title: PyPycLoader can't read cached .pyc files
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file25859/test_PyPyc.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15030>
_______________________________________


More information about the New-bugs-announce mailing list