Tyfy/OctoPrint-TapoSmartplug

Could not install plugin from.....

Opened this issue · 1 comments

First I got the Phyton error which I resolved.
Now I get the following error:

Error!
Could not install plugin from https://github.com/Tyfy/OctoPrint-TapoSmartplug/archive/master.zip, see the log for more details

Log:
2022-02-07 17:01:52,697 /home/pi/oprint/bin/python3 -m pip --disable-pip-version-check install file:///tmp/tmp79ifvc0u/OctoPrint-TapoSmartplug-master.zip --no-cache-dir
2022-02-07 17:01:58,134 > Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
2022-02-07 17:01:58,136 > Processing /tmp/tmp79ifvc0u/OctoPrint-TapoSmartplug-master.zip
2022-02-07 17:01:58,137 > Preparing metadata (setup.py): started
2022-02-07 17:02:00,440 > Preparing metadata (setup.py): finished with status 'done'
2022-02-07 17:02:00,441 > Requirement already satisfied: OctoPrint in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint-TapoSmartplug==0.0.1) (1.7.3)
2022-02-07 17:02:01,554 > Collecting uptime
2022-02-07 17:02:01,555 > Downloading https://www.piwheels.org/simple/uptime/uptime-3.0.1-cp37-cp37m-linux_armv7l.whl (20 kB)
2022-02-07 17:02:01,559 > Requirement already satisfied: PyP100 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint-TapoSmartplug==0.0.1) (0.0.18)
2022-02-07 17:02:03,064 > Requirement already satisfied: Click<8,>=7.1.2 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (7.1.2)
2022-02-07 17:02:03,071 > Requirement already satisfied: PyYAML<6,>=5.4.1 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (5.4.1)
2022-02-07 17:02:03,072 > Requirement already satisfied: pylru<2,>=1.2 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (1.2.0)
2022-02-07 17:02:03,072 > Requirement already satisfied: Flask-Babel<2,>=1.0 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (1.0.0)
2022-02-07 17:02:03,073 > Requirement already satisfied: OctoPrint-PiSupport>=2021.10.28 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (2021.10.28)
2022-02-07 17:02:03,073 > Requirement already satisfied: werkzeug<2,>=1.0.1 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (1.0.1)
2022-02-07 17:02:03,073 > Requirement already satisfied: regex in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (2020.11.13)
2022-02-07 17:02:03,074 > Requirement already satisfied: OctoPrint-FirmwareCheck>=2021.10.11 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (2021.10.11)
2022-02-07 17:02:03,074 > Requirement already satisfied: tornado<7,>=6 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (6.1)
2022-02-07 17:02:03,074 > Requirement already satisfied: future<1,>=0.18.2 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (0.18.2)
2022-02-07 17:02:03,075 > Requirement already satisfied: wrapt<1.13,>=1.12.1 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (1.12.1)
2022-02-07 17:02:03,075 > Requirement already satisfied: zeroconf<0.34,>=0.33 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (0.33.4)
2022-02-07 17:02:03,075 > Requirement already satisfied: itsdangerous<2,>=1.1.0 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (1.1.0)
2022-02-07 17:02:03,076 > Requirement already satisfied: markupsafe<2.0,>=1.1 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (1.1.1)
2022-02-07 17:02:03,076 > Requirement already satisfied: websocket-client<1,>=0.59 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (0.59.0)
2022-02-07 17:02:03,076 > Requirement already satisfied: OctoPrint-FileCheck>=2021.2.23 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (2021.2.23)
2022-02-07 17:02:03,077 > Requirement already satisfied: zipstream-new<1.2,>=1.1.8 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (1.1.8)
2022-02-07 17:02:03,077 > Requirement already satisfied: pkginfo<2,>=1.7.1 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (1.7.1)
2022-02-07 17:02:03,077 > Requirement already satisfied: sarge==0.1.6 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (0.1.6)
2022-02-07 17:02:03,078 > Requirement already satisfied: colorlog<6,>=5.0.1 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (5.0.1)
2022-02-07 17:02:03,078 > Requirement already satisfied: requests<3,>=2.26.0 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (2.26.0)
2022-02-07 17:02:03,078 > Requirement already satisfied: netifaces<1,>=0.11 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (0.11.0)
2022-02-07 17:02:03,079 > Requirement already satisfied: Jinja2<3,>=2.11.3 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (2.11.3)
2022-02-07 17:02:03,079 > Requirement already satisfied: markdown<3.2,>=3.1 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (3.1.1)
2022-02-07 17:02:03,079 > Requirement already satisfied: filetype<2,>=1.0.7 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (1.0.7)
2022-02-07 17:02:03,080 > Requirement already satisfied: immutabledict<3,>=2.1 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (2.2.1)
2022-02-07 17:02:03,080 > Requirement already satisfied: unidecode in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (0.4.21)
2022-02-07 17:02:03,080 > Requirement already satisfied: semantic-version<3,>=2.8.5 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (2.8.5)
2022-02-07 17:02:03,081 > Requirement already satisfied: flask<2,>=1.1.4 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (1.1.4)
2022-02-07 17:02:03,081 > Requirement already satisfied: emoji<2,>=1.4.2 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (1.6.0)
2022-02-07 17:02:03,081 > Requirement already satisfied: feedparser<7,>=6.0.8 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (6.0.8)
2022-02-07 17:02:03,082 > Requirement already satisfied: psutil<6,>=5.8 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (5.8.0)
2022-02-07 17:02:03,082 > Requirement already satisfied: pathvalidate<3,>=2.4.1 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (2.5.0)
2022-02-07 17:02:03,082 > Requirement already satisfied: cachelib<0.2,>=0.1 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (0.1.1)
2022-02-07 17:02:03,083 > Requirement already satisfied: sentry-sdk<2,>=1.3.1 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (1.4.3)
2022-02-07 17:02:03,083 > Requirement already satisfied: watchdog==0.10.4 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (0.10.4)
2022-02-07 17:02:03,083 > Requirement already satisfied: netaddr<0.9,>=0.8 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (0.8.0)
2022-02-07 17:02:03,084 > Requirement already satisfied: pyserial<4,>=3.4 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (3.5)
2022-02-07 17:02:03,084 > Requirement already satisfied: Flask-Login<0.6,>=0.5 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (0.5.0)
2022-02-07 17:02:03,084 > Requirement already satisfied: blinker<2,>=1.4 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (1.4)
2022-02-07 17:02:03,085 > Requirement already satisfied: Flask-Assets<3,>=2.0 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (2.0)
2022-02-07 17:02:03,085 > Requirement already satisfied: pathtools>=0.1.1 in /home/pi/oprint/lib/python3.7/site-packages (from watchdog==0.10.4->OctoPrint->OctoPrint-TapoSmartplug==0.0.1) (0.1.2)
2022-02-07 17:02:03,085 > Requirement already satisfied: pycryptodome==3.9.8 in /home/pi/oprint/lib/python3.7/site-packages (from PyP100->OctoPrint-TapoSmartplug==0.0.1) (3.9.8)
2022-02-07 17:02:05,413 > Collecting PyP100
2022-02-07 17:02:05,416 > Downloading https://www.piwheels.org/simple/pyp100/PyP100-0.0.17-py3-none-any.whl (7.8 kB)
2022-02-07 17:02:05,417 > Downloading https://www.piwheels.org/simple/pyp100/PyP100-0.0.16-py3-none-any.whl (7.9 kB)
2022-02-07 17:02:05,417 > Downloading https://www.piwheels.org/simple/pyp100/PyP100-0.0.15-py3-none-any.whl (7.8 kB)
2022-02-07 17:02:05,418 > Downloading https://www.piwheels.org/simple/pyp100/PyP100-0.0.14-py3-none-any.whl (6.6 kB)
2022-02-07 17:02:05,418 > Downloading https://www.piwheels.org/simple/pyp100/PyP100-0.0.13-py3-none-any.whl (5.8 kB)
2022-02-07 17:02:05,418 > Downloading https://www.piwheels.org/simple/pyp100/PyP100-0.0.12-py3-none-any.whl (5.8 kB)
2022-02-07 17:02:05,419 > Downloading https://www.piwheels.org/simple/pyp100/PyP100-0.0.11-py3-none-any.whl (5.8 kB)
2022-02-07 17:02:05,419 > Downloading PyP100-0.0.10.tar.gz (4.2 kB)
2022-02-07 17:02:05,420 > Preparing metadata (setup.py): started

Due to an upstream module dependency conflict with OctoPrint. I was able to help someone in Discord to get it working by manually installing the module from a fork, and then installing the patched plugin. SSH to the pi and run the following (assuming octopi image).

/home/pi/oprint/bin/pip install https://github.com/jneilliii/TapoP100/archive/refs/heads/main.zip
/home/pi/oprint/bin/pip install https://github.com/a0s/OctoPrint-TapoSmartplug/archive/refs/heads/master.zip
sudo service octoprint restart