Runtime error

Peter Pearson ppearson at nowhere.invalid
Sat Oct 30 01:32:43 CEST 2010


On Thu, 28 Oct 2010 18:26:49 +0200, Sebastian <python-maillist at elygor.de> wrote:
> Hi all,
>
> I am new to python and I don't know how to fix this error. I only try to 
> execute python (or a cgi script) and I get an ouptu like
>
> [...]
> 'import site' failed; traceback:
> Traceback (most recent call last):
> File "/usr/lib/python2.6/site.py", line 513, in <module>
> main()
> File "/usr/lib/python2.6/site.py", line 496, in main
> known_paths = addsitepackages(known_paths)
> File "/usr/lib/python2.6/site.py", line 288, in addsitepackages
> addsitedir(sitedir, known_paths)
> File "/usr/lib/python2.6/site.py", line 185, in addsitedir
> addpackage(sitedir, name, known_paths)
> File "/usr/lib/python2.6/site.py", line 155, in addpackage
> exec line
> File "<string>", line 1, in <module>
> File "/usr/lib/python2.6/site.py", line 185, in addsitedir
> addpackage(sitedir, name, known_paths)
> File "/usr/lib/python2.6/site.py", line 155, in addpackage
> exec line
> File "<string>", line 1, in <module>
> File "/usr/lib/python2.6/site.py", line 185, in addsitedir
> addpackage(sitedir, name, known_paths)
> File "/usr/lib/python2.6/site.py", line 155, in addpackage
> exec line
> [...]
> File "/usr/lib/python2.6/site.py", line 185, in addsitedir
> addpackage(sitedir, name, known_paths)
> File "/usr/lib/python2.6/site.py", line 155, in addpackage
> exec line
> File "<string>", line 1, in <module>
> File "/usr/lib/python2.6/site.py", line 175, in addsitedir
> sitedir, sitedircase = makepath(sitedir)
> File "/usr/lib/python2.6/site.py", line 76, in makepath
> dir = os.path.abspath(os.path.join(*paths))
> RuntimeError: maximum recursion depth exceeded
>
>
> What is going wrong with my python install? What do I have to change?

While we're waiting for the smart guys to notice your plea,
it will help if you identify your operating system and
show the command that you used to execute Python.  The
parenthetical "or a cgi script" is mysterious to me.

-- 
To email me, substitute nowhere->spamcop, invalid->net.



More information about the Python-list mailing list