Bug 1401449 - dnf install fails with AttributeError: module 'hawkey' has no attribute 'ADVISORY_NEWPACKAGE'
Summary: dnf install fails with AttributeError: module 'hawkey' has no attribute 'ADVI...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-05 10:03 UTC by Jan Pazdziora
Modified: 2016-12-08 15:17 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-08 15:15:56 UTC
Type: Bug


Attachments (Terms of Use)

Description Jan Pazdziora 2016-12-05 10:03:03 UTC
Description of problem:

In an attempt to verify bug 1341086, I tried to use upgraded dnf package. However, even simple dnf install fails.

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

dnf-2.0.0-0.rc2.2.fc26

How reproducible:

Deterministic.

Steps to Reproduce:
1. docker run --rm -ti fedora:rawhide bash -c 'dnf upgrade -y dnf ; dnf install -y opencryptoki ; echo $?'

Actual results:

$ docker run --rm -ti fedora:rawhide bash -c 'dnf upgrade -y dnf ; dnf install -y opencryptoki ; echo $?'
Fedora - Rawhide - Developmental packages for t  60 MB/s |  51 MB     00:00    
Last metadata expiration check: 0:00:24 ago on Mon Dec 05 09:59:30 2016 UTC.
Dependencies resolved.
================================================================================
 Package                 Arch        Version                 Repository    Size
================================================================================
Upgrading:
 dnf                     noarch      2.0.0-0.rc2.2.fc26      rawhide      221 k
 dnf-conf                noarch      2.0.0-0.rc2.2.fc26      rawhide       41 k
 dnf-yum                 noarch      2.0.0-0.rc2.2.fc26      rawhide       24 k
 python3-dnf             noarch      2.0.0-0.rc2.2.fc26      rawhide      416 k
Installing dependencies:
 python3                 x86_64      3.5.2-6.fc26            rawhide       57 k
 python3-libs            x86_64      3.5.2-6.fc26            rawhide      1.4 M
 python3-pip             noarch      9.0.1-1.fc26            rawhide      1.8 M
 python3-setuptools      noarch      28.8.0-1.fc26           rawhide      559 k

Transaction Summary
================================================================================
Install  4 Packages
Upgrade  4 Packages

Total download size: 4.4 M
Downloading Packages:
(1/8): python3-3.5.2-6.fc26.x86_64.rpm          450 kB/s |  57 kB     00:00    
(2/8): python3-setuptools-28.8.0-1.fc26.noarch.  28 MB/s | 559 kB     00:00    
(3/8): dnf-2.0.0-0.rc2.2.fc26.noarch.rpm         25 MB/s | 221 kB     00:00    
(4/8): python3-libs-3.5.2-6.fc26.x86_64.rpm     7.8 MB/s | 1.4 MB     00:00    
(5/8): python3-dnf-2.0.0-0.rc2.2.fc26.noarch.rp  19 MB/s | 416 kB     00:00    
(6/8): dnf-conf-2.0.0-0.rc2.2.fc26.noarch.rpm   7.0 MB/s |  41 kB     00:00    
(7/8): dnf-yum-2.0.0-0.rc2.2.fc26.noarch.rpm     10 MB/s |  24 kB     00:00    
(8/8): python3-pip-9.0.1-1.fc26.noarch.rpm      9.2 MB/s | 1.8 MB     00:00    
--------------------------------------------------------------------------------
Total                                           2.9 MB/s | 4.4 MB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Upgrading   : dnf-conf-2.0.0-0.rc2.2.fc26.noarch                         1/12 
  Upgrading   : python3-dnf-2.0.0-0.rc2.2.fc26.noarch                      2/12 
  Upgrading   : dnf-2.0.0-0.rc2.2.fc26.noarch                              3/12 
  Installing  : python3-libs-3.5.2-6.fc26.x86_64                           4/12 
  Installing  : python3-pip-9.0.1-1.fc26.noarch                            5/12 
  Installing  : python3-setuptools-28.8.0-1.fc26.noarch                    6/12 
  Installing  : python3-3.5.2-6.fc26.x86_64                                7/12 
  Upgrading   : dnf-yum-2.0.0-0.rc2.2.fc26.noarch                          8/12 
  Cleanup     : dnf-yum-2.0.0-0.rc1.4.fc26.noarch                          9/12 
  Cleanup     : dnf-2.0.0-0.rc1.4.fc26.noarch                             10/12 
