This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Arfrever
Recipients Arfrever, dwr2, eric.araujo, r.david.murray, tarek, vstinner
Date 2010-12-11.13:46:01
SpamBayes Score 4.4598327e-08
Marked as misclassified No
Message-id <1292075164.35.0.578651650439.issue10642@psf.upfronthosting.co.za>
In-reply-to
Content
I suggest to:
- Print path to the .pth file, which causes exception. Current traceback doesn't help in finding the cause of problem:

# echo "import nonexistent" > /usr/lib64/python3.2/site-packages/some_file.pth
# python3.2 -c pass
Traceback (most recent call last):
  File "/usr/lib64/python3.2/site.py", line 520, in <module>
    main()
  File "/usr/lib64/python3.2/site.py", line 509, in main
    known_paths = addsitepackages(known_paths)
  File "/usr/lib64/python3.2/site.py", line 301, in addsitepackages
    addsitedir(sitedir, known_paths)
  File "/usr/lib64/python3.2/site.py", line 177, in addsitedir
    addpackage(sitedir, name, known_paths)
  File "/usr/lib64/python3.2/site.py", line 148, in addpackage
    exec(line)
  File "<string>", line 1, in <module>
ImportError: No module named nonexistent

- Maybe change error into warning.
History
Date User Action Args
2010-12-11 13:46:04Arfreversetrecipients: + Arfrever, dwr2, vstinner, tarek, eric.araujo, r.david.murray
2010-12-11 13:46:04Arfreversetmessageid: <1292075164.35.0.578651650439.issue10642@psf.upfronthosting.co.za>
2010-12-11 13:46:01Arfreverlinkissue10642 messages
2010-12-11 13:46:01Arfrevercreate