ImportError: cannot import name 'Mech'
Closed this issue · 4 comments
svanschalkwyk commented
Resolved by building from git codebase.
Traceback (most recent call last):
File "/usr/local/bin/mech", line 9, in
load_entry_point('mech==0.6', 'console_scripts', 'mech')()
File "/home/steph/.local/lib/python3.5/site-packages/mech/main.py", line 32, in main
from mech import Mech
ImportError: cannot import name 'Mech'
Linux Mint 18.xx
pip install
arizvisa commented
Is python -m site --user-site
outputting that site-packages directory?
svanschalkwyk commented
$python -m site --user-site
/home/steph/.local/lib/python2.7/site-packages
arizvisa commented
looks like you installed mech in python3 site-packages path, and your default python installation is using python2?
svanschalkwyk commented
Sorry, this has been resolved (see first post) by building from source.