[PEAK] madness

Ronald Oussoren ronaldoussoren at mac.com
Tue May 30 12:57:50 EDT 2006


On 30-mei-2006, at 18:20, Vladimir Iliev wrote:

> hi,
> i've just upgraded my peak to the latest trunk, and when i tried to
> start my python, i've got this:
>
> 'import site' failed; traceback:
> Traceback (most recent call last):
>   File "c:\python24\lib\site.py", line 397, in ?
>     main()
>   File "c:\python24\lib\site.py", line 382, in main
>     paths_in_sys = addsitepackages(paths_in_sys)
>   File "c:\python24\lib\site.py", line 203, in addsitepackages
>     addsitedir(sitedir, known_paths)
>   File "c:\python24\lib\site.py", line 166, in addsitedir
>     addpackage(sitedir, name, known_paths)
>   File "c:\python24\lib\site.py", line 135, in addpackage
>     exec line
>   File "<string>", line 1
>     importing-1.9.1-py2.4.egg
>                   ^
> SyntaxError: invalid syntax

That's a "feature" of site.py, if a line in a .pth file starts with  
"import" it is executed as a line of python code.

Ronald

>
> ideas ?
>
> _______________________________________________
> PEAK mailing list
> PEAK at eby-sarna.com
> http://www.eby-sarna.com/mailman/listinfo/peak




More information about the PEAK mailing list