Summary: | dev-lang/python site.py crashes on python startup due to defective .pth file | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Donald Wallace Rouse II <gentoo-user-0d329vjsd8> |
Component: | [OLD] Core system | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Donald Wallace Rouse II
2010-12-02 15:13:23 UTC
I have reported the actual bug that revealed this problem at http://bugs.gentoo.org/show_bug.cgi?id=347573 OK, this is embarrassing. The workaround that I provided above was sufficient to allow emerge --info to work, but when I tried to actually emerge something, it failed. Replacing the line with "print >>sys.stderr, ..." seems to work but causes lots of output. I guess the solution is to use "pass", but of course that means that bugs related to problems with .pth files will be more difficult to diagnose. 1. This behavior exists in all versions of Python and Setuptools/Distribute. 2. You can file improvement request in upstream bug tracker: http://bugs.python.org/ 3. The direct cause of your problem is that you manually created /usr/lib64/python2.7/site-packages/zope/__init__.py file. Please remove it: rm -f /usr/lib64/python2.7/site-packages/zope/__init__.py* (There are some plans to change handling of something related to this bug.) *** Bug 347573 has been marked as a duplicate of this bug. *** RE: Comment #3: I most certainly did _not_ create /usr/lib64/python2.7/site-packages/zope/__init__.py manually; I was not even aware of that file until you mentioned it in your comment. An install process must have created it. Here is the output from "equery belongs /usr/lib64/python2.7/site-packages/zope/__init__.py": * Searching for /usr/lib64/python2.7/site-packages/zope/__init__.py ... net-zope/zope-interface-3.6.1 (/usr/lib64/python2.7/site-packages/zope/__init__.py) So there's still a bug in there somewhere. Sorry. forgot to check "Reopen bug". Attach full build log of net-zope/zope-interface. Not ignoring of errors at startup is intentional: http://svn.python.org/view?view=rev&revision=78826 http://svn.python.org/view?view=rev&revision=78872 site.py will tolerate broken .pth files in Python 2.7.2, 3.1.4 and 3.2. (>=2.7.2_pre20110102:2.7, >=3.1.4_pre20110102:3.1 and >=3.2_pre20110102:3.2 from python overlay will also contain this change.) http://svn.python.org/view?view=rev&revision=87497 http://svn.python.org/view?view=rev&revision=87499 http://svn.python.org/view?view=rev&revision=87500 |