mechboxes/mech

ImportError: cannot import name 'Mech'

Closed this issue · 4 comments

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

Is python -m site --user-site outputting that site-packages directory?

$python -m site --user-site
/home/steph/.local/lib/python2.7/site-packages

looks like you installed mech in python3 site-packages path, and your default python installation is using python2?

Sorry, this has been resolved (see first post) by building from source.