Bug 1218299 - TypeError: 'error' object does not support indexing
Summary: TypeError: 'error' object does not support indexing
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: 23
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Fedora Extras Quality Assurance
: 1246881 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2015-05-04 14:19 UTC by Sandro Mani
Modified: 2015-08-19 07:51 UTC (History)
10 users (show)

Fixed In Version: dnf-plugins-core-0.1.10-1.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-08-15 02:13:59 UTC
Type: Bug

Attachments (Terms of Use)

Description Sandro Mani 2015-05-04 14:19:55 UTC
Description of problem:

$ sudo dnf builddep iaxclient
enabling rpmfusion-nonfree-updates-source repository
enabling rpmfusion-nonfree-source repository
enabling rpmfusion-free-source repository
enabling local-source repository
enabling rpmfusion-free-updates-source repository
enabling rpmfusion-nonfree-updates-testing-source repository
enabling rawhide-source repository
enabling rpmfusion-free-updates-testing-source repository
Local - Source                                                                                               9.8 MB/s |  15 kB     00:00    
Local                                                                                                         79 MB/s | 184 kB     00:00    
Last metadata expiration check performed 0:00:00 ago on Mon May  4 16:18:14 2015.
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/dnf-plugins/builddep.py", line 154, in _src_deps
    h = self.rpm_ts.hdrFromFdno(fd)
  File "/usr/lib64/python3.4/site-packages/rpm/transaction.py", line 166, in hdrFromFdno
    raise rpm.error("public key not available")
_rpm.error: public key not available

During handling of the above exception, another exception occurred:

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 185, 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 134, in _main
  File "/usr/lib/python3.4/site-packages/dnf/cli/cli.py", line 1077, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python3.4/site-packages/dnf-plugins/builddep.py", line 71, in inner
    return func(*args, **kwds)
  File "/usr/lib/python3.4/site-packages/dnf-plugins/builddep.py", line 130, in run
  File "/usr/lib/python3.4/site-packages/dnf-plugins/builddep.py", line 194, in _remote_deps
  File "/usr/lib/python3.4/site-packages/dnf-plugins/builddep.py", line 156, in _src_deps
    if e[0] == 'public key not available':
TypeError: 'error' object does not support indexing

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

How reproducible:

Steps to Reproduce:
1. dnf builddep XXXXX

Comment 1 Sandro Mani 2015-07-09 23:09:21 UTC
This is still broken. Any chance of fixing this? Kinda useful to have a working dnf builddep...

Comment 2 Michael Mráka 2015-07-15 11:16:46 UTC
Proposed fix as a part of

Comment 3 Jan Kurik 2015-07-15 14:11:47 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:

Comment 4 Richard W.M. Jones 2015-07-16 21:42:14 UTC
Is there a package that we can test?  I've hit this bug as well.

Comment 5 Michael Mráka 2015-08-05 09:07:11 UTC
*** Bug 1246881 has been marked as a duplicate of this bug. ***

Comment 6 Fedora Update System 2015-08-10 10:05:35 UTC
dnf-plugins-core-0.1.10-1.fc23,dnf-1.1.0-1.fc23,hawkey-0.6.0-1.fc23 has been submitted as an update for Fedora 23.

Comment 7 Fedora Update System 2015-08-10 10:49:17 UTC
dnf-plugins-core-0.1.10-1.fc22,dnf-1.1.0-1.fc22,hawkey-0.6.0-1.fc22 has been submitted as an update for Fedora 22.

Comment 8 Fedora Update System 2015-08-11 02:10:31 UTC
Package dnf-plugins-core-0.1.10-1.fc22, dnf-1.1.0-1.fc22, hawkey-0.6.0-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 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.1.10-1.fc22 dnf-1.1.0-1.fc22 hawkey-0.6.0-1.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2015-08-15 02:13:59 UTC
dnf-plugins-core-0.1.10-1.fc22, hawkey-0.6.0-1.fc22, dnf-1.1.0-2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2015-08-19 07:51:25 UTC
dnf-plugins-core-0.1.10-1.fc23, hawkey-0.6.0-1.fc23, dnf-1.1.0-2.fc23 has been pushed to the Fedora 23 stable repository.  If problems still persist, please make note of it in this bug report.

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