Le 14/09/11 10:13, Vincent Vande Vyvre a écrit :
Le 14/09/11 08:20, Arnaud Delobelle a écrit :Python 3.1.2 (r312:79147, Sep 27 2010, 09:45:41)On 14 September 2011 06:53, Vincent Vande Vyvre <vincent.vandevy...@swing.be> wrote:Hi, trying your code, I have had numbers of errors:Hi Vincent, thanks for trying it.File "unpyc3.py", line 55, in <module> SETUP_WITH, NameError: name 'SETUP_WITH' is not defined commented it File "unpyc3.py", line 58, in <module> STORE_DEREF, DELETE_DEREF, NameError: name 'DELETE_DEREF' is not defined commented itWhat version of Python are you running this on? This is module is written for Python 3. It looks like you're using an old version of Python (before the with statement was introduced - 2.5?)File "unpyc3.py", line 96, in dec_module stream = open(pyc_path, "rb") UnboundLocalError: local variable 'pyc_path' referenced before assignment change pyc_path to pathThanks, I've fixed that. -- Arnaud Python 3.2.1 (default, jul 11 2011, 12:37:47) [GCC 4.6.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. This one on Archlinux Again the last error: File "unpyc3.py", line 211, in __init__ for v in code_obj.co_cellvars + code_obj.co_freevars] AttributeError: 'NoneType' object has no attribute 'co_cellvars' |
-- http://mail.python.org/mailman/listinfo/python-list