Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:ANN': 0.02; 'python': 0.08; 'nameerror:': 0.09; 'received:209.85.160.174': 0.09; 'received:mail-gy0-f174.google.com': 0.09; 'referenced': 0.09; 'subject:python': 0.11; '(before': 0.16; '55,': 0.16; '58,': 0.16; 'subject:Python3': 0.16; 'cc:addr:python-list': 0.16; 'written': 0.16; 'wrote:': 0.16; 'thanks,': 0.18; 'defined': 0.19; 'cc:no real name:2**0': 0.20; 'trying': 0.21; 'cc:2**0': 0.22; 'header:In-Reply-To:1': 0.22; 'variable': 0.24; 'statement': 0.25; 'code,': 0.28; 'fixed': 0.29; 'looks': 0.29; 'message- id:@mail.gmail.com': 0.29; 'cc:addr:python.org': 0.30; 'module': 0.30; '\xc2\xa0\xc2\xa0\xc2\xa0': 0.30; 'thanks': 0.30; "skip:' 10": 0.30; 'version': 0.32; 'hi,': 0.32; 'it.': 0.33; "i've": 0.34; 'assignment': 0.34; 'received:209.85.160': 0.35; 'running': 0.35; 'file': 0.36; 'using': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'introduced': 0.39; 'your': 0.61; 'stream': 0.77; 'on?': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=PeB75ixNk+oyuwOzDgi+i4mRlIw4fLjgqm0BcFAmXMg=; b=SVS3g1LpEEjVTOFO355a1Apr8aH2+TTpYxPeVFF0I9iwa6Zyk+nHZ0HEEnE1FUixyG 8dHzr5pwJLgdVCiNntCStVkyHGxmhuf0Jcx1VbMccyCjOShoL8vQKk1BuuuQJHlcLwEc jI04QgbfYWLJy1sNEvrLiUdK+xKmv8C6765EU= MIME-Version: 1.0 In-Reply-To: <4E70416E.5090208@swing.be> References: <4E70416E.5090208@swing.be> Date: Wed, 14 Sep 2011 07:20:04 +0100 Subject: Re: ANN: unpyc3 - a python bytecode decompiler for Python3 From: Arnaud Delobelle To: Vincent Vande Vyvre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1315981208 news.xs4all.nl 2441 [2001:888:2000:d::a6]:33576 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:13261 On 14 September 2011 06:53, Vincent Vande Vyvre wrote: > > Hi, trying your code, I have had numbers of errors: Hi Vincent, thanks for trying it. > =C2=A0 File "unpyc3.py", line 55, in > =C2=A0=C2=A0=C2=A0 SETUP_WITH, > NameError: name 'SETUP_WITH' is not defined > > commented it > > =C2=A0 File "unpyc3.py", line 58, in > =C2=A0=C2=A0=C2=A0 STORE_DEREF, DELETE_DEREF, > NameError: name 'DELETE_DEREF' is not defined > > commented it What 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?) > =C2=A0 File "unpyc3.py", line 96, in dec_module > =C2=A0=C2=A0=C2=A0 stream =3D open(pyc_path, "rb") > UnboundLocalError: local variable 'pyc_path' referenced before assignment > > change pyc_path to path Thanks, I've fixed that. -- Arnaud