'module' object has no attribute 'RPMSENSE_GREATER'

Rick Stevens ricks at alldigital.com
Mon Feb 10 18:10:35 UTC 2014


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.    -
----------------------------------------------------------------------


More information about the users mailing list