Python 2.7 interpreter can't connect to older interpreters
Bug #785179 reported by
Andrew Wilkins
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pushy |
Fix Released
|
Critical
|
Andrew Wilkins |
Bug Description
[remote] Traceback (most recent call last):
[remote] File "<string>", line 1, in ?
[remote] File "<string>", line 27, in ?
[remote] File "/home/
[remote] import __builtin__
[remote] ImportError: cannot import name __builtin__
Related branches
Changed in pushy: | |
status: | In Progress → Fix Committed |
Changed in pushy: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
There was a pretty dumb assumption in pushy/client.py, that .pyc contents would be useable in older interpreters. This previously held true so long as no Python 2.5/2.6 features were used. Something appears to have changed in 2.7 that makes the .pyc files unuseable by prior versions.
I think I will have to change pushy/client.py to always transmit the source. This may have a minor impact on the speed up connection creation.