Problème dépendances Arlo - urllib3 + requests

Hello,

Suite à la dernière mise de la version stable, le démon ne démarre plus à cause des lib urllib3 + requests

Jeedom stable : 4.3.17
Matériel : RPi 4B+ Buster

Installation des dépendances :

0000|*************************************
0001|*   Launch install of dependencies  *
0002|*************************************
0003|Tue May 16 09:08:38 CEST 2023
0004|Hit:1 http://archive.raspberrypi.org/debian buster InRelease
0005|Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
0006|Hit:3 https://deb.nodesource.com/node_16.x buster InRelease
0007|Get:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
0008|Fetched 13.0 MB in 24s (546 kB/s)
0009|Reading package lists...
0010|*****************************
0011|Install modules using apt-get
0012|*****************************
0013|Reading package lists...
0014|Building dependency tree...
0015|Reading state information...
0016|python3 is already the newest version (3.7.3-1).
0017|python3-requests is already the newest version (2.21.0-1).
0018|python3-setuptools is already the newest version (40.8.0-1).
0019|python3-pip is already the newest version (18.1-5+rpt1).
0020|0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
0021|Reading package lists...
0022|Building dependency tree...
0023|Reading state information...
0024|ffmpeg is already the newest version (7:4.1.10-0+deb10u1+rpt1).
0025|0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
0026|*************************************
0027|Install the required python libraries
0028|*************************************
0029|Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
0030|Requirement already satisfied: monotonic>=1.5 in /usr/local/lib/python3.7/dist-packages (1.5)
0031|Collecting urllib3>=1.26
0032|Downloading https://files.pythonhosted.org/packages/4b/1d/f8383ef593114755429c307449e7717b87044b3bcd5f7860b89b1f759e34/urllib3-2.0.2-py3-none-any.whl (123kB)
0033|Collecting requests>=2.30
0034|Downloading https://files.pythonhosted.org/packages/96/80/034ffeca15c0f4e01b7b9c6ad0fb704b44e190cde4e757edbd60be404c41/requests-2.30.0-py3-none-any.whl (62kB)
0035|Requirement already satisfied: sseclient==0.0.18 in /usr/local/lib/python3.7/dist-packages (0.0.18)
0036|Collecting cloudscraper>=1.2.70
0037|Downloading https://files.pythonhosted.org/packages/81/97/fc88803a451029688dffd7eb446dc1b529657577aec13aceff1cc9628c5d/cloudscraper-1.2.71-py2.py3-none-any.whl (99kB)
0038|Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests>=2.30) (2.6)
0039|Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests>=2.30) (2021.10.8)
0040|Collecting charset-normalizer<4,>=2 (from requests>=2.30)
0041|Downloading https://files.pythonhosted.org/packages/ef/81/14b3b8f01ddaddad6cdec97f2f599aa2fa466bd5ee9af99b08b7713ccd29/charset_normalizer-3.1.0-py3-none-any.whl (46kB)
0042|Requirement already satisfied: six in /usr/local/lib/python3.7/dist-packages (from sseclient==0.0.18) (1.16.0)
0043|Requirement already satisfied: pyparsing>=2.4.7 in /usr/local/lib/python3.7/dist-packages (from cloudscraper>=1.2.70) (2.4.7)
0044|Requirement already satisfied: requests-toolbelt>=0.9.1 in /usr/local/lib/python3.7/dist-packages (from cloudscraper>=1.2.70) (0.9.1)
0045|Installing collected packages: urllib3, charset-normalizer, requests, cloudscraper
0046|Found existing installation: urllib3 1.24.1
0047|Not uninstalling urllib3 at /usr/lib/python3/dist-packages, outside environment /usr
0048|Can't uninstall 'urllib3'. No files were found to uninstall.
0049|Found existing installation: requests 2.21.0
0050|Not uninstalling requests at /usr/lib/python3/dist-packages, outside environment /usr
0051|Can't uninstall 'requests'. No files were found to uninstall.
0052|Found existing installation: cloudscraper 1.2.58
0053|Uninstalling cloudscraper-1.2.58:
0054|Successfully uninstalled cloudscraper-1.2.58
0055|Successfully installed charset-normalizer-3.1.0 cloudscraper-1.2.71 requests-2.30.0 urllib3-2.0.2
0056|ffmpeg version 4.1.10-0+deb10u1+rpt1 Copyright (c) 2000-2022 the FFmpeg developers
0057|built with gcc 8 (Raspbian 8.3.0-6+rpi1)
0058|configuration: --prefix=/usr --extra-version=0+deb10u1+rpt1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-vout-drm --enable-v4l2-request --enable-libudev --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --libdir=/usr/lib/arm-linux-gnueabihf --cpu=arm1176jzf-s --arch=arm
0059|libavutil      56. 22.100 / 56. 22.100
0060|libavcodec     58. 35.100 / 58. 35.100
0061|libavformat    58. 20.100 / 58. 20.100
0062|libavdevice    58.  5.100 / 58.  5.100
0063|libavfilter     7. 40.101 /  7. 40.101
0064|libavresample   4.  0.  0 /  4.  0.  0
0065|libswscale      5.  3.100 /  5.  3.100
0066|libswresample   3.  3.100 /  3.  3.100
0067|libpostproc    55.  3.100 / 55.  3.100
0068|Tue May 16 09:09:21 CEST 2023
0069|***************************
0070|*      Install ended      *
0071|***************************

