M
M
maolo2015-12-26 19:18:16
Python
maolo, 2015-12-26 19:18:16

Python script - ImportError: No module named 'sh'?

Question based on this article Yota cost optimization: attempt # 3
Actually, this script worked fine, then I didn’t use it for a long time, and during this time I reinstalled the system - I had to install supervisor again, all other dependencies, but the script does not work, in the log the following error is listed (there is another error - yota.exceptions.LoginFailed - but I think this is a consequence of the one below):

File "/home/.../yota-speed-controller/yota/current_speed_provider.py", line 2, in <module>
    import sh
ImportError: No module named 'sh'

I ran the installation of this module again:
[email protected]:~$ sudo easy_install3 sh
Searching for sh
Best match: sh 1.9
Adding sh 1.9 to easy-install.pth file

Using /home/user/.local/lib/python3.4/site-packages
Processing dependencies for sh
Finished processing dependencies for sh

But the script still does not see this module, how can I solve this problem?
System - Ubuntu 15.10
PS For Python 2.7 also installed - sudo easy_install sh, still the same error.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2015-12-26
@maolo

it looks like you are working with virtualenv, and you are doing the installation in the system and not in the virtual area

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question