[bug-notifications] [python 0004686]: Import of 'mechanize' fails with "ImportError: cannot import name GopherError"

Mantis Bug Tracker noreply at opencsw.org
Thu Feb 10 02:25:49 CET 2011


The following issue has been SUBMITTED. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4686 
====================================================================== 
Reported By:                skayser
Assigned To:                
====================================================================== 
Project:                    python
Issue ID:                   4686
Category:                   regular use
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-02-10 02:25 CET
Last Modified:              2011-02-10 02:25 CET
====================================================================== 
Summary:                    Import of 'mechanize' fails with "ImportError:
cannot import name GopherError"
Description: 
$ type python
python is hashed (/opt/csw/bin/python)
$ python -V
Python 2.6.6

$ python -c 'import mechanize'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/csw/lib/python/mechanize/__init__.py", line 1, in <module>
    from _mechanize import __version__
  File "/opt/csw/lib/python/mechanize/_mechanize.py", line 14, in
<module>
    from _useragent import UserAgent
  File "/opt/csw/lib/python/mechanize/_useragent.py", line 18, in
<module>
    import _urllib2
  File "/opt/csw/lib/python/mechanize/_urllib2.py", line 3, in <module>
    from urllib2 import \
ImportError: cannot import name GopherError
======================================================================



More information about the bug-notifications mailing list