mmretail / parallel-ssh

Automatically exported from code.google.com/p/parallel-ssh
Other
0 stars 0 forks source link

Relative imports are not supported in Python 2.4 #75

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
CentOS 5.8, Python 2.4.3
Attached is full install output

During install:
byte-compiling /usr/lib/python2.4/site-packages/psshlib/cli.py to cli.pyc
  File "/usr/lib/python2.4/site-packages/psshlib/cli.py", line 10
    from . import version
         ^
SyntaxError: invalid syntax

Post install:
root# pssh --help
Traceback (most recent call last):
  File "/usr/bin/pssh", line 26, in ?
    from psshlib.cli import common_parser, common_defaults
  File "/usr/lib/python2.4/site-packages/psshlib/cli.py", line 10
    from . import version
         ^
SyntaxError: invalid syntax

Original issue reported on code.google.com by google....@nooblet.org on 17 Sep 2012 at 9:50

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by google....@nooblet.org on 17 Sep 2012 at 9:56

Attachments:

GoogleCodeExporter commented 8 years ago
It looks like we're using Python 2.5 syntax, which is incompatible with Python 
2.4. Since we're still trying to keep Python 2.4 compatibility, I'll accept 
this as a bug. 

If you need an instant fix, change that line in cli.py to "from psshlib import 
version".

Original comment by amcna...@gmail.com on 17 Sep 2012 at 4:40

GoogleCodeExporter commented 8 years ago
Issue 76 has been merged into this issue.

Original comment by amcna...@gmail.com on 17 Sep 2012 at 4:41

GoogleCodeExporter commented 8 years ago
This is fixed in commit 7b2b409. Thanks for reporting this issue.

Original comment by amcna...@gmail.com on 17 Sep 2012 at 4:45