Démon :

4303|[2023-05-16 09:08:26][INFO] : MainThread : Logout Arlo
4304|Traceback (most recent call last):
4305|File "/usr/local/lib/python3.7/dist-packages/requests_toolbelt/_compat.py", line 48, in <module>
4306|from requests.packages.urllib3.contrib import appengine as gaecontrib
4307|ImportError: cannot import name 'appengine' from 'requests.packages.urllib3.contrib' (/usr/local/lib/python3.7/dist-packages/urllib3/contrib/__init__.py)
4308|During handling of the above exception, another exception occurred:
4309|Traceback (most recent call last):
4310|File "/var/www/html/plugins/arlo/resources/arlod/arlod.py", line 10, in <module>
4311|from arlo.backend import ArloBackend, ArloBackendException
4312|File "/var/www/html/plugins/arlo/resources/arlod/arlo/__init__.py", line 1, in <module>
4313|from .backend import ArloBackend, ArloBackendException
4314|File "/var/www/html/plugins/arlo/resources/arlod/arlo/backend.py", line 10, in <module>
4315|from .clientApi.arlo import Arlo
4316|File "/var/www/html/plugins/arlo/resources/arlod/arlo/clientApi/arlo.py", line 2, in <module>
4317|from .request import ArloRequest
4318|File "/var/www/html/plugins/arlo/resources/arlod/arlo/clientApi/request.py", line 1, in <module>
4319|import cloudscraper
4320|File "/usr/local/lib/python3.7/dist-packages/cloudscraper/__init__.py", line 10, in <module>
4321|from requests_toolbelt.utils import dump
4322|File "/usr/local/lib/python3.7/dist-packages/requests_toolbelt/__init__.py", line 12, in <module>
4323|from .adapters import SSLAdapter, SourceAddressAdapter
4324|File "/usr/local/lib/python3.7/dist-packages/requests_toolbelt/adapters/__init__.py", line 12, in <module>
4325|from .ssl import SSLAdapter
4326|File "/usr/local/lib/python3.7/dist-packages/requests_toolbelt/adapters/ssl.py", line 16, in <module>
4327|from .._compat import poolmanager
4328|File "/usr/local/lib/python3.7/dist-packages/requests_toolbelt/_compat.py", line 50, in <module>
4329|from urllib3.contrib import appengine as gaecontrib
4330|ImportError: cannot import name 'appengine' from 'urllib3.contrib' (/usr/local/lib/python3.7/dist-packages/urllib3/contrib/__init__.py)

Xav

je peux voir la liste des tes plugins?


Je sais pas si c’est lisible :slight_smile:

J’ai poussé une nouvelle beta, peux-tu tester et me montrer le nouveau log?

Beta installée !
Dépendances :

/var/www/html/plugins/arlo/core/class/../../resources/venv
*************************************
*   Launch install of dependencies  *
*************************************
Tue May 16 12:40:52 CEST 2023
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Hit:3 https://deb.nodesource.com/node_16.x buster InRelease
Reading package lists...
*****************************
Install modules using apt-get
*****************************
Reading package lists...
Building dependency tree...
Reading state information...
python3 is already the newest version (3.7.3-1).
python3-requests is already the newest version (2.21.0-1).
python3-setuptools is already the newest version (40.8.0-1).
python3-pip is already the newest version (18.1-5+rpt1).
The following additional packages will be installed:
python3.7-venv
The following NEW packages will be installed:
python3-venv python3.7-venv
0 upgraded, 2 newly installed, 0 to remove and 8 not upgraded.
Need to get 7316 B of archives.
After this operation, 44.0 kB of additional disk space will be used.
Get:2 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-venv armhf 3.7.3-1 [1180 B]
Get:1 http://mirrors.ircam.fr/pub/raspbian/raspbian buster/main armhf python3.7-venv armhf 3.7.3-2+deb10u4 [6136 B]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 7316 B in 0s (17.8 kB/s)
Selecting previously unselected package python3.7-venv.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 74883 files and directories currently installed.)
Preparing to unpack .../python3.7-venv_3.7.3-2+deb10u4_armhf.deb ...
Unpacking python3.7-venv (3.7.3-2+deb10u4) ...
Selecting previously unselected package python3-venv.
Preparing to unpack .../python3-venv_3.7.3-1_armhf.deb ...
Unpacking python3-venv (3.7.3-1) ...
Setting up python3.7-venv (3.7.3-2+deb10u4) ...
Setting up python3-venv (3.7.3-1) ...
Processing triggers for man-db (2.8.5-2) ...
Reading package lists...
Building dependency tree...
Reading state information...
ffmpeg is already the newest version (7:4.1.10-0+deb10u1+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
*************************************
Creating python 3 virtual environment
*************************************
Done
*************************************
Install the required python libraries
*************************************
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pip
Downloading https://files.pythonhosted.org/packages/08/e3/57d4c24a050aa0bcca46b2920bff40847db79535dc78141eb83581a52eb8/pip-23.1.2-py3-none-any.whl (2.1MB)
Collecting wheel
Downloading https://files.pythonhosted.org/packages/61/86/cc8d1ff2ca31a312a25a708c891cf9facbad4eae493b3872638db6785eb5/wheel-0.40.0-py3-none-any.whl (64kB)
Installing collected packages: pip, wheel
Found existing installation: pip 18.1
Uninstalling pip-18.1:
Successfully uninstalled pip-18.1
The script pip3.10 is installed in '/var/www/html/plugins/arlo/resources/venv/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
The script wheel is installed in '/var/www/html/plugins/arlo/resources/venv/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-23.1.2 wheel-0.40.0
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting monotonic>=1.5
Downloading https://www.piwheels.org/simple/monotonic/monotonic-1.6-py2.py3-none-any.whl (5.3 kB)
Collecting urllib3>=1.26
Downloading https://www.piwheels.org/simple/urllib3/urllib3-2.0.2-py3-none-any.whl (123 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 123.2/123.2 kB 851.6 kB/s eta 0:00:00
Collecting requests>=2.30
Downloading https://www.piwheels.org/simple/requests/requests-2.30.0-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.5/62.5 kB 609.7 kB/s eta 0:00:00
Collecting sseclient==0.0.18
Using cached https://www.piwheels.org/simple/sseclient/sseclient-0.0.18-py3-none-any.whl (6.4 kB)
Collecting cloudscraper>=1.2.70
Downloading https://www.piwheels.org/simple/cloudscraper/cloudscraper-1.2.71-py3-none-any.whl (99 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.6/99.6 kB 805.4 kB/s eta 0:00:00
Collecting six (from sseclient==0.0.18)
Downloading https://www.piwheels.org/simple/six/six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting charset-normalizer<4,>=2 (from requests>=2.30)
Using cached charset_normalizer-3.1.0-py3-none-any.whl (46 kB)
Collecting idna<4,>=2.5 (from requests>=2.30)
Downloading https://www.piwheels.org/simple/idna/idna-3.4-py3-none-any.whl (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 693.7 kB/s eta 0:00:00
Collecting certifi>=2017.4.17 (from requests>=2.30)
Downloading https://www.piwheels.org/simple/certifi/certifi-2023.5.7-py3-none-any.whl (156 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 156.9/156.9 kB 882.1 kB/s eta 0:00:00
Collecting requests-toolbelt>=0.9.1 (from cloudscraper>=1.2.70)
Downloading https://www.piwheels.org/simple/requests-toolbelt/requests_toolbelt-1.0.0-py2.py3-none-any.whl (51 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.6/51.6 kB 846.1 kB/s eta 0:00:00
Collecting pyparsing>=2.4.7 (from cloudscraper>=1.2.70)
Downloading https://www.piwheels.org/simple/pyparsing/pyparsing-3.0.9-py3-none-any.whl (98 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.3/98.3 kB 781.4 kB/s eta 0:00:00
Installing collected packages: monotonic, urllib3, six, pyparsing, idna, charset-normalizer, certifi, requests, sseclient, requests-toolbelt, cloudscraper
Successfully installed certifi-2023.5.7 charset-normalizer-3.1.0 cloudscraper-1.2.71 idna-3.4 monotonic-1.6 pyparsing-3.0.9 requests-2.30.0 requests-toolbelt-1.0.0 six-1.16.0 sseclient-0.0.18 urllib3-2.0.2
ffmpeg version 4.1.10-0+deb10u1+rpt1 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 8 (Raspbian 8.3.0-6+rpi1)
configuration: --prefix=/usr --extra-version=0+deb10u1+rpt1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-vout-drm --enable-v4l2-request --enable-libudev --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --libdir=/usr/lib/arm-linux-gnueabihf --cpu=arm1176jzf-s --arch=arm
libavutil      56. 22.100 / 56. 22.100
libavcodec     58. 35.100 / 58. 35.100
libavformat    58. 20.100 / 58. 20.100
libavdevice    58.  5.100 / 58.  5.100
libavfilter     7. 40.101 /  7. 40.101
libavresample   4.  0.  0 /  4.  0.  0
libswscale      5.  3.100 /  5.  3.100
libswresample   3.  3.100 /  3.  3.100
libpostproc    55.  3.100 / 55.  3.100
Tue May 16 12:41:39 CEST 2023
***************************
*      Install ended      *
***************************

Je te confirme que le démon a bien redémarré ensuite :wink:

Xav

1 « J'aime »

Voila, il y a du avoir un conflit avec un autre plugin mais je ne sais pas lequel.

Cela n’arrivera plus, je suis passé sur un virtuel env pour les libs python comme j’aurais du faire depuis longtemps (déjà fait sur d’autres plugins plus « récent ») mais les premiers dev de celui-ci ont été fait avant que ca n’existe (et que ca soit assez stable surtout) et je n’avais jamais migré le système; c’est chose faite.

1 « J'aime »

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.