'module' object has no attribute 'RPMSENSE_GREATER'

Stephen Davies sdavies at sdc.com.au
Mon Feb 10 23:47:55 UTC 2014


I appreciate what you say.
However, I do not believe that this issue is release dependent.

I need a way to modify what I have so that fedup etc will run and enable me to 
upgrade to F20.

There must be a way for me to add the relevant definitions of RPMSENSE_GREATER 
etc so that the yum/fedup etc python works again.

Where is RPMSENSE_xxx defined (to Python) and how do I add that definition to 
yum?

Cheers and thanks,
Stephen

On Monday, February 10, 2014 10:10:35 AM Rick Stevens wrote:
> On 02/09/2014 07:24 PM, Stephen Davies issued this missive:
> > I recently tried to build the FreeCAD application on my Fedora 14
> > installation.
> > 
> > Somehow that process broke yum so that now, any attempt to use yum gives:
> > 
> > [root at mustang ~]# yum --version
> > 
> > Traceback (most recent call last):
> > 
> > File "/bin/yum", line 4, in <module>
> > 
> > import yum
> > 
> > File "/usr/local/lib/python2.7/site-packages/yum/__init__.py", line 55,
> > in <module>
> > 
> > import rpmsack
> > 
> > File "/usr/local/lib/python2.7/site-packages/yum/rpmsack.py", line 38,
> > in <module>
> > 
> > import yum.depsolve
> > 
> > File "/usr/local/lib/python2.7/site-packages/yum/depsolve.py", line 55,
> > in <module>
> > 
> > flags = {"GT": rpm.RPMSENSE_GREATER,
> > 
> > AttributeError: 'module' object has no attribute 'RPMSENSE_GREATER'
> > 
> > I have managed to upgrade to Fedora 17 using DVDs but now neither yum
> > nor fedup work.
> > 
> > The yum error is unchanged and fedup gives effectively the same error:
> > 
> > [root at mustang ~]# fedup --network 18
> > 
> > Traceback (most recent call last):
> > 
> > File "/bin/fedup", line 25, in <module>
> > 
> > from fedup.download import FedupDownloader, YumBaseError
> > 
> > File "/usr/local/lib/python2.7/site-packages/fedup/download.py", line
> > 21, in <module>
> > 
> > import yum
> > 
> > File "/usr/local/lib/python2.7/site-packages/yum/__init__.py", line 55,
> > in <module>
> > 
> > import rpmsack
> > 
> > File "/usr/local/lib/python2.7/site-packages/yum/rpmsack.py", line 38,
> > in <module>
> > 
> > import yum.depsolve
> > 
> > File "/usr/local/lib/python2.7/site-packages/yum/depsolve.py", line 55,
> > in <module>
> > 
> > flags = {"GT": rpm.RPMSENSE_GREATER,
> > 
> > AttributeError: 'module' object has no attribute 'RPMSENSE_GREATER'
> > 
> > I tried rebuilding yum from source (yum-3.4.3-31.fc17.src.rpm) but with
> > no joy.
> > 
> > Linux mustang 3.3.4-5.fc17.x86_64 #1 SMP Mon May 7 17:29:34 UTC 2012
> > x86_64 x86_64 x86_64 GNU/Linux
> > 
> > RPM version 4.9.1.3
> 
> Stephen, Fedora 17 has been dead for almost two years. Fedora 14 has
> been dead for almost five years. You're not going to find a lot of help
> here. Fedora is typically on a 6-month deployment. The support matrix
> defines that the current release and the immediately preceding release
> will be supported (right now that'd be F20 and F19). F18 stopped being
> supported about a month after F20 came out.
> 
> If you want a free OS that looks like Red Hat and has a long life, go
> with CentOS as its support matrix tracks Red Hat's. Fedora is very much
> a "bleeding edge" release and you will continually be chasing this sort
> of issue.
> ----------------------------------------------------------------------
> - Rick Stevens, Systems Engineer, AllDigital    ricks at alldigital.com -
> - AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
> -                                                                    -
> -   To understand recursion, you must first understand recursion.    -
> ----------------------------------------------------------------------
-- 
=============================================================================
Stephen Davies Consulting P/L                           Phone: 08-8177 1595
Adelaide, South Australia.                                Mobile:040 304 0583
Records & Collections Management.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20140211/d24c1356/attachment-0001.html>


More information about the users mailing list