[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:50:44 CET 2011
The following issue requires your FEEDBACK.
======================================================================
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: feedback
======================================================================
Date Submitted: 2011-02-10 02:25 CET
Last Modified: 2011-02-25 17:50 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
======================================================================
----------------------------------------------------------------------
(0008833) maciej (manager) - 2011-02-25 17:50
https://www.opencsw.org/mantis/view.php?id=4686#c8833
----------------------------------------------------------------------
Please try:
- uninstalling CSWzope
- installing CSWpy-mechanize
Does that work?
More information about the bug-notifications
mailing list