Failed to connect to bus: No such file or directory
  Cleanup     : python3-dnf-2.0.0-0.rc1.4.fc26.noarch                     11/12 
  Cleanup     : dnf-conf-2.0.0-0.rc1.4.fc26.noarch                        12/12 
Failed to connect to bus: No such file or directory
  Verifying   : python3-3.5.2-6.fc26.x86_64                                1/12 
  Verifying   : python3-libs-3.5.2-6.fc26.x86_64                           2/12 
  Verifying   : python3-pip-9.0.1-1.fc26.noarch                            3/12 
  Verifying   : python3-setuptools-28.8.0-1.fc26.noarch                    4/12 
  Verifying   : dnf-2.0.0-0.rc2.2.fc26.noarch                              5/12 
  Verifying   : python3-dnf-2.0.0-0.rc2.2.fc26.noarch                      6/12 
  Verifying   : dnf-conf-2.0.0-0.rc2.2.fc26.noarch                         7/12 
  Verifying   : dnf-yum-2.0.0-0.rc2.2.fc26.noarch                          8/12 
  Verifying   : dnf-yum-2.0.0-0.rc1.4.fc26.noarch                          9/12 
  Verifying   : python3-dnf-2.0.0-0.rc1.4.fc26.noarch                     10/12 
  Verifying   : dnf-2.0.0-0.rc1.4.fc26.noarch                             11/12 
  Verifying   : dnf-conf-2.0.0-0.rc1.4.fc26.noarch                        12/12 

Installed:
  python3.x86_64 3.5.2-6.fc26        python3-libs.x86_64 3.5.2-6.fc26          
  python3-pip.noarch 9.0.1-1.fc26    python3-setuptools.noarch 28.8.0-1.fc26   

Upgraded:
  dnf.noarch 2.0.0-0.rc2.2.fc26        dnf-conf.noarch 2.0.0-0.rc2.2.fc26      
  dnf-yum.noarch 2.0.0-0.rc2.2.fc26    python3-dnf.noarch 2.0.0-0.rc2.2.fc26   

Complete!
Traceback (most recent call last):
  File "/usr/bin/dnf", line 57, in <module>
    from dnf.cli import main
  File "/usr/lib/python3.5/site-packages/dnf/cli/__init__.py", line 30, in <module>
    from dnf.cli.cli import Cli  # :api
  File "/usr/lib/python3.5/site-packages/dnf/cli/cli.py", line 48, in <module>
    import dnf.cli.commands.updateinfo
  File "/usr/lib/python3.5/site-packages/dnf/cli/commands/updateinfo.py", line 43, in <module>
    class UpdateInfoCommand(commands.Command):
  File "/usr/lib/python3.5/site-packages/dnf/cli/commands/updateinfo.py", line 50, in UpdateInfoCommand
    hawkey.ADVISORY_NEWPACKAGE: _('newpackage')}
AttributeError: module 'hawkey' has no attribute 'ADVISORY_NEWPACKAGE'
1

Expected results:

No traceback, no failure.

Additional info:

Comment 1 Igor Gnatenko 2016-12-05 10:04:14 UTC
rpm -q python3-hawkey

Comment 2 Jan Pazdziora 2016-12-05 10:46:39 UTC
python3-hawkey-0.7.0-0.2git8bd77f8.fc26.x86_64

Comment 3 Igor Gnatenko 2016-12-05 11:14:36 UTC
You need to have latest libdnf (it provides python3-hawkey). libdnf-0.7.0-0.3gitf9b798c.fc26.

Comment 4 Jan Pazdziora 2016-12-05 12:03:04 UTC
The please require that explicitly in dependencies.

Comment 5 Jan Pazdziora 2016-12-05 12:03:14 UTC
Then please require that explicitly in dependencies.

Comment 6 Honza Silhan 2016-12-05 12:34:58 UTC
we'll bump requirement in fedora distgit.

Comment 7 Jaroslav Mracek 2016-12-08 15:15:56 UTC
New versions were released in rawhide that has correct requirements. 
Soved in: libdnf-0.7.0-1.3gitf9b798c.fc26 and dnf-2.0.0-0.rc2.4.fc26

Comment 8 Igor Gnatenko 2016-12-08 15:17:31 UTC
s/libdnf-0.7.0-1.3gitf9b798c.fc26/libdnf-0.7.0-0.4gitf9b798c.fc26/


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