[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: Script for starting private Tor networks



On 9/2/05, ADB <firefox-gen@xxxxxxxxxx> wrote:
>  I tested it in win32, and it doesn't really work. Some system calls differ.
> Here's the output:
> Settings\bushwacker\Desktop\test\make-private-tor-network.py",
> line 28, in tor_get_version
>      output = run(binary, "tor", "--version")
>    File "C:\Documents and
> Settings\bushwacker\Desktop\test\make-private-tor-network.py",
> line 14, in run
>      process = subprocess.Popen(args, executable = binary, stdout =
> subprocess.PIPE, stderr = None, stdin = None)
>    File "C:\Python24\lib\subprocess.py", line 549, in
> __init__
>      (p2cread, p2cwrite,
>    File "C:\Python24\lib\subprocess.py", line 609, in
> _get_handles
>      p2cread = self._make_inheritable(p2cread)
>    File "C:\Python24\lib\subprocess.py", line 650, in
> _make_inheritable
>      DUPLICATE_SAME_ACCESS)
>  TypeError: an integer is required

Looks like a bug in the subprocess module shipped with Python 2.4. The
faulting line of code is in a big "if mswindows:" block, and is
passing the wrong type of argument to a win32 call.


AGL

-- 
Adam Langley                                      agl@xxxxxxxxxxxxxxxxxx
http://www.imperialviolet.org                       (+44) (0)7906 332512
PGP: 9113   256A   CC0F   71A6   4C84   5087   CDA5   52DF   2CB6   3D60