login into a site, ImportError:cannot import name GopherError
I am trying to login into a site using the mechanize module. My script is: import mechanize from mechanize import Browser def main(): try: br = mechanize.Browser() br.open("site name") print br.title() except: print "error" if __name__ == '__main__': main() Every time I run it I get ImportError: cannot import name GopherError Traceback (most recent call last): File "example.py", line 11, in <module> import mechanize File "C:\Python27\lib\site-packages\mechanize\__init__.py", line 85, in <modul e> from _mechanize import __version__ File "C:\Python27\lib\site-packages\mechanize\_mechanize.py", l
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.