Red Hat Bugzilla – Bug 496950
yum crashes with AttributeError: 'NoneType' object has no attribute 'getRequires'
Last modified: 2014-01-21 18:09:16 EST
Created attachment 340607 [details]
I have a little "yum shell" script that adds and removes a variety of packages. I installed Fedora 11 and ran "yum -y shell myscript.yum" and got a crash with a traceback (which I'll attach).
I believe that the error may have been indirectly caused by a misconfigured repo file in yum.repos.d. When I ran yum directly, I got a "Cannot retrieve repository metadata (repomd.xml) for repository" error. After disabling the offending repository, my "yum shell" script seemed to work. This may help in reproducing the problem.
If necessary, I can provide the script I was using.
Where there any other messages before the traceback?
Can you reproduce it now, by breaking the repo again?
The following is the full output from yum on stdout:
Loaded plugins: refresh-packagekit
Setting up Yum Shell
Setting up Install Process
Setting up Remove Process
--> Running transaction check
---> Package sendmail.i586 0:8.14.3-5.fc11 set to be erased
What was the version number of yum when it crashed?
It's whatever the newest yum was in Rawhide two days ago. I'm pretty sure it was yum-3.2.22-4.fc11.noarch.
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.
More information and reason for this action is here:
Is this still happening on 3.2.23 from f11?
I tried to reproduce it by breaking one of the repo files. It looks like it might have been fixed. Unfortunately, it's been so long since my original bug report that I can't reproduce the entire environment. If there was some other cause than my original theory (a broken repo file), then I can't track it down. This machine has been reinstalled two or three times in the last three months.