Opened 5 years ago

Closed 5 years ago

#77 closed defect (fixed)

'No module named urlgrabber' after 'yum update python'

Reported by: andib Owned by: diver
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 Changed 5 years ago by diver

  • Component changed from rpm to yum
  • Owner set to diver
  • Status changed from new to accepted

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.

comment:2 Changed 5 years ago by ydario

The python 2.7 requirement for urlgrabber has been added only after building the latest package...

spec: urlgrabber, s3cmd, rebuild to fix for ticket#77.
Committed revision r430.

comment:3 Changed 5 years ago by ydario

  • Resolution set to fixed
  • Status changed from accepted to closed

comment:4 Changed 5 years ago by MarkV

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:

http://yum.baseurl.org/wiki/Faq

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 Changed 5 years ago by diver

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:6 Changed 5 years ago by diver

@Mark is your urlgrabber dir really uppercase? If yes change that to lowercase

comment:7 Changed 5 years ago by MarkV

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 Changed 5 years ago by diver

  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.