[tor-bugs] #10017 [Pluggable transport]: Windows twisted.internet.stdio.StandardIO.__init__ lacks "stdin" keyword argument.

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Oct 23 06:04:50 UTC 2013


#10017: Windows twisted.internet.stdio.StandardIO.__init__ lacks "stdin" keyword
argument.
---------------------------------+---------------------------
 Reporter:  dcf                  |          Owner:  infinity0
     Type:  defect               |         Status:  new
 Priority:  normal               |      Milestone:
Component:  Pluggable transport  |        Version:
 Keywords:                       |  Actual Points:
Parent ID:                       |         Points:
---------------------------------+---------------------------
 I see this error when I try to run obfs-flash-client on Windows:

 {{{
 $ TOR_PT_STATE_LOCATION=. TOR_PT_MANAGED_TRANSPORT_VER=1
 TOR_PT_CLIENT_TRANSPORTS=obfs3_flashproxy ./obfs-flash-client 2334
 VERSION 1
 Traceback (most recent call last):
   File "obfs-flash-client", line 272, in <module>
   File "obfs-flash-client", line 267, in main
   File "obfs-flash-client", line 217, in obfs3_flashproxy
   File "obfs-flash-client", line 188, in pt_launch_child
 TypeError: __init__() got an unexpected keyword argument 'stdin'
 Error in atexit._run_exitfuncs:
 Traceback (most recent call last):
   File "atexit.pyc", line 24, in _run_exitfuncs
   File "pyptlib\util\subproc.pyc", line 186, in killall
   File "twisted\internet\base.pyc", line 582, in stop
 ReactorNotRunning: Can't stop reactor that isn't running.
 Error in sys.exitfunc:
 Traceback (most recent call last):
   File "atexit.pyc", line 24, in _run_exitfuncs
   File "pyptlib\util\subproc.pyc", line 186, in killall
   File "twisted\internet\base.pyc", line 582, in stop
 twisted.internet.error.ReactorNotRunning: Can't stop reactor that isn't
 running.
 }}}

 The line in question is
 {{{
     StandardIO(sub_protocol, stdin=sub_proc.stdout.fileno(),
 reactor=reactor)
 }}}

 The
 [https://twistedmatrix.com/trac/browser/trunk/twisted/internet/stdio.py?rev=34653
 stdio] module is implemented by one of the two modules
 [https://twistedmatrix.com/trac/browser/trunk/twisted/internet/_posixstdio.py?rev=34653
 _posixstdio] and
 [https://twistedmatrix.com/trac/browser/trunk/twisted/internet/_win32stdio.py?rev=34653
 _win32stdio]. The constructor for _posixstdio has the `stdin` keyword
 argument, but the constructor for _win32stdio does not.

 Some web searching turned up the bug report
  * [https://twistedmatrix.com/trac/ticket/2157 Ticket #2157: console
 support for stdio in Windows]

 I'm using Twisted 12.3.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10017>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list