See the interactive shell session: [akozumpl@localhost ~/dnf-plugins-core (builddep)]$ python Python 2.7.5 (default, Nov 12 2013, 16:45:54) [GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import rpm >>> rpm.spec <type 'rpm.spec'> >>> [akozumpl@localhost ~/dnf-plugins-core (builddep)]$ python3 Python 3.3.2 (default, Nov 7 2013, 10:01:05) [GCC 4.8.1 20130814 (Red Hat 4.8.1-6)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import rpm >>> rpm.spec Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'spec' >>>
The BuildDepCommandTest.test_spec() can be enabled for py3 once this is fixed: https://github.com/akozumpl/dnf-plugins-core/blob/master/tests/test_builddep.py#L44
Heh, one could perhaps call this "slightly embarrasing" :) http://rpm.org/gitweb?p=rpm.git;a=commitdiff;h=0073376965ee8d8df63c21b0da634fc315c97d0b
I am using the attribute 'spec' in our project rebase-helper too. I am waiting for fixing.
rpm-4.11.3-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/rpm-4.11.3-1.fc20
Package rpm-4.11.3-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing rpm-4.11.3-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-10325/rpm-4.11.3-1.fc20 then log in and leave karma (feedback).
rpm-4.11.3-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/rpm-4.11.3-1.fc19
rpm-4.11.3-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
rpm-4.11.3-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.