https://bugzilla.novell.com/show_bug.cgi?id=766778 https://bugzilla.novell.com/show_bug.cgi?id=766778#c6 --- Comment #6 from Johannes Meixner <jsmeix@suse.com> 2012-06-15 07:52:43 UTC --- Adding a hardcoded RPM Requires into python-xml could help to enforce the dependcency but as far as I see there is already such a hardcoded RPM Requires: In OBS openSUSE:12.1:Update python-base python-base.spec there is --------------------------------------------------------------------------- Name: python-base ... # explicitly, see bnc#697251 Requires: libpython2_7-1_0 = %{version}-%{release} . . . %package -n python-xml Requires: python-base = %{version} --------------------------------------------------------------------------- Accordingly at least on the openSUSE 12.1 system as in comment #3 it "just works". Details: That openSUSE 12.1 system is a machine of a colleague and he did not do any manual updates regarding Python (in particular he did no manual "zypper up libpython2_7-1_0"). On that openSUSE 12.1 system there is the RPM dependcency between libpython2_7-1_0 and python-xml: --------------------------------------------------------------------------- $ rpm -e --test libpython2_7-1_0 2>&1 | grep python-xml libpython2.7.so.1.0()(64bit) is needed by (installed) python-xml-2.7.2-7.14.1.x86_64 $ rpm -q --requires python-xml ... libpython2.7.so.1.0()(64bit) rpm -q --whatprovides 'libpython2.7.so.1.0()(64bit)' libpython2_7-1_0-2.7.2-7.14.1.x86_64 --------------------------------------------------------------------------- On that openSUSE 12.1 system both packages were updated at the same time: --------------------------------------------------------------------------- $ rpm -qi libpython2_7-1_0 | grep 'Install Date' Install Date: Tue 12 Jun 2012 10:27:10 CEST $ rpm -qi python-xml | grep 'Install Date' Install Date: Tue 12 Jun 2012 10:28:15 CEST --------------------------------------------------------------------------- On that openSUSE 12.1 system it "just works": --------------------------------------------------------------------------- $ cat testy.py #!/usr/bin/env python import xml.parsers.expat as expat print "Hello" $ python testy.py Hello $ python -v testy.py 2>&1 | grep expat # /usr/lib64/python2.7/xml/parsers/expat.pyc matches /usr/lib64/python2.7/xml/parsers/expat.py import xml.parsers.expat # precompiled from /usr/lib64/python2.7/xml/parsers/expat.pyc dlopen("/usr/lib64/python2.7/lib-dynload/pyexpat.so", 2); import pyexpat # dynamically loaded from /usr/lib64/python2.7/lib-dynload/pyexpat.so # cleanup[1] pyexpat # cleanup[1] xml.parsers.expat # cleanup[2] pyexpat.errors # cleanup[2] pyexpat.model $ ls -l /usr/lib64/python2.7/xml/parsers/expat.py /usr/lib64/python2.7/xml/parsers/expat.pyc ... 106 May 10 15:28 /usr/lib64/python2.7/xml/parsers/expat.py ... 279 May 10 15:28 /usr/lib64/python2.7/xml/parsers/expat.pyc $ rpm -qf /usr/lib64/python2.7/xml/parsers/expat.py python-xml-2.7.2-7.14.1.x86_64 $ rpm -qf /usr/lib64/python2.7/xml/parsers/expat.pyc python-xml-2.7.2-7.14.1.x86_64 $ rpm -qi python-xml | grep 'Build Date' Build Date : Thu 10 May 2012 15:55:50 CEST ---------------------------------------------------------------------------
From my current point of view the actual root cause is not in the Python packages but more likely somewhere in the package management system (from RPM and zypper up to OBS and various repositories and things like that).
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.