Mantis - python
Viewing Issue Advanced Details
4686 regular use minor have not tried 2011-02-10 02:25 2011-02-25 17:59
skayser  
maciej  
normal  
closed  
fixed  
none    
none  
0004686: Import of 'mechanize' fails with "ImportError: cannot import name GopherError"
$ 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
$ pkgparam CSWpython VERSION
2.6.6,REV=2010.10.12
Issue History
2011-02-10 02:25 skayser New Issue
2011-02-25 17:50 maciej Status new => assigned
2011-02-25 17:50 maciej Assigned To => maciej
2011-02-25 17:50 maciej Note Added: 0008833
2011-02-25 17:50 maciej Status assigned => feedback
2011-02-25 17:52 skayser Note Added: 0008834
2011-02-25 17:58 maciej Note Added: 0008835
2011-02-25 17:58 maciej Status feedback => closed
2011-02-25 17:59 maciej Resolution open => fixed

Notes
(0008833)
maciej   
2011-02-25 17:50   
Please try:

- uninstalling CSWzope
- installing CSWpy-mechanize

Does that work?
(0008834)
skayser   
2011-02-25 17:52   
Yes, it does. Thanks.
(0008835)
maciej   
2011-02-25 17:58   
Excellent, I'm closing the bug then.