jjlee / mechanize

Stateful programmatic web browsing in Python, after Andy Lester's Perl module WWW::Mechanize .
http://wwwsearch.sourceforge.net/mechanize/
618 stars 121 forks source link

ImportError #104

Closed michaelaye closed 9 years ago

michaelaye commented 9 years ago

First time using, installed with pip, I get this:

import mechanize
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-6b82e40e2c8e> in <module>()
----> 1 import mechanize

/Users/maye/miniconda3/envs/py34/lib/python3.4/site-packages/mechanize/__init__.py in <module>()
    117 import sys
    118 
--> 119 from _version import __version__
    120 
    121 # high-level stateful browser-style interface

ImportError: No module named '_version'
cswarren commented 9 years ago

Is this using Python 3? If so, this is a duplicate of #96.

michaelaye commented 9 years ago

As above path indicates, yes it was.