Answer the question
In order to leave comments, you need to log in
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'
[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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question