Bug 1277526 - dnf builddep fails with Python backtrace
Summary: dnf builddep fails with Python backtrace
Keywords:
Status: CLOSED DUPLICATE of bug 1272936
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-03 14:03 UTC by Olivier Fourdan
Modified: 2015-11-04 11:42 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-04 11:42:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Olivier Fourdan 2015-11-03 14:03:24 UTC
Description of problem:

Running "dnf builddep" fails with a Python backtrace pointing at dnf plugin.

Version-Release number of selected component (if applicable):

python3-dnf-plugins-core-0.1.13-1.fc23.noarch

How reproducible:

100% of the time

Steps to Reproduce:
1. sudo dnf builddep control-center

Actual results:

enabling fedora-source repository
enabling updates-source repository
Last metadata expiration check performed 0:30:59 ago on Tue Nov  3 13:49:48 2015.
Traceback (most recent call last):
  File "/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'


Expected results:

build deps for control-center being installed

Additional info:

None

Comment 1 Michael Mráka 2015-11-04 11:42:20 UTC

*** This bug has been marked as a duplicate of bug 1272936 ***


Note You need to log in before you can comment on or make changes to this bug.