ep1cman / unifi-protect-backup

Python tool to backup unifi event clips in realtime
MIT License
580 stars 25 forks source link

unable to upgrade to latest version of unifi-protect-backup; current version doesn't work #156

Open timotab opened 4 days ago

timotab commented 4 days ago

Description

attempting to update unifi-protect-backup after a version of protect updated with breaking changes pip tells me that 0.9.4 is latest version, but that's clearly not true.

What I Did

thunt@raspberrypi:~/unifi $ python3.9 -m pip install --upgrade unifi-protect-backup
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: unifi-protect-backup in /home/thunt/.local/lib/python3.9/site-packages (0.9.4)
Collecting unifi-protect-backup
  Using cached https://www.piwheels.org/simple/unifi-protect-backup/unifi_protect_backup-0.10.7-py3-none-any.whl (32 kB)
Collecting aiolimiter<2.0.0,>=1.1.0 (from unifi-protect-backup)
  Using cached https://www.piwheels.org/simple/aiolimiter/aiolimiter-1.1.0-py3-none-any.whl (7.2 kB)
Collecting aiorun<2024.0.0,>=2023.7.2 (from unifi-protect-backup)
  Using cached https://www.piwheels.org/simple/aiorun/aiorun-2023.7.2-py3-none-any.whl (17 kB)
Requirement already satisfied: aiosqlite<0.18.0,>=0.17.0 in /home/thunt/.local/lib/python3.9/site-packages (from unifi-protect-backup) (0.17.0)
Collecting apprise<2.0.0,>=1.5.0 (from unifi-protect-backup)
  Using cached https://www.piwheels.org/simple/apprise/apprise-1.8.0-py3-none-any.whl (1.2 MB)
Collecting async-lru<3.0.0,>=2.0.4 (from unifi-protect-backup)
  Using cached https://www.piwheels.org/simple/async-lru/async_lru-2.0.4-py3-none-any.whl (6.1 kB)
Requirement already satisfied: click==8.0.1 in /home/thunt/.local/lib/python3.9/site-packages (from unifi-protect-backup) (8.0.1)
Requirement already satisfied: expiring-dict<2.0.0,>=1.1.0 in /home/thunt/.local/lib/python3.9/site-packages (from unifi-protect-backup) (1.1.0)
Requirement already satisfied: python-dateutil<3.0.0,>=2.8.2 in /home/thunt/.local/lib/python3.9/site-packages (from unifi-protect-backup) (2.8.2)
INFO: pip is looking at multiple versions of unifi-protect-backup to determine which version is compatible with other requirements. This could take a while.
Collecting unifi-protect-backup
  Using cached https://www.piwheels.org/simple/unifi-protect-backup/unifi_protect_backup-0.10.6-py3-none-any.whl (32 kB)
  Using cached https://www.piwheels.org/simple/unifi-protect-backup/unifi_protect_backup-0.10.5-py3-none-any.whl (32 kB)
  Using cached https://www.piwheels.org/simple/unifi-protect-backup/unifi_protect_backup-0.10.4-py3-none-any.whl (32 kB)
  Using cached https://www.piwheels.org/simple/unifi-protect-backup/unifi_protect_backup-0.10.3-py3-none-any.whl (32 kB)
  Using cached https://www.piwheels.org/simple/unifi-protect-backup/unifi_protect_backup-0.10.2-py3-none-any.whl (32 kB)
  Using cached https://www.piwheels.org/simple/unifi-protect-backup/unifi_protect_backup-0.10.1-py3-none-any.whl (32 kB)
  Using cached https://www.piwheels.org/simple/unifi-protect-backup/unifi_protect_backup-0.10.0-py3-none-any.whl (32 kB)
INFO: pip is still looking at multiple versions of unifi-protect-backup to determine which version is compatible with other requirements. This could take a while.
  Using cached https://www.piwheels.org/simple/unifi-protect-backup/unifi_protect_backup-0.9.5-py3-none-any.whl (32 kB)
