Opened 10 years ago
Closed 10 years ago
#77 closed defect (fixed)
'No module named urlgrabber' after 'yum update python'
Reported by: | Andib | Owned by: | Silvan Scherrer |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | yum | Version: | |
Severity: | Keywords: | ||
Cc: |
Description
After I did a 'yum update python' I always get -
{1}[m:\] yum update There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named urlgrabber Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.7.6 (default, Apr 7 2014, 18:19:49) [GCC 4.7.3] If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq
Other packages are also updated but don't know which. Is there a log somewhere?
Change History (8)
comment:1 by , 10 years ago
Component: | rpm → yum |
---|---|
Owner: | set to |
Status: | new → accepted |
comment:2 by , 10 years ago
comment:3 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:4 by , 10 years ago
That doesn't appear to have fixed my problem....
{1}[d:\home] yum update urlgrabber
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named urlgrabber
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.6 (default, Apr 7 2014, 18:19:49)
[GCC 4.7.3]
If you cannot solve this problem yourself, please go to
the yum faq at:
Directory contents....
Directory of D:\usr\lib\python2.7\site-packages
7-30-14 12:36p <DIR> 124 a--- .
4-07-14 11:27a <DIR> 124 a--- ..
4-07-14 11:22a 119 124 a--- README
7-29-14 3:47p <DIR> 124 a--- rpm
7-18-14 12:58p <DIR> 124 a--- rpmUtils
8-18-09 10:26a 2,510 124 a--- sqlitecachec.py
4-07-14 11:28a 2,226 124 a--- sqlitecachec.pyc
4-07-14 11:28a 2,226 124 a--- sqlitecachec.pyo
7-30-14 12:33p <DIR> 124 ---- URLGRABBER
11-20-10 10:25a 2,279 124 a--- urlgrabber-3.1.0-py2.6.egg-info
7-18-14 12:58p <DIR> 124 a--- yum
4-07-14 11:28a 213 124 a--- yum_metadata_parser-1.1.4-py2.7.egg-i
nfo
4-07-14 11:28a 38,828 124 a--- _sqlitec.pyd
And the urlgrabber directory contents....
Directory of D:\usr\lib\python2.7\site-packages\urlgrabber
7-30-14 12:33p <DIR> 124 ---- .
7-30-14 12:36p <DIR> 124 a--- ..
7-20-06 3:15p 17,157 124 a--- byterange.py
11-20-10 10:25a 16,819 124 a--- byterange.pyc
9-21-06 7:58p 56,807 124 a--- grabber.py
11-20-10 10:25a 53,142 124 a--- grabber.pyc
9-21-06 7:58p 21,089 124 a--- keepalive.py
11-20-10 10:25a 21,432 124 a--- keepalive.pyc
2-22-06 12:26p 18,069 124 a--- mirror.py
11-20-10 10:25a 17,066 124 a--- mirror.pyc
8-19-05 4:59p 18,235 124 a--- progress.py
11-20-10 10:25a 20,057 124 a--- progress.pyc
9-21-06 7:58p 3,099 124 a--- sslfactory.py
11-20-10 10:25a 3,168 124 a--- sslfactory.pyc
9-21-06 7:58p 2,259 124 a--- init.py
11-20-10 10:25a 1,675 124 a--- init.pyc
16 file(s) 270,074 bytes used
378,111,057 K bytes free
Got any other ideas?
-Mark
comment:5 by , 10 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:6 by , 10 years ago
@Mark is your urlgrabber dir really uppercase? If yes change that to lowercase
comment:7 by , 10 years ago
Yes, it is indeed upper case.
I changed it to lower case, and tried the update again.
This time it worked. I had no idea that directory names would be so case sensitive. I'll have to keep that in mind with yum.
Thanks very much.
comment:8 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
This happens if you do "yum update python".
To overcome that, you need to xcopy x:\usr\lib\python2.6\site-packages\urlgrabber to x:\usr\lib\python2.7\site-packages. and after that "yum update urlgrabber"
Then all should work as usual.