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): rpm-python3-4.12.90-6.fc24.x86_64 rpm-python-4.12.90-6.fc24.x86_64 How reproducible: always Steps to Reproduce: 1. python2 -c 'import rpm; rpm.spec' 2. python3 -c 'import rpm; rpm.spec' 3. 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:
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: https://github.com/rpm-software-management/rpm/commit/aec4f88ed585aedae1b35f447ee730a9054d6a4a