Bug 1251917 - rpm-python3 AttributeError: 'module' object has no attribute 'spec'
rpm-python3 AttributeError: 'module' object has no attribute 'spec'
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: packaging-team-maint
Fedora Extras Quality Assurance
Depends On:
Blocks: 1248960
  Show dependency treegraph
Reported: 2015-08-10 05:58 EDT by Michael Mráka
Modified: 2015-08-10 09:30 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-08-10 09:30:29 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Michael Mráka 2015-08-10 05:58:05 EDT
Description of problem:
rpm-python3 has no rpm.spec() function which exists in rpm-python (python2 module)

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

How reproducible:

Steps to Reproduce:
1. python2 -c 'import rpm; rpm.spec'
2. python3 -c 'import rpm; rpm.spec'

Actual results:
# python2 -c 'import rpm; rpm.spec'
# python3 -c 'import rpm; rpm.spec'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'spec'

Expected results:
# python2 -c 'import rpm; rpm.spec'
# python3 -c 'import rpm; rpm.spec'
(no errors)

Additional info:
Comment 1 Ľuboš Kardoš 2015-08-10 09:30:29 EDT
Fixed in rawhide in rpm-4.12.90-7.fc24. The problem was using function that is available in python2 but it is not available in python3. Have a look at upstream commit:


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