Description of problem: search for package with dnf with no results found. Version-Release number of selected component: dnf-0.4.10-1.fc20 Additional info: reporter: libreport-2.1.10 cmdline: /usr/bin/python /bin/dnf search sse4 executable: /bin/dnf kernel: 3.12.6-300.fc20.x86_64 runlevel: N 5 type: Python uid: 0 Truncated backtrace: cli.py:1521:search:AttributeError: 'module' object has no attribute 'exception' 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 240, in user_main errcode = main(args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 63, in main return _main(base, args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 122, in _main cli.run() File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1456, in run return self.command.run(self.base.extcmds) File "/usr/lib/python2.7/site-packages/dnf/cli/commands.py", line 988, in run return self.cli.search(extcmds) File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1521, in search raise dnf.exception.Error(_('No Matches found')) AttributeError: 'module' object has no attribute 'exception' Local variables in innermost frame: args: ['sse4'] ns_only: False dups: False search_all: False counter: {} limit: <dnf.query.Query object at 0x1e06c80> _print_match_section: <function _print_match_section at 0x1e19cf8> arg: 'sse4' section_text: u'Treffer: %s' self: <dnf.cli.cli.Cli object at 0x1d74850> matched_needles: None
Created attachment 845130 [details] File: backtrace
Created attachment 845131 [details] File: environ
Also reproducible here: [root@localhost ~]# dnf search libxfconf Warning: No matches found for: libxfconf 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 240, in user_main errcode = main(args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 63, in main return _main(base, args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 122, in _main cli.run() File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1456, in run return self.command.run(self.base.extcmds) File "/usr/lib/python2.7/site-packages/dnf/cli/commands.py", line 988, in run return self.cli.search(extcmds) File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1521, in search raise dnf.exception.Error(_('No Matches found')) AttributeError: 'module' object has no attribute 'exception' [root@localhost ~]# rpm -qa |grep dnf dnf-0.4.10-1.fc20.noarch [root@localhost ~]# uname -a Linux localhost.localdomain 3.13.0-0.rc6.git0.2.fc21.x86_64 #1 SMP Tue Dec 31 04:14:44 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux [root@localhost ~]#
Ran into this just now: [asinha@ankur-laptop work]$ sudo dnf search "xmlbase" Warning: No matches found for: xmlbase 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 240, in user_main errcode = main(args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 63, in main return _main(base, args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 122, in _main cli.run() File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1456, in run return self.command.run(self.base.extcmds) File "/usr/lib/python2.7/site-packages/dnf/cli/commands.py", line 988, in run return self.cli.search(extcmds) File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1521, in search raise dnf.exception.Error(_('No Matches found')) AttributeError: 'module' object has no attribute 'exception'
Hey, thanks for the report, I'll take a look.
Fixed upstream by ccca105, this will be released in dnf-0.4.11.
Another user experienced a similar problem: Latest version of DNF crashes when searching for something which cannot be found. E.g. searching for 'rockbox' by typing $ dnf search rockbox this is always reproducible for me with any random search string that cannot be found. This is reproducible as default user and as root. reporter: libreport-2.1.10 cmdline: /usr/bin/python /usr/bin/dnf search rockbox executable: /usr/bin/dnf kernel: 3.12.6-300.fc20.x86_64 package: dnf-0.4.10-1.fc20 reason: cli.py:1521:search:AttributeError: 'module' object has no attribute 'exception' runlevel: N 5 type: Python uid: 1000
dnf-0.4.11-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/dnf-0.4.11-1.fc20
dnf-0.4.11-1.fc20 works
Package dnf-0.4.11-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.4.11-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-0573/dnf-0.4.11-1.fc20 then log in and leave karma (feedback).
dnf-0.4.11-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.