Requirement already satisfied: aiorun<2023.0.0,>=2022.11.1 in /home/thunt/.local/lib/python3.9/site-packages (from unifi-protect-backup) (2022.11.1)
Requirement already satisfied: apprise<2.0.0,>=1.3.0 in /home/thunt/.local/lib/python3.9/site-packages (from unifi-protect-backup) (1.4.0)
Requirement already satisfied: async-lru<3.0.0,>=2.0.3 in /home/thunt/.local/lib/python3.9/site-packages (from unifi-protect-backup) (2.0.3)
Requirement already satisfied: pyunifiprotect<5.0.0,>=4.0.11 in /home/thunt/.local/lib/python3.9/site-packages (from unifi-protect-backup) (4.10.4)
Requirement already satisfied: typing_extensions>=3.7.2 in /home/thunt/.local/lib/python3.9/site-packages (from aiosqlite<0.18.0,>=0.17.0->unifi-protect-backup) (4.1.1)
Requirement already satisfied: certifi in /home/thunt/.local/lib/python3.9/site-packages (from apprise<2.0.0,>=1.3.0->unifi-protect-backup) (2023.5.7)
Requirement already satisfied: requests in /home/thunt/.local/lib/python3.9/site-packages (from apprise<2.0.0,>=1.3.0->unifi-protect-backup) (2.31.0)
Requirement already satisfied: requests-oauthlib in /home/thunt/.local/lib/python3.9/site-packages (from apprise<2.0.0,>=1.3.0->unifi-protect-backup) (1.3.1)
Requirement already satisfied: markdown in /home/thunt/.local/lib/python3.9/site-packages (from apprise<2.0.0,>=1.3.0->unifi-protect-backup) (3.4.3)
Requirement already satisfied: PyYAML in /home/thunt/.local/lib/python3.9/site-packages (from apprise<2.0.0,>=1.3.0->unifi-protect-backup) (5.4.1)
Requirement already satisfied: sortedcontainers in /home/thunt/.local/lib/python3.9/site-packages (from expiring-dict<2.0.0,>=1.1.0->unifi-protect-backup) (2.4.0)
Requirement already satisfied: six>=1.5 in /home/thunt/.local/lib/python3.9/site-packages (from python-dateutil<3.0.0,>=2.8.2->unifi-protect-backup) (1.16.0)
Requirement already satisfied: aiofiles in /home/thunt/.local/lib/python3.9/site-packages (from pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (22.1.0)
Requirement already satisfied: aiohttp in /home/thunt/.local/lib/python3.9/site-packages (from pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (3.8.1)
Requirement already satisfied: aioshutil in /home/thunt/.local/lib/python3.9/site-packages (from pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (1.1)
Requirement already satisfied: async-timeout in /home/thunt/.local/lib/python3.9/site-packages (from pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (4.0.2)
Requirement already satisfied: dateparser in /home/thunt/.local/lib/python3.9/site-packages (from pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (1.1.3)
Requirement already satisfied: orjson in /home/thunt/.local/lib/python3.9/site-packages (from pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (3.8.1)
Requirement already satisfied: packaging in /home/thunt/.local/lib/python3.9/site-packages (from pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (21.3)
Requirement already satisfied: pillow in /home/thunt/.local/lib/python3.9/site-packages (from pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (9.0.1)
Requirement already satisfied: pydantic!=1.9.1 in /home/thunt/.local/lib/python3.9/site-packages (from pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (1.9.0)
Requirement already satisfied: pyjwt in /home/thunt/.local/lib/python3.9/site-packages (from pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (2.3.0)
Requirement already satisfied: typer>0.6 in /home/thunt/.local/lib/python3.9/site-packages (from typer[all]>0.6->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (0.7.0)
Requirement already satisfied: colorama<0.5.0,>=0.4.3 in /home/thunt/.local/lib/python3.9/site-packages (from typer[all]>0.6->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (0.4.3)
Requirement already satisfied: shellingham<2.0.0,>=1.3.0 in /home/thunt/.local/lib/python3.9/site-packages (from typer[all]>0.6->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (1.5.0)
Requirement already satisfied: rich<13.0.0,>=10.11.0 in /home/thunt/.local/lib/python3.9/site-packages (from typer[all]>0.6->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (12.6.0)
Requirement already satisfied: attrs>=17.3.0 in /home/thunt/.local/lib/python3.9/site-packages (from aiohttp->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (21.4.0)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/thunt/.local/lib/python3.9/site-packages (from aiohttp->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (2.0.12)
Requirement already satisfied: multidict<7.0,>=4.5 in /home/thunt/.local/lib/python3.9/site-packages (from aiohttp->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (6.0.2)
Requirement already satisfied: yarl<2.0,>=1.0 in /home/thunt/.local/lib/python3.9/site-packages (from aiohttp->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (1.7.2)
Requirement already satisfied: frozenlist>=1.1.1 in /home/thunt/.local/lib/python3.9/site-packages (from aiohttp->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (1.3.0)
Requirement already satisfied: aiosignal>=1.1.2 in /home/thunt/.local/lib/python3.9/site-packages (from aiohttp->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (1.2.0)
Requirement already satisfied: pytz in /home/thunt/.local/lib/python3.9/site-packages (from dateparser->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (2021.3)
Requirement already satisfied: regex!=2019.02.19,!=2021.8.27,<2022.3.15 in /home/thunt/.local/lib/python3.9/site-packages (from dateparser->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (2022.3.2)
Requirement already satisfied: tzlocal in /home/thunt/.local/lib/python3.9/site-packages (from dateparser->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (4.1)
Requirement already satisfied: importlib-metadata>=4.4 in /home/thunt/.local/lib/python3.9/site-packages (from markdown->apprise<2.0.0,>=1.3.0->unifi-protect-backup) (6.6.0)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/thunt/.local/lib/python3.9/site-packages (from packaging->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (3.0.7)
Requirement already satisfied: idna<4,>=2.5 in /home/thunt/.local/lib/python3.9/site-packages (from requests->apprise<2.0.0,>=1.3.0->unifi-protect-backup) (3.3)
Requirement already satisfied: urllib3<3,>=1.21.1 in /home/thunt/.local/lib/python3.9/site-packages (from requests->apprise<2.0.0,>=1.3.0->unifi-protect-backup) (1.26.8)
Requirement already satisfied: oauthlib>=3.0.0 in /home/thunt/.local/lib/python3.9/site-packages (from requests-oauthlib->apprise<2.0.0,>=1.3.0->unifi-protect-backup) (3.2.2)
Requirement already satisfied: zipp>=0.5 in /home/thunt/.local/lib/python3.9/site-packages (from importlib-metadata>=4.4->markdown->apprise<2.0.0,>=1.3.0->unifi-protect-backup) (3.15.0)
Requirement already satisfied: commonmark<0.10.0,>=0.9.0 in /home/thunt/.local/lib/python3.9/site-packages (from rich<13.0.0,>=10.11.0->typer[all]>0.6->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (0.9.1)
Requirement already satisfied: pygments<3.0.0,>=2.6.0 in /home/thunt/.local/lib/python3.9/site-packages (from rich<13.0.0,>=10.11.0->typer[all]>0.6->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (2.13.0)
Requirement already satisfied: pytz-deprecation-shim in /home/thunt/.local/lib/python3.9/site-packages (from tzlocal->dateparser->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (0.1.0.post0)
Requirement already satisfied: tzdata in /home/thunt/.local/lib/python3.9/site-packages (from pytz-deprecation-shim->tzlocal->dateparser->pyunifiprotect<5.0.0,>=4.0.11->unifi-protect-backup) (2021.5)
mmolitor87 commented 19 hours ago

This is probably because pyunifiprotect no longer exists in pip. Try: pip install --force-reinstall -v "unifi-protect-backup==0.10.7" and see if it gives any errors.

I'm not sure how to request 0.11.0 as it doesn't exist in pypi that I can see.

timotab commented 17 hours ago
ERROR: Ignored the following versions that require a different python version: 0.0.1 Requires-Python >=2.7, <3; 0.0.2 Requires-Python >=2.7, <3; 0.0.3 Requires-Python >=2.7, <3
ERROR: Could not find a version that satisfies the requirement pyunifiprotect<6.0.0,>=5.0.2 (from unifi-protect-backup) (from versions: none)
ERROR: No matching distribution found for pyunifiprotect<6.0.0,>=5.0.2