radempa
2006-Aug-26 12:34 UTC
[Pkg-xen-devel] Bug#384739: ImportError: No module named xen.xend.server
Package: xen-utils-3.0 Version: 3.0.2+hg9697-2 Severity: grave Justification: renders package unusable Below you find the output of apt-get install xen-utils-3.0 . /usr/sbin/xend tries tom import the python scripts from /usr/lib/python as well as from /usr/lib64/python ; both directories do not exist on my system, I have python2.4 installed. (With both python2.3 and python2.4 installed I had the same error.) (When forcing an install of libxen-python, which is no more existent in the repository, 'xend start' does work.) The problem is obviously connected with the python transition. This bug is grave, because xen-utils-3.0 is broken after install and cannot be removed via apt / dpkg. I had to manually do prerm (fails, partially), delete, postrm. I have this problem for at least a week now. Selecting previously deselected package xen-utils-3.0. (Reading database ... 161873 files and directories currently installed.) Unpacking xen-utils-3.0 (from .../xen-utils-3.0_3.0.2+hg9697-2_amd64.deb) ... Setting up xen-utils-3.0 (3.0.2+hg9697-2) ... Starting XEN: Traceback (most recent call last): File "/usr/sbin/xend", line 33, in ? from xen.xend.server import SrvDaemon ImportError: No module named xen.xend.server invoke-rc.d: initscript xend, action "start" failed. dpkg: error processing xen-utils-3.0 (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: xen-utils-3.0 E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up xen-utils-3.0 (3.0.2+hg9697-2) ... Starting XEN: Traceback (most recent call last): File "/usr/sbin/xend", line 33, in ? from xen.xend.server import SrvDaemon ImportError: No module named xen.xend.server invoke-rc.d: initscript xend, action "start" failed. dpkg: error processing xen-utils-3.0 (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: xen-utils-3.0 -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16-2-xen-amd64-k8 Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Steve Langasek
2006-Aug-31 03:23 UTC
[Pkg-xen-devel] Bug#384739: ImportError: No module named xen.xend.server
tags 384739 patch thanks Thanks to Nicolas for the hint -- here is a patch that fixes the problem, all it takes is switching the order in which dh_pycentral/dh_installinit are called when building. Cheers, -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. vorlon@debian.org http://www.debian.org/ -------------- next part -------------- diff -u xen-3.0-3.0.2+hg9697/debian/changelog xen-3.0-3.0.2+hg9697/debian/changelog --- xen-3.0-3.0.2+hg9697/debian/changelog +++ xen-3.0-3.0.2+hg9697/debian/changelog @@ -1,3 +1,13 @@ +xen-3.0 (3.0.2+hg9697-2.1) unstable; urgency=high + + * Non-maintainer upload. + * High-urgency upload for RC bugfix. + * Switch the order of dh_python/dh_pycentral and dh_installinit in + debian/rules, so that the python modules are available when the + postinst tries to start the init script. Closes: #384739. + + -- Steve Langasek <vorlon@debian.org> Wed, 30 Aug 2006 18:37:54 -0700 + xen-3.0 (3.0.2+hg9697-2) unstable; urgency=low [ Guido Trotter ] diff -u xen-3.0-3.0.2+hg9697/debian/rules xen-3.0-3.0.2+hg9697/debian/rules --- xen-3.0-3.0.2+hg9697/debian/rules +++ xen-3.0-3.0.2+hg9697/debian/rules @@ -174,6 +174,8 @@ dh_installchangelogs -s dh_installdocs -s dh_installexamples -s + dh_pycentral -s + dh_python -s dh_installinit -p xen-utils-$(MAJOR) --name xend -- defaults 20 21 dh_installinit -p xen-utils-$(MAJOR) --name xendomains --no-restart-on-upgrade -- defaults 21 20 dh_installman -s @@ -181,8 +183,6 @@ dh_strip -s dh_compress -s dh_fixperms -s - dh_pycentral -s - dh_python -s dh_makeshlibs -s dh_installdeb -s dh_shlibdeps -s
Debian Bug Tracking System
2006-Aug-31 03:25 UTC
[Pkg-xen-devel] Processed: Re: ImportError: No module named xen.xend.server
Processing commands for control@bugs.debian.org:> tags 384739 patchBug#384739: ImportError: No module named xen.xend.server There were no tags set. Tags added: patch> thanksStopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database)
Debian Bug Tracking System
2006-Nov-03 11:58 UTC
[Pkg-xen-devel] Bug#384739: marked as done (ImportError: No module named xen.xend.server)
Your message dated Thu, 7 Sep 2006 18:22:16 +0200 with message-id <20060907162216.GA4865@uio.no> and subject line Fixed in NMU of xen-3.0 3.0.2+hg9697-2.1 has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------- next part -------------- An embedded message was scrubbed... From: radempa <news@radempa.de> Subject: ImportError: No module named xen.xend.server Date: Sat, 26 Aug 2006 13:46:09 +0200 Size: 3454 Url: http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20060907/a38f91b3/attachment-0002.mht -------------- next part -------------- An embedded message was scrubbed... From: "Steinar H. Gunderson" <sesse@debian.org> Subject: Re: Fixed in NMU of xen-3.0 3.0.2+hg9697-2.1 Date: Thu, 7 Sep 2006 18:22:16 +0200 Size: 2186 Url: http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20060907/a38f91b3/attachment-0003.mht
Apparently Analagous Threads
- Bug#379721: xen-3.0: FTBFS: bashisms
- Bug#382974: xen-utils-3.0: needs python (< 2.4) but 2.4.3-10 will be installed (unstable)
- Bug#384739: Just hit that too
- Bug#380990: Python transition (#2): you are building a private python module !
- Bug#385934: xen-hypervisor-3.0-i386: Hypervisor reboots before starting Dom0