[Yum] yum: rpmUtils module does not contain transaction?
Felix Schwarz
felix.schwarz at web.de
Sat Dec 20 12:08:15 UTC 2008
Hi,
I wanted to debug some other program which uses the rpmUtils package. The
problem is that they do:
> import rpmUtils
> ts = rpmUtils.transaction.initReadOnlyTransaction()
With Python 2.5.1 (Fedora 8) this fails:
> AttributeError: 'module' object has no attribute 'transaction'
And indeed, in rpmUtils/__init__.py there is no symbol named transaction. But
there is a module called rpmUtils/transaction.py so this works for me:
> from rpmUtils import transaction
> ts = transaction.initReadOnlyTransaction()
However, the first pattern is used even in yum 3.2.20 so probably some Python
wizard can explain this to me?
regards
fs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3312 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.baseurl.org/pipermail/yum/attachments/20081220/61e908b9/attachment.bin
More information about the Yum
mailing list