Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: tariqf on March 21, 2019, 11:18:44 AM

Title: yum problem - NameError: name 'TransactionSet' is not defined
Post by: tariqf on March 21, 2019, 11:18:44 AM
Hi guys, our sme server (9.2) has a non working yum all of a sudden and I cannot recall what may have changed to cause this. Does anyone have any ideas?


Code: [Select]
[root@sme ~]# yum update
Traceback (most recent call last):
  File "/usr/bin/yum", line 4, in <module>
    import yum
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 23, in <module>
    import rpm
  File "/usr/lib64/python2.6/site-packages/rpm/__init__.py", line 24, in <module>
    ts = TransactionSet
NameError: name 'TransactionSet' is not defined

Title: Re: yum problem - NameError: name 'TransactionSet' is not defined
Post by: CharlieBrady on March 28, 2019, 03:18:25 PM
Hi guys, our sme server (9.2) has a non working yum all of a sudden and I cannot recall what may have changed to cause this.

Presumably something did actually change.

See what:

rpm -q yum rpm-python
rpm -V yum rpm-python

tells you.
Title: Re: yum problem - NameError: name 'TransactionSet' is not defined
Post by: tariqf on April 01, 2019, 05:58:06 PM
Hi, I agree something must have changed it can't just stop working. I just cant figure out why it's not working. Here is the output from your suggestion below - interestingly if I run the same command on another install of SME 9.2 then the output is lacking the last line about transaction.pyc.

Code: [Select]
[root@sme ~]# rpm -V yum rpm-python
S.5....T.  c /etc/yum.conf
S.5....T.    /usr/lib64/python2.6/site-packages/rpm/transaction.pyc
[root@sme ~]#
Title: Re: yum problem - NameError: name 'TransactionSet' is not defined
Post by: tariqf on April 01, 2019, 06:18:31 PM
Thanks CharlieBrady this is now resolved - I copied the transaction.pyc from a fresh install and now it's working again. Not sure how it happened but I'm pleased this is working

 :smile: