arm: NameError: global name 'bin' is not defined
Damian Johnson
atagar1 at gmail.com
Sun Jan 30 08:43:28 UTC 2011
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 at users.sourceforge.net> 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 at torproject.org with
unsubscribe or-talk in the body. http://archives.seul.org/or/talk/
More information about the tor-talk
mailing list