[Bug 214119] New: yum-utils: package-cleanup broken, Python2.5 problem?
https://bugzilla.novell.com/show_bug.cgi?id=214119 Summary: yum-utils: package-cleanup broken, Python2.5 problem? Product: openSUSE 10.2 Version: Alpha 5 plus Platform: x86 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: andreas.hanke@gmx-topmail.de QAContact: qa@suse.de On openSUSE 10.2 Alpha 5+ with yum-3.0 and yum-utils-1.0: % package-cleanup --orphans Setting up yum Traceback (most recent call last): File "/usr/bin/package-cleanup", line 348, in <module> main() File "/usr/bin/package-cleanup", line 333, in main listOrphans(my) File "/usr/bin/package-cleanup", line 166, in listOrphans po = my.getPackageObject(pkgtup) File "Errors.py", line 35, in __init__ File "Errors.py", line 25, in __init__ TypeError: 'NoneType' object is not iterable The same command works fine with the same yum and yum-utils versions on SUSE Linux 10.1. => Python2.5 problem? -- 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=214119 andreas.hanke@gmx-topmail.de changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|yum-utils: package-cleanup |yum broken, Python2.5 problem? |broken, Python2.5 problem? | ------- Comment #1 from andreas.hanke@gmx-topmail.de 2006-10-21 04:16 MST ------- This is not just yum-utils/package-cleanup, it's yum in general. An invalid command (getting used to rug...) results in pretty much the same traceback: % yum se opera 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 85, in main base.getOptionsConfig(args) File "/usr/share/yum-cli/cli.py", line 285, in getOptionsConfig self.parseCommands() # before we return check over the base command + args File "/usr/share/yum-cli/cli.py", line 47, in __init__ yum.Errors.YumBaseError.__init__(self) File "Errors.py", line 25, in __init__ TypeError: 'NoneType' object is not iterable -- 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=214119 aj@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmatejek@novell.com AssignedTo|bnc-team- |cthiel@novell.com |screening@forge.provo.novell| |.com | Severity|Normal |Major -- 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=214119 cthiel@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=214119 ------- Comment #2 from andreas.hanke@gmx-topmail.de 2006-10-24 20:42 MST ------- Maybe interesting: https://lists.dulug.duke.edu/pipermail/yum-devel/2006-October/002776.html -- 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=214119
cthiel@novell.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEEDINFO
Info Provider| |andreas.hanke@gmx-topmail.de
------- Comment #3 from cthiel@novell.com 2006-10-26 14:53 MST -------
I'v just pushed an updated yum package into the build service
(http://software.opensuse.org/download/home:/cthiel1/). Could you please check
if this fixes the problem for you?
Please make sure to have the yum package with this change included:
* Thu Oct 26 2006 - cthiel@suse.de
- added patches by Jeremy Katz
https://bugzilla.novell.com/show_bug.cgi?id=214119 ------- Comment #4 from andreas.hanke@gmx-topmail.de 2006-10-26 20:22 MST ------- OK, just a few remarks first. (1) Jeremy Katz has posted 4 patches in total: (a) yum-python25-etree.patch (b) yum-error-vals.patch (c) yum-mdparser-sqlite.patch (d) yum-pysqlite.patch You have taken (a) and (b) only. Is the assumption correct that (c) and (d) are only needed with the newer pysqlite inside Python2.5 and not when using the external package? (2) You have taken yum-python25-etree.patch, but in an incomplete way. yum needs either cElementTree (from python-elementtree.rpm) or xml.etree (from python-xml.rpm). The spec file now says: %if %{suse_version} <= 1010 Requires: python-elementtree %endif This way, none of both providers is pulled in as a dependency on 10.2, which is not OK. Please make a decision which provider of ElementTree to use (I don't know which one is better - for smart it was easy because smart had a dependency on python-xml anyway and therefore using that saved a dependency, but this is not the case with yum). Maybe you can take the CD layout into account (using python-xml might allow moving python-elementtree away from the CD set). (3) I cannot answer the actual question yet, will do that later today ;-) -- 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=214119 ------- Comment #5 from jmatejek@novell.com 2006-10-27 01:32 MST ------- +1 for python-xml - xml.etree is now part of the standard library, and it would be nice if we could get rid of python-elementtree entirely -- 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=214119 ------- Comment #6 from cthiel@novell.com 2006-10-27 04:52 MST ------- Thanks. Added python-xml to requires on dists > 10.1. -- 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=214119 andreas.hanke@gmx-topmail.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|andreas.hanke@gmx-topmail.de| ------- Comment #7 from andreas.hanke@gmx-topmail.de 2006-10-27 07:58 MST ------- OK, the package from home:/cthiel1 resolves this issue. Thanks! -- 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=214119 cthiel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #8 from cthiel@novell.com 2006-10-27 08:17 MST ------- Thanks -- fixed package submitted 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