[Yum] Bad magic number in /usr/share/yum/yummain.pyc

seth vidal skvidal at linux.duke.edu
Wed Apr 26 04:39:26 UTC 2006


On Tue, 2006-04-25 at 11:14 -0400, James A Williams wrote:
> 
> Hi, 
> 
> When I try and run yum update I get 
> 
> [root at fhwamain yum-1.0.3]# yum update 
> Traceback (most recent call last): 
>   File "/usr/bin/yum", line 22, in ? 
>     import yummain 
> ImportError: Bad magic number in /usr/share/yum/yummain.pyc 
> 
> I found someone with the same error had installed a new version of
> python. 
> I removed my new version of python but still get the same error. 
> 
> [root at fhwamain yum-1.0.3]# rpm -qa | grep python 
> python-popt-0.8.8-7.x.2 
> python-clap-1.0.0-3 
> python-xmlrpc-1.5.1-7.x.3 
> rpm-python-4.0.4-7x.18 
> python-1.5.2-43.73 
> python-devel-1.5.2-43.73 
> [root at fhwamain yum-1.0.3]# 
> 
> Any ideas? 
> 

You're install yum 1.0? Are you being forced to run yum on a rhl 7.X
machine?

-sv





More information about the Yum mailing list