[Bug 255914] New: yum seems to be completely broken
https://bugzilla.novell.com/show_bug.cgi?id=255914 Summary: yum seems to be completely broken Product: openSUSE 10.3 Version: Alpha 2 Platform: x86 OS/Version: Linux Status: NEW Severity: Major Priority: P5 - None Component: Other AssignedTo: cthiel@novell.com ReportedBy: andreas.hanke@gmx-topmail.de QAContact: qa@suse.de Since several weeks already, yum does not work at all for me. All I get when running "yum update" is: # sudo yum update Setting up Update Process Resolving Dependencies --> Running transaction check Checking deps for ipw-firmware.noarch 0-8-7 - u Traceback (most recent call last): File "/usr/bin/yum", line 29, in <module> yummain.main(sys.argv[1:]) File "/usr/share/yum-cli/yummain.py", line 135, in main (result, resultmsgs) = base.buildTransaction() File "/usr/lib/python2.5/site-packages/PIL/__init__.py", line 537, in buildTransaction File "depsolve.py", line 1146, in _resolveDeps File "depsolve.py", line 1124, in _mytsCheck File "depsolve.py", line 1303, in _checkUpdate File "depsolve.py", line 1272, in _checkInstall File "depsolve.py", line 1052, in _provideToPkg File "rpmsack.py", line 395, in whatProvides File "rpmsack.py", line 145, in searchProvides File "rpmsack.py", line 122, in searchPrco TypeError: unknown key type I know that yum-3.1.4 is an unstable version, but something is going wrong here anyway because it should at least *basically* work (and according to posts on [yum-devel] it does on other distributions). -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255914 cthiel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME ------- Comment #1 from cthiel@novell.com 2007-03-27 08:03 MST ------- I'v just updated yum to 3.1.5, which should work much smoother. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255914 andreas.hanke@gmx-topmail.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | ------- Comment #2 from andreas.hanke@gmx-topmail.de 2007-03-28 10:31 MST ------- Does not work for me. After updating to yum-3.1.5, the traceback does not go away or even change. There is a suspicios reference to /usr/lib/python2.5/site-packages/PIL/__init__.py in the traceback. This file belongs to the python-imaging package. Removing that does not change anything either. There is something going wrong here. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255914 cthiel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED ------- Comment #3 from cthiel@novell.com 2007-03-29 08:05 MST ------- Seems to be a problem that's triggered by our metadata. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255914 cthiel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jmatejek@novell.com ------- Comment #4 from cthiel@novell.com 2007-04-06 04:51 MST ------- I'v looked into the problem again and can confirm, that it doesn't have anything todo with the metadata. To me, it looks like a problem somewhere in our Python 2.5. Jan, any clue on your side? :) Some more notes: /usr/lib/python2.5/site-packages/PIL/__init__.py doesn't have anything todo with yum, and it doesn't have a line 537, or function buildTransaction. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255914 ------- Comment #7 from jmatejek@novell.com 2007-04-06 08:20 MST ------- the PIL reference certainly does smell fishy. what version of the python package do you have? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255914 ------- Comment #8 from jmatejek@novell.com 2007-04-06 09:55 MST ------- aside from that weird PIL thing, this appears to be a very strange bug in rpm's python module -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255914 jmatejek@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cthiel@novell.com Status|NEEDINFO |ASSIGNED Info Provider|jmatejek@novell.com | ------- Comment #9 from jmatejek@novell.com 2007-04-06 12:32 MST ------- the weird PIL thing is partially a bug in Python, and partially caused by an installation/packaging bug in yum. Christoph, i'll send you a patch for that. it is not related in any way to this bug, though still no idea why the error occurs :( it is as if rpm's python module suddenly, in the middle of a transaction, forgot how to recognize an int value. or the value might be lost somewhere in the python interpreter. since this is clearly a problem in Python and not in yum, i'm taking the bug -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255914 jmatejek@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|cthiel@novell.com |jmatejek@novell.com Status|ASSIGNED |NEW ------- Comment #10 from jmatejek@novell.com 2007-04-06 12:33 MST ------- (um ... taking the bug, i said!) -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255914 jmatejek@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255914 cthiel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|yum seems to be completely |yum is broken on latests rpm-python 4.4.2 and/or |broken |Python 2.5 ------- Comment #11 from cthiel@novell.com 2007-04-07 02:15 MST ------- Jan, many thanks for taking the bug! CCing mls, since the bug seems to be hidden somewhere in rpm-python. (Btw, it doesn't occur on Fedora 6.92, which uses the same yum version (3.1.5 or 3.1.6), rpm 4.4.2 and Python 2.5!) -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255914 cthiel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mls@novell.com ------- Comment #12 from cthiel@novell.com 2007-04-12 16:08 MST ------- With Jan's fix, we now at least get a "clean" trace, but the problem persists: # yum update [...] Traceback (most recent call last): File "/usr/bin/yum", line 29, in <module> yummain.main(sys.argv[1:]) File "/usr/share/yum-cli/yummain.py", line 135, in main (result, resultmsgs) = base.buildTransaction() File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 544, in buildTransaction (rescode, restring) = self.resolveDeps() File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 909, in _resolveDeps deps = self._mytsCheck() File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 888, in _mytsCheck ret.extend(self._checkInstall(txmbr)) File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 1035, in _checkInstall dep = self._provideToPkg(req) File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 807, in _provideToPkg for pkgtup in self.rpmdb.whatProvides(r, f, v): File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 381, in whatProvides pkgs = self.searchProvides(name) File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 144, in searchProvides return self.searchPrco(name, 'provides') File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 121, in searchPrco mi = ts.dbMatch(tag, name) TypeError: unknown key type # CCing mls: Do we put any special python related patches into rpm, which are exclusive to us (ie. Fedora doesn't use)? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255914 ------- Comment #13 from mls@novell.com 2007-04-13 03:57 MST ------- special python patches: I don't think so, but maybe we are *missing* some patches... -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255914 jmatejek@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC|cthiel@novell.com |jmatejek@novell.com AssignedTo|jmatejek@novell.com |cthiel@novell.com Status|ASSIGNED |NEW ------- Comment #14 from jmatejek@novell.com 2007-04-27 10:10 MST ------- okay. this one was really stupid and it took me all that time to figure it out, but ... well, things happen. it is fortunately not a bug in python. this line: File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 121, in searchPrco
mi = ts.dbMatch(tag, name) for argument "name", rpm-python accepts type String, yum supplies type Unicode.
simplest solution is in yum, along the lines of
mi = ts.dbMatch(tag, name.encode('us-ascii')) (if I apply this, yum fails on some other place with exactly the same problem, fixed in exactly the same manner. i didn't examine deeper)
Christoph, returning it back to you, it's your call about what to do now. You might use this solution (note that it breaks when non-ascii character gets into the name), or figure out why the Unicode even gets there. (it just might be that this is the underyling bug in python, so feel free to return it to me if that's the case) -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255914 cthiel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #15 from cthiel@novell.com 2007-05-03 06:23 MST ------- Jan, many thanks for digging into this. I'v submitted a fixed package to Factory. -- 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, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com