ziirish / OctoPrint-TuyaSmartplug

Tuya Smartplug plugin for OctoPrint
Other
22 stars 15 forks source link

Cant install due to error #12

Closed ravenaus closed 4 years ago

ravenaus commented 4 years ago

Hi

here is the current error running on octoPrint v1.4.0

Downloading https://files.pythonhosted.org/packages/44/66/2c17bae31c906613795711fc78045c285048168919ace2220daa372c7d72/pyaes-1.6.1.tar.gz WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='www.piwheels.org', port=443): Read timed out. (read timeout=15)",)': /simple/pytuya/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='www.piwheels.org', port=443): Read timed out. (read timeout=15)",)': /simple/pytuya/ Collecting pytuya==7.0.6 Downloading https://files.pythonhosted.org/packages/35/82/a10d977c4a0879c37275e2793d983a8b7ac0f6738e937cdc159d4f3a15c1/pytuya-7.0.6.zip 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-szsUxS/pytuya/setup.py'"'"'; file='"'"'/tmp/pip-install-szsUxS/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-szsUxS/pytuya/pip-egg-info cwd: /tmp/pip-install-szsUxS/pytuya/ Complete output (7 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-szsUxS/pytuya/setup.py", line 9, in from pytuya.const import author, version 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

Pitreaper commented 4 years ago

I am having the same problem trying to install this

SpaceDiceMan commented 4 years ago

Same problem

capillonpub commented 4 years ago

Same here

EDIT: install worked by applying the fix proposed in other issue #6: install manually Pyaes prior to tuya plugin with SSH command source ~/oprint/bin/activate; pip install pyaes==1.6.1

ziirish commented 4 years ago

closing as this is clearly a duplicate of #6