Description of problem: I run "dnf builddep systemd". It is reproducible. Version-Release number of selected component: dnf-1.1.3-1.fc23 Additional info: reporter: libreport-2.6.3 cmdline: /usr/bin/python3 -OO /usr/bin/dnf builddep systemd executable: /usr/bin/dnf kernel: 4.2.3-300.fc23.x86_64 runlevel: N 3 type: Python3 uid: 0 Truncated backtrace: lib.py:170:package_source_name:AttributeError: 'NoneType' object has no attribute 'rstrip' Traceback (most recent call last): File "/usr/bin/dnf", line 35, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 198, in user_main errcode = main(args) File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 84, in main return _main(base, args) File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 136, in _main cli.run() File "/usr/lib/python3.4/site-packages/dnf/cli/cli.py", line 1091, in run return self.command.run(self.base.extcmds) File "/usr/lib/python3.4/site-packages/dnf-plugins/builddep.py", line 76, in inner return func(*args, **kwds) File "/usr/lib/python3.4/site-packages/dnf-plugins/builddep.py", line 142, in run self._remote_deps(pkgspec) File "/usr/lib/python3.4/site-packages/dnf-plugins/builddep.py", line 213, in _remote_deps package).get_best_query(self.base.sack)}) File "/usr/lib/python3.4/site-packages/dnf-plugins/builddep.py", line 212, in <setcomp> for pkg in dnf.subject.Subject( File "/usr/lib/python3.4/site-packages/dnfpluginscore/lib.py", line 170, in package_source_name srcname = package.sourcerpm.rstrip(".src.rpm") AttributeError: 'NoneType' object has no attribute 'rstrip' Local variables in innermost frame: package: <hawkey.Package object id 56732, systemd-222-7.fc23.src, updates-testing-source>
Created attachment 1084307 [details] File: _var_log_dnf.log
Created attachment 1084308 [details] File: backtrace
Created attachment 1084309 [details] File: dnf-makecache.log
Created attachment 1084310 [details] File: environ
Fixed in https://github.com/rpm-software-management/dnf-plugins-core/commit/0950bd8e47b21a48b746fdc5fa85839e202e6053 Thanks for the report.
*** Bug 1272649 has been marked as a duplicate of this bug. ***
*** Bug 1276037 has been marked as a duplicate of this bug. ***
*** Bug 1277000 has been marked as a duplicate of this bug. ***
The patch from comment 5 works for me.
*** Bug 1277526 has been marked as a duplicate of this bug. ***
*** Bug 1279307 has been marked as a duplicate of this bug. ***
*** Bug 1279410 has been marked as a duplicate of this bug. ***
When is this actually going to be fixed in Fedora? The number of duplicates alone suggests that this is affecting many people.
Whoops, sorry about that! Accidental
*** Bug 1281472 has been marked as a duplicate of this bug. ***
Is there any reason why this hasn't, at the very least, been included in a release of dnf? This bug is breaking `dnf builddep` completely on Fedora 22 and Fedora 23, I can even reproduce it on my system after updating. I still don't see any new releases on the github page for dnf nor anything in bodhi awaiting testing.
dnf-plugins-core-0.1.14-1.fc23 dnf-1.1.4-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-fe6e8b885b
I like to remind, that my bug report (which got closed as duplicate: Comment #6) refers to Fedora 22. So releasing only Fedora 23 packages won't make the problem go away. At least for a subset of users that still rely on Fedora 22.
*** Bug 1281554 has been marked as a duplicate of this bug. ***
dnf-1.1.4-1.fc22 dnf-plugins-core-0.1.14-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-6137119aff
dnf-1.1.4-1.fc23, dnf-plugins-core-0.1.14-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update dnf dnf-plugins-core' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-fe6e8b885b
Another user experienced a similar problem: I was trying to install some *-devel dependencies using dnf builddep. reporter: libreport-2.6.3 cmdline: /usr/bin/python3 -OO /bin/dnf builddep gnome-abrt event_log: 2015-11-18-21:28:03> ('report_uReport' completato con successo) executable: /bin/dnf kernel: 4.2.5-300.fc23.x86_64 package: dnf-1.1.3-1.fc23 reason: lib.py:170:package_source_name:AttributeError: 'NoneType' object has no attribute 'rstrip' runlevel: N 5 type: Python3 uid: 0
dnf-1.1.4-1.fc23, dnf-plugins-core-0.1.14-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 1283319 has been marked as a duplicate of this bug. ***
dnf-1.1.4-1.fc22, dnf-plugins-core-0.1.14-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update dnf-plugins-core dnf' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-6137119aff
dnf-1.1.4-1.fc22, dnf-plugins-core-0.1.14-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.