Skip to content

local variable 'n' referenced before assignment #32

Description

@tutorial0

Hi, i got this error when i use uncompyle2:

Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/uncompyle2/init.py", line 203, in main
uncompyle_file(infile, outstream, showasm, showast)
File "/Library/Python/2.7/site-packages/uncompyle2/init.py", line 140, in uncompyle_file
uncompyle(version, co, outstream, showasm, showast)
File "/Library/Python/2.7/site-packages/uncompyle2/init.py", line 102, in uncompyle
tokens, customize = scanner.disassemble(co)
File "/Library/Python/2.7/site-packages/uncompyle2/scanner26.py", line 38, in disassemble
self.code = array('B', co.co_code[:n])
UnboundLocalError: local variable 'n' referenced before assignment

This pyc code is written with python 2.6. Can you help fix this? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions