Bug 1051869
| Summary: | [abrt] dnf: comps.py:62:_by_pattern:TypeError: expected string or buffer | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Maciek Borzecki <maciek.borzecki> | ||||||
| Component: | dnf | Assignee: | Ales Kozumplik <akozumpl> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 20 | CC: | akozumpl, jzeleny, maciek.borzecki, packaging-team-maint, pnemade, rdieter, rholy | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Unspecified | ||||||||
| URL: | https://retrace.fedoraproject.org/faf/reports/bthash/48ba18e646f6beda1291227ad47a2f56088ae373 | ||||||||
| Whiteboard: | abrt_hash:75c4414c968c0031860ada041b8937eceb5dc5bb | ||||||||
| Fixed In Version: | dnf-plugins-core-0.0.8-2.fc20 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2014-05-31 23:58:11 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Maciek Borzecki
2014-01-12 11:42:00 UTC
Created attachment 848878 [details]
File: backtrace
Created attachment 848879 [details]
File: environ
Indeed an issue. Thanks for the report, we'll take a look. (possibly dupe of bug 1063666) Maciek what happens with dnf-0.4.17 or later when the same command is issued: dnf grouperase 'Xfce Desktop' Picked this build from koji: https://koji.fedoraproject.org/koji/buildinfo?buildID=502565 [mborzecki@localhost:~]$ sudo dnf grouperase 'Xfce Desktop' Problem with repo 'fedorautils': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried, disabling. Traceback (most recent call last): File "/bin/dnf", line 35, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 242, in user_main errcode = main(args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 64, in main return _main(base, args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 124, in _main cli.run() File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1428, in run return self.command.run(self.base.extcmds) File "/usr/lib/python2.7/site-packages/dnf/cli/commands.py", line 732, in run return self.base.removeGroups(extcmds) File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 886, in removeGroups cnt += self.group_remove(group_string) File "/usr/lib/python2.7/site-packages/dnf/base.py", line 1374, in group_remove groups = self.comps.groups_by_pattern(grp_spec) File "/usr/lib/python2.7/site-packages/dnf/comps.py", line 263, in groups_by_pattern return _by_pattern(pattern, case_sensitive, self.groups) File "/usr/lib/python2.7/site-packages/dnf/comps.py", line 62, in _by_pattern matching = [g for g in sqn if match(g.name) or match(g.id)] TypeError: expected string or buffer I think I know the source of the problem. I have RedHat KDE repo added in the system. The groups.xml file may potentially have incorrect data. Take a look at this file: http://mirror.unl.edu/kde-redhat/fedora/20/x86_64/stable/groups.xml Shouldn't _id and _name nodes be named id and name like in other group.xml files? meanwhile I asked form some input on Fedora-KDE list https://lists.fedoraproject.org/pipermail/kde/2014-March/013190.html I went ahead and simply removed the group metadata files from kde-redhat repos. As far as I can tell, though, fedora's comps uses the same style with <id>, <_name>, <_description> tags, see: https://git.fedorahosted.org/cgit/comps.git/tree/comps-f20.xml.in Fixed with several 0.5.0 commits up to 6efc9d6. dnf-0.5.1-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/dnf-0.5.1-1.fc20 Package dnf-0.5.1-1.fc20, hawkey-0.4.14-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing dnf-0.5.1-1.fc20 hawkey-0.4.14-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-5937/hawkey-0.4.14-1.fc20,dnf-0.5.1-1.fc20 then log in and leave karma (feedback). dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/libsolv-0.6.1-1.git6d968f1.fc20,hawkey-0.4.16-1.fc20,dnf-0.5.2-1.fc20,dnf-plugins-core-0.0.8-2.fc20 Package dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.0.8-2.fc20 libsolv-0.6.1-1.git6d968f1.fc20 hawkey-0.4.16-1.fc20 dnf-0.5.2-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-6789/libsolv-0.6.1-1.git6d968f1.fc20,hawkey-0.4.16-1.fc20,dnf-0.5.2-1.fc20,dnf-plugins-core-0.0.8-2.fc20 then log in and leave karma (feedback). dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |