| Summary: | app-emulation/xen-tools-3.4.0-r1 does not run with python 2.6 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Sven <sven.koehler> |
| Component: | New packages | Assignee: | Gentoo Xen Devs <xen> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | gentoo-bugs, james |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Sven
2009-08-01 15:26:04 UTC
Please paste the output of 'emerge --info' into a bugzilla comment to assist the maintainers in resolving this issue Additionally please include the error message in an attachment as well. I have pyython-2.6 installed and am running Xen without the problem reported below. I do get a warning when running xm commands but otherwise no problems: /usr/lib64/python2.6/site-packages/xen/util/acmpolicy.py:20: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha If python was upgraded to 2.6 after you installed xen did you run the python-updater script? (In reply to comment #2) > I have pyython-2.6 installed and am running Xen without the problem reported > below. I do get a warning when running xm commands but otherwise no problems: > > /usr/lib64/python2.6/site-packages/xen/util/acmpolicy.py:20: > DeprecationWarning: the sha module is deprecated; use the hashlib module > instead > import sha > > If python was upgraded to 2.6 after you installed xen did you run the > python-updater script? Yes, and xen-tools was re-emerged. Since that time, it doesn't run anymore. If I select python 2.5 again (via eselect) and re-emerge xen-tools, then it works again. # cat test.py
from httplib import FakeSocket
# python2.6 test.py
Traceback (most recent call last):
File "test.py", line 1, in <module>
from httplib import FakeSocket
ImportError: cannot import name FakeSocket
# python2.5 test.py
(no error message)
My python use-flags may be relevant:
# emerge python -vp
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] dev-lang/python-2.6.2-r1 USE="ncurses readline threads xml -berkdb -build -doc -examples -gdbm -ipv6 -sqlite -ssl -tk -ucs2 -wininst" 0 kB
I also took a look at the httplib.py of python 2.6. It seems, that FakeSocket depends on some import of ssl.
Enabling the SSL use-flag for python fixed the problem for me.
Hmm, looks like xen-tools needs a dependency change + 19 Aug 2009; Patrick Lauer <patrick@gentoo.org> xen-tools-3.4.1.ebuild: + Changing python dep (use=ssl) for #279917 |