[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: arm: NameError: global name 'bin' is not defined
- To: Paul Menzel <paulepanter@xxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: arm: NameError: global name 'bin' is not defined
- From: Damian Johnson <atagar1@xxxxxxxxx>
- Date: Sun, 30 Jan 2011 00:43:28 -0800
- Cc: or-talk@xxxxxxxxxxxxx
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: or-talk-outgoing@xxxxxxxx
- Delivered-to: or-talk@xxxxxxxx
- Delivery-date: Sun, 30 Jan 2011 03:43:36 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=2U7mOE9UVMB0Q2HqsGoxP2IJADM44qFp/rORyaltGyg=; b=PCvTwmhY/aTHbKLtqN200FR1KsQwi312UYMIIj9coLxqB2Qs1zo1uvIryU179S2cut 7Pb96SDTYHlm6pIC51Yc04xSY/a6qKGfYwqDUPGmJH6eR+b4wLPkiLUOkhhuP4UjLuMl bZEIdRMZFxA/LfEwz1aw6YCOljwIfNQ8V/QSE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=BGDn6QhJbKUe5qcqxQAjU7b7ndsY6ZwkuQWM/m+7KiSTOZ1wP4gNclJiq91Fh7jj49 SJ3ycdJClfpDio4e0g1bb5A+Z7V0kOEItljkCPCZc2p9G3PQ1I7krxr7noToZ6HIoVoY jWi9mWhYREphAQTvOMMkRjyddAWBIccPq2NMM=
- In-reply-to: <1296375930.4757.2.camel@mattotaupa>
- References: <1296375930.4757.2.camel@mattotaupa>
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-talk@xxxxxxxxxxxxx
Damn, looks like the bin function is new in Python 2.6:
http://docs.python.org/library/functions.html#bin
Thanks for the catch. In the future please file a trac ticket rather
emailing everyone on or-talk. Cheers! -Damian
On Sun, Jan 30, 2011 at 12:25 AM, Paul Menzel
<paulepanter@xxxxxxxxxxxxxxxxxxxxx> wrote:
> Dear Damian,
>
>
> with revision 24158 I am getting the following error when I want to run arm.
>
> # ./arm
> Traceback (most recent call last):
> File "./src/starter.py", line 378, in <module>
> controller.init(conn)
> File "/arm/src/util/torTools.py", line 292, in init
> self._exitPolicyChecker = self.getExitPolicy()
> File "/arm/src/util/torTools.py", line 766, in getExitPolicy
> result = ExitPolicy("reject private", result)
> File "/arm/src/util/torTools.py", line 1541, in __init__
> lastHop = ExitPolicy(prefix + addr + suffix, lastHop)
> File "/arm/src/util/torTools.py", line 1558, in __init__
> self.ipAddressBin += ("%8s" % bin(int(octet))[2:]).replace(" ", "0")
> NameError: global name 'bin' is not defined
>
>
> Thanks,
>
> Paul
>
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxxx with
unsubscribe or-talk in the body. http://archives.seul.org/or/talk/