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

Mantis Bug Tracker noreply at opencsw.org
Fri Feb 25 17:58:59 CET 2011


The following issue has been CLOSED 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4686 
====================================================================== 
Reported By:                skayser
Assigned To:                maciej
====================================================================== 
Project:                    python
Issue ID:                   4686
Category:                   regular use
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2011-02-10 02:25 CET
Last Modified:              2011-02-25 17:58 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
====================================================================== 

---------------------------------------------------------------------- 
 (0008835) maciej (manager) - 2011-02-25 17:58
 https://www.opencsw.org/mantis/view.php?id=4686#c8835 
---------------------------------------------------------------------- 
Excellent, I'm closing the bug then.



More information about the bug-notifications mailing list