[tor-bugs] #8549 [Flashproxy]: Mac OS X pluggable transports bundles need Python 2.7 for argparse

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Mar 26 20:48:06 UTC 2013


#8549: Mac OS X pluggable transports bundles need Python 2.7 for argparse
------------------------+---------------------------------------------------
 Reporter:  dcf         |          Owner:  dcf
     Type:  defect      |         Status:  new
 Priority:  normal      |      Milestone:     
Component:  Flashproxy  |        Version:     
 Keywords:              |         Parent:     
   Points:              |   Actualpoints:     
------------------------+---------------------------------------------------

Comment(by asn):

 Replying to [comment:10 aallai]:
 > Replying to [comment:7 dcf]:
 >
 > > Replying to [comment:6 mrphs]:
 > >
 > >
 > > > Here's the Log file of this new bundle:
 > > > http://pastebin.com/UL8Ci3Bx
 > > >
 > > >
 > >
 > > I see. Rats. I hoped that `argparse.py` copied from Python 2.7 would
 be compatible with Python 2.6, but it looks like not.
 > > {{{
 > > AttributeError: 'module' object has no attribute 'OrderedDict'
 > > }}}
 > > I think this leaves us with two options:
 > > 1. Ship a Python interpreter like we do for Windows, using py2app or
 similar.
 > > 2. Reduce pyobfsproxy's requirements to Python 2.6.
 > > My vote is for (2), if argument parsing is the only thing that
 currently requires Python 2.7. Apart from this issue, the strategy of
 using the system Python has been working well. George, what do you think?
 Is it possible to rewrite option parsing to be compatible with Python 2.6?
 >
 > I could work on (2), it's probably more fun than py2app.

 As a developer, I would prefer not to change any code of Obfsproxy,
 especially if we can avoid it by using pypi's 2.6 argparse or adding a 2.7
 interpreter inside the bundles. Changing the CLI code of Obfsproxy is
 unneeded implementation pain and might even introduce regressions bugs.

 In any case, if you dig this task and you can come up with a reasonable
 patch that makes pyofsproxy 2.6-compliant, I would be up for merging it.
 Still, I consider it kind of a waste of effort and time (but maybe more
 exciting than playing with py2app).

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


More information about the tor-bugs mailing list