Import error !!

John J. Lee jjl at pobox.com
Wed Aug 20 21:35:39 CEST 2003


"satish k.chimakurthi" <skchim0 at engr.uky.edu> writes:
[...]
> 'import site' failed; traceback:
>   File "/usr/lib/python2.2/site.py", line 64
>     dir = os.path.abspath(os.path.join(*paths))
>                                        ^
> SyntaxError: invalid syntax
> Python 1.5.2 (#1, Apr  3 2002, 18:16:26)  [GCC 2.96 20000731 (Red Hat Linux 
[...]

Something has got mixed up with your Python installations: Python
1.5.2 is attempting to import Python 2.2's site.py (and is failing
because 1.5.2 doesn't support the foo(*args) style of function call).


John




More information about the Python-list mailing list