Package: python-rpm
Version: 4.12.0.1+dfsg1-2
Severity: serious

Hi!

python-rpm is unusable when rpm-common is not installed:

# pbuilder --login
# apt-get install python-rpm
# python
Python 2.7.10 (default, Jun  1 2015, 16:21:46) 
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import rpm
error: Unable to open /usr/lib/rpm/rpmrc for reading: No such file or directory.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/rpm/__init__.py", line 10, in <module>
    from rpm.transaction import *
  File "/usr/lib/python2.7/dist-packages/rpm/transaction.py", line 5, in 
<module>
    from rpm._rpm import ts as TransactionSetCore
ImportError: cannot import name ts
>>> 
# apt-get install rpm-common
# python
Python 2.7.10 (default, Jun  1 2015, 16:21:46) 
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import rpm
>>> 


-- 
Lunar                                .''`. 
lu...@debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   

Attachment: signature.asc
Description: Digital signature

Reply via email to