1

I'm trying to learn mechanize module but getting this import error while doing the basic thing

I got this error

Traceback (most recent call last):  
  File "C:/Users/HUNTER/PycharmProjects/Encryption/erp.py", line 2, in <module>
    import mechanize  
  File "C:\Users\HUNTER\AppData\Local\Programs\Python\Python35-32\lib\site-packages\mechanize\__init__.py", line 119, in <module>
    from _version import __version__  
ImportError: No module named '_version'

by doing this

import mechanize 
br = mechanize.Browser() 
br.open("website")
P.hunter
  • 1,345
  • 2
  • 21
  • 45
  • 1
    Please post the whole traceback. – roganjosh Mar 11 '17 at 17:23
  • @roganjosh i did – P.hunter Mar 11 '17 at 17:33
  • Does [this question](http://stackoverflow.com/questions/22190503/i-get-an-error-in-python3-when-importing-mechanize) help? – roganjosh Mar 11 '17 at 17:37
  • @roganjosh i tried to install it manually but getting the same error , but what about the __version_, im still on basics and it would be really helpful if you could relate the answer to my previous question [link](http://stackoverflow.com/questions/42719990/how-to-request-a-website-to-log-in) – P.hunter Mar 11 '17 at 17:46
  • The link in that first answer still points to a page saying that Python 3 isn't supported. I don't use the module but it seems a likely explanation, even though it's nearly 3 years old. What version of Python are you using? – roganjosh Mar 11 '17 at 17:49
  • @roganjosh its 3.5.2 – P.hunter Mar 11 '17 at 17:52
  • @roganjosh are there any alternatives for `mechanize` – P.hunter Mar 11 '17 at 17:59
  • That I really don't know. As I said, I don't use the library. – roganjosh Mar 11 '17 at 19:02

0 Answers0