[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 01:41:41 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: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?

 Hm, implementation of (2) is not trivial. Refactoring Pyobfsproxy to
 support Python 2.6 means that we will have to rewrite the cli parsing
 logic (which is kinda hard because it uses argparse `subparsers`), replace
 `OrderedDicts` in the integration tests, and change any other 2.7
 constructs are lying around. Also, pyptlib is not meant to be ran in 2.6
 either.

 What happens if we ship a Python interpreter along with the bundles? How
 much will the bundle size increase?

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


More information about the tor-bugs mailing list