ziirish / OctoPrint-TuyaSmartplug

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

pyaesImportError: No module named pyaes #11

Closed FrancYescO closed 3 years ago

FrancYescO commented 4 years ago

Cannot install from plugin manager

Installing plugin "OctoPrint-TuyaSmartplug" from https://github.com/ziirish/OctoPrint-TuyaSmartplug/archive/master.zip.../home/pi/oprint/bin/python2 -m pip --disable-pip-version-check install https://github.com/ziirish/OctoPrint-TuyaSmartplug/archive/master.zip --no-cache-dirLooking in indexes: https://pypi.org/simple, https://www.piwheels.org/simpleCollecting https://github.com/ziirish/OctoPrint-TuyaSmartplug/archive/master.zipDownloading https://github.com/ziirish/OctoPrint-TuyaSmartplug/archive/master.zipRequirement already satisfied: OctoPrint in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint-TuyaSmartplug==0.2.2) (1.4.0)Collecting pyaes==1.6.1 (from OctoPrint-TuyaSmartplug==0.2.2)Downloading https://files.pythonhosted.org/packages/44/66/2c17bae31c906613795711fc78045c285048168919ace2220daa372c7d72/pyaes-1.6.1.tar.gzCollecting pytuya==7.0.5 (from OctoPrint-TuyaSmartplug==0.2.2)Downloading https://files.pythonhosted.org/packages/4a/69/b20175759e97294f694939ab9bc4be378b3c60ef2d1601d80fc3cc6d2daa/pytuya-7.0.5.zipCommand "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-aimEBj/pytuya/Complete output from command python setup.py egg_info:Traceback (most recent call last):File "<string>", line 1, in <module>File "/tmp/pip-install-aimEBj/pytuya/setup.py", line 9, in <module>import pytuyaFile "pytuya/__init__.py", line 28, in <module>import pyaes  # https://github.com/ricmoo/pyaesImportError: No module named pyaes----------------------------------------Error!Could not parse output from pip, see plugin_pluginmanager_console.log for generated output
Bingspot205 commented 4 years ago

hi, did you solve your problem ? i have this problem too

FrancYescO commented 4 years ago

Nope..


From: Bingspot205 notifications@github.com Sent: Saturday, May 16, 2020 9:27:23 PM To: ziirish/OctoPrint-TuyaSmartplug OctoPrint-TuyaSmartplug@noreply.github.com Cc: Francesco M francyesc0@hotmail.it; Author author@noreply.github.com Subject: Re: [ziirish/OctoPrint-TuyaSmartplug] pyaesImportError: No module named pyaes (#11)

hi, did you solve your problem ? i have this problem too

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ziirish/OctoPrint-TuyaSmartplug/issues/11#issuecomment-629694957, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABC43AK2X3LXEILJN7SR673RR3SJXANCNFSM4M5U5PNA.

Bingspot205 commented 4 years ago

it's good for me... you have to connect to your raspberry pi via putty software and enter the following command line:

source ~ / oprint / bin / activate; pip install pyaes == 1.6.1

ziirish commented 4 years ago

Hello,

It's a known issue already reported in #6. This error is due to one of the plugin dependency which didn't handle its own dependencies properly. I contributed a fix upstream and was waiting for a new release since then.

This release finally happened a couple days ago so I will publish a new version of this plugin which should hopefully address this issue for good.

ziirish commented 4 years ago

I have now published a new version.

FrancYescO commented 4 years ago

Nothing changed to me, same OP error

vv4yno commented 4 years ago

Im still getting that same error as well. Also, source ~ / oprint / bin / activate; pip install pyaes == 1.6.1

gets me the following error - I have NFI what it means though :)

Invalid requirement: '==' Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/_internal/req/constructors.py", line 253, in install_req_from_line req = Requirement(req) File "/usr/share/python-wheels/packaging-19.0-py2.py3-none-any.whl/packaging/requirements.py", line 97, in init requirement_string[e.loc : e.loc + 8], e.msg InvalidRequirement: Parse error at "'=='": Expected W:(abcd...)

ziirish commented 4 years ago

You have to remove whitespaces around == => pip install pyaes==1.6.1

Also I confirm there is still a problem upstream so I am re-opening this issue.

Archmonger commented 4 years ago

Am hopeful for a fix!

Bellumatt commented 4 years ago

Still not fixed .... really sorry for that. Looking forward for a solution. What if pyaes is installed before the plugin directly on the pi??

Pitreaper commented 4 years ago

I am experiencing the same issue trying to install the plugin

SpaceDiceMan commented 4 years ago

Same problem here

quloquloqulo commented 4 years ago

connect via ssh and run the command source ~/oprint/bin/activate; pip install pyaes==1.6.1

ziirish commented 3 years ago

now fixed in 0.3.0