Koozali.org: home of the SME Server

yum problem - NameError: name 'TransactionSet' is not defined

Offline tariqf

  • ****
  • 179
  • +0/-0
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


Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: yum problem - NameError: name 'TransactionSet' is not defined
« Reply #1 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.

Offline tariqf

  • ****
  • 179
  • +0/-0
Re: yum problem - NameError: name 'TransactionSet' is not defined
« Reply #2 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 ~]#

Offline tariqf

  • ****
  • 179
  • +0/-0
Re: yum problem - NameError: name 'TransactionSet' is not defined
« Reply #3 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: