Red Hat Bugzilla – Bug 204051
mock stops with no attribute 'transaction' error
Last modified: 2013-01-09 23:02:37 EST
Description of problem:
When I try to rebuild some srpm in mock, mock instantly stops
with the following error.
My system is 20060824 rawhide.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. try: mock -r fedora-devel-i386-core --debug coreutils-5.97-8.src.rpm
[tasaka1@localhost SRPMS]$ mock -r fedora-devel-i386-core --debug
Traceback (most recent call last):
File "/usr/bin/mock", line 993, in ?
File "/usr/bin/mock", line 988, in main
File "/usr/bin/mock", line 862, in ensure_filetype_srpm
ts = rpmUtils.transaction.initReadOnlyTransaction()
AttributeError: 'module' object has no attribute 'transaction'
mock can proceed.
Perhaps on 20060823 rawhide it was okay.
I am seeing this as well... on two diffrent devel/rawhide systems.
Let me know if I can help test or otherwise track down the issue.
To deal with this, currently I have to downgrade yum
to FC6T2 yum(-2.9.3-2) .
Thanks for the workaround. Even 2.9.4-4 seems to work fine, it's 2.9.5-1 thats
causing the issue.
Had to explicitly import rpmUtils.transaction due to changes in rpmUtils
mock-0.6.4-1.fc6 and yum-2.9.5-2 are okay.