Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 279917 - app-emulation/xen-tools-3.4.0-r1 does not run with python 2.6
Summary: app-emulation/xen-tools-3.4.0-r1 does not run with python 2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-01 15:26 UTC by Sven
Modified: 2009-08-19 15:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven 2009-08-01 15:26:04 UTC
Hi,

Run the command "xm dmesg" and you will get a an error message about a missing class called "FakeSocket". Some googling reveiled, that this class could have been masked deprecated since 2007 (shame on upstream) and it might have been removed in python 2.6.


Reproducible: Always

Steps to Reproduce:
Comment 1 James Earl Spahlinger 2009-08-06 03:47: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.
Comment 2 Spooky Ghost 2009-08-13 09:05:09 UTC
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?

Comment 3 Sven 2009-08-14 14:43:24 UTC
(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.
Comment 4 Sven 2009-08-18 16:01:31 UTC
# 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.
Comment 5 Patrick Lauer gentoo-dev 2009-08-19 15:02:21 UTC
Hmm, looks like xen-tools needs a dependency change
Comment 6 Patrick Lauer gentoo-dev 2009-08-19 15:06:54 UTC
+  19 Aug 2009; Patrick Lauer <patrick@gentoo.org> xen-tools-3.4.1.ebuild:
+  Changing python dep (use=ssl) for #279917