Error with OctoPrint-TuyaSmartplug plugins

Hello,

When I would like install the OctoPrint-TuyaSmartplug plugins I have one error.

ERROR: Command errored out with exit status 1:
command: /home/pi/oprint/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-K_MPDh/pytuya/setup.py'"'"'; file='"'"'/tmp/pip-install-K_MPDh/pytuya/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-K_MPDh/pytuya/pip-egg-info
cwd: /tmp/pip-install-K_MPDh/pytuya/
Complete output (7 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-K_MPDh/pytuya/setup.py", line 9, in
import pytuya
File "pytuya/init.py", line 28, in
import pyaes # https://github.com/ricmoo/pyaes
ImportError: No module named pyaes

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Error!
Could not parse output from pip, see plugin_pluginmanager_console.log for generated output

Somebody can help me ? Thanks

Laurent

See https://github.com/ziirish/OctoPrint-TuyaSmartplug/issues/6

You need to connect to the raspberry pi via ssh and execute the following command prior to installing the plugin:
source /home/pi/OctoPrint/venv/bin/activate; pip install pyaes==1.6.1

Thanks you, I try immediately.
Thanks
Laurent

I have execute the command

source /home/pi/OctoPrint/venv/bin/activate; pip install pyaes==1.6.1

and I have an error.

bash: pip: command not found

It's ok, I have found. Thanks

Hello, i have an error to

I have execute the command

source /home/pi/OctoPrint/venv/bin/activate; pip install pyaes==1.6.1

and I have an error.

bash: pip: command not found

please, what ' s the solution ??

This might not be the most elegant solution, but this worked for me:

cd ~/oprint/bin
./pip install pyaes==1.6.1

I tried installing pip and I ran into issues regarding Octoprint's setuptools, so you have to use the version of pip already present on your install. Not sure why it you and I got the "command not found" error.

Hi,
Thank you for your help.
it s ok for me after updated linux.