CodingTheUnknown / OctoPrint-Tplinkautoshutdown

A plugin designed to be used within OctoPrint and OctoPi to control TP-Link kasa devices.
https://github.com/CodingTheUnknown/OctoPrint-Tplinkautoshutdown.git
9 stars 7 forks source link

not able to install via plug in manager #25

Closed turbodlr closed 3 years ago

turbodlr commented 3 years ago

first I dont see it in search so I used the url copied from here. I get these errors, can you advise?

ERROR: Could not find a version that satisfies the requirement python-kasa (from OctoPrint-Tplinkautoshutdown==0.2.1) (from versions: none) ERROR: No matching distribution found for python-kasa (from OctoPrint-Tplinkautoshutdown==0.2.1) Error! Could not parse output from pip, see plugin_pluginmanager_console.log for generated output

turbodlr commented 3 years ago

here is the entire output of the attempted install

Installing plugin from https://github.com/jamesmccannon02/OctoPrint-Tplinkautoshutdown/archive/master.zip... /home/pi/oprint/bin/python2 -m pip --disable-pip-version-check install file:///tmp/tmpNb8337/master.zip --no-cache-dir Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Processing /tmp/tmpNb8337/master.zip Requirement already satisfied: OctoPrint in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint-Tplinkautoshutdown==0.2.1) (1.5.3) ERROR: Could not find a version that satisfies the requirement python-kasa (from OctoPrint-Tplinkautoshutdown==0.2.1) (from versions: none) ERROR: No matching distribution found for python-kasa (from OctoPrint-Tplinkautoshutdown==0.2.1) Error! Could not parse output from pip, see plugin_pluginmanager_console.log for generated output

CodingTheUnknown commented 3 years ago

Ok so I believe your problem is your using python 2 which is now about to be discontinued as we move to python 3. What device are you using?

turbodlr commented 3 years ago

Pi 4b

turbodlr commented 3 years ago

Linux octopi 4.19.75-v7l+
OctoPrint version : 1.5.3 OctoPi version : 0.17.0

CodingTheUnknown commented 3 years ago

Ok, so your issue is that you are running python 2. So you need to either re-install octopi as the new version is now python 3 or follow the tutorial to convert your current version to python 3

https://octoprint.org/blog/2020/09/10/upgrade-to-py3/

CodingTheUnknown commented 3 years ago

https://octoprint.org/download/

turbodlr commented 3 years ago

cool, standby will try and advise, thanks!

CodingTheUnknown commented 3 years ago

Using the update tool is unreliable. It either works or it doesn't but this needs to be done in the next month if you still want to use octoprint as the owner of octoprint is fully removing all support next month

turbodlr commented 3 years ago

ok upgrade successful and plugin install worked now. Thanks for the fast reply!

CodingTheUnknown commented 3 years ago

No problem enjoy