Rainbird et 4.4?

Hello, une fois n’est pas coutume, je trouve des plugins avec des problèmes :wink:

Jeedom 4.4.3
Plugin RAINBIRD beta et stable, meme combat.

Log rainbird Beta

[2024-05-02 21:46:31] DEBUG  : Traceback (most recent call last):
[2024-05-02 21:46:31] DEBUG  :   File "/var/www/html/plugins/rainbird/resources/rainbird_tool.py", line 21, in <module>
[2024-05-02 21:46:31] DEBUG  :     import aiohttp
[2024-05-02 21:46:31] DEBUG  : ModuleNotFoundError: No module named 'aiohttp'

Log rainbird stable

[2024-05-02 21:56:16] DEBUG  : Traceback (most recent call last):
[2024-05-02 21:56:16] DEBUG  :   File "/var/www/html/plugins/rainbird/resources/get_current_date.py", line 2, in <module>
[2024-05-02 21:56:16] DEBUG  :     from pyrainbird import RainbirdController
[2024-05-02 21:56:16] DEBUG  :   File "/var/www/html/plugins/rainbird/resources/pyrainbird/__init__.py", line 16, in <module>
[2024-05-02 21:56:16] DEBUG  :     from .client import RainbirdClient
[2024-05-02 21:56:16] DEBUG  :   File "/var/www/html/plugins/rainbird/resources/pyrainbird/client.py", line 5, in <module>
[2024-05-02 21:56:16] DEBUG  :     import requests
[2024-05-02 21:56:16] DEBUG  : ModuleNotFoundError: No module named 'requests'

log install

*************************************
*   Launch install of dependencies  *
*************************************
Thu Apr 25 13:17:23 CEST 2024
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 235 not upgraded.
Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 https://deb.nodesource.com/node_18.x nodistro InRelease
Get:5 http://security.debian.org/debian-security buster/updates/main Sources [376 kB]
Get:6 http://security.debian.org/debian-security buster/updates/main amd64 Packages [596 kB]
Fetched 1007 kB in 2s (611 kB/s)
Reading package lists...
*****************************
Install modules using apt-get
*****************************
rm: cannot remove 'env': No such file or directory
Reading package lists...
Building dependency tree...
Reading state information...
python3-venv is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 235 not upgraded.
*************************************
Install the required python libraries
*************************************
Cache entry deserialization failed, entry ignored
Collecting pip
Downloading https://files.pythonhosted.org/packages/8a/6a/19e9fe04fca059ccf770861c7d5721ab4c2aebc539889e97c7977528a53b/pip-24.0-py3-none-any.whl (2.1MB)
Installing collected packages: pip
Found existing installation: pip 18.1
Uninstalling pip-18.1:
Successfully uninstalled pip-18.1
Successfully installed pip-24.0
Collecting pyrainbird==2.1.1
Downloading pyrainbird-2.1.1-py3-none-any.whl.metadata (2.3 kB)
Collecting pycryptodome>=3.16.0 (from pyrainbird==2.1.1)
Downloading pycryptodome-3.20.0-cp35-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.4 kB)
Collecting requests>=2.22.0 (from pyrainbird==2.1.1)
Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Collecting PyYAML>=5.4 (from pyrainbird==2.1.1)
Downloading PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)
Collecting pydantic>=1.10.4 (from pyrainbird==2.1.1)
Downloading pydantic-2.5.3-py3-none-any.whl.metadata (65 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.6/65.6 kB 1.7 MB/s eta 0:00:00
Collecting python-dateutil>=2.8.2 (from pyrainbird==2.1.1)
Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
INFO: pip is looking at multiple versions of pyrainbird to determine which version is compatible with other requirements. This could take a while.
ERROR: Ignored the following versions that require a different python version: 0.0.1 Requires-Python >=3.9; 0.0.3 Requires-Python >=3.9; 0.0.4 Requires-Python >=3.9; 0.1.0 Requires-Python >=3.9; 0.2.0 Requires-Python >=3.9; 1.0.0 Requires-Python >=3.9; 1.1.0 Requires-Python >=3.9; 1.2.0 Requires-Python >=3.9; 2.0.0 Requires-Python >=3.9; 2.1.0 Requires-Python >=3.9; 2.6.0 Requires-Python >=3.8; 2.6.0b1 Requires-Python >=3.8; 2.6.1 Requires-Python >=3.8; 2.6.2 Requires-Python >=3.8; 2.6.3 Requires-Python >=3.8; 2.6.4 Requires-Python >=3.8; 2.7.0 Requires-Python >=3.8; 2.7.0b1 Requires-Python >=3.8; 2.7.1 Requires-Python >=3.8; 3.0.0 Requires-Python >=3.10; 3.0.0 Requires-Python >=3.9; 3.0.1 Requires-Python >=3.10; 3.0.1 Requires-Python >=3.9; 4.0.0 Requires-Python >=3.10; 4.0.0 Requires-Python >=3.9; 4.0.1 Requires-Python >=3.10; 4.0.1 Requires-Python >=3.9; 4.0.2 Requires-Python >=3.10; 4.1.0 Requires-Python >=3.9; 4.1.1 Requires-Python >=3.9; 4.1.2 Requires-Python >=3.9; 4.2.0 Requires-Python >=3.9; 4.2.1 Requires-Python >=3.9; 4.2.2 Requires-Python >=3.9; 4.2.3 Requires-Python >=3.9; 4.2.4 Requires-Python >=3.9; 4.2.5 Requires-Python >=3.9; 4.2.6 Requires-Python >=3.9; 4.2.7 Requires-Python >=3.9; 4.2.8 Requires-Python >=3.9; 4.2.9 Requires-Python >=3.9; 4.3.0 Requires-Python >=3.9; 4.4.0 Requires-Python >=3.9; 4.5.0 Requires-Python >=3.9; 4.5.1 Requires-Python >=3.9; 4.5.2 Requires-Python >=3.9; 4.5.4 Requires-Python >=3.9; 5.0.0 Requires-Python >=3.10; 5.0.1 Requires-Python >=3.10; 5.1.0 Requires-Python >=3.10; 5.1.1 Requires-Python >=3.10; 6.0.0 Requires-Python >=3.10; 6.1.0 Requires-Python >=3.10; 6.1.1 Requires-Python >=3.10; 7.0.0 Requires-Python >=3.10; 7.0.1 Requires-Python >=3.10; 7.0.2 Requires-Python >=3.10; 7.0.3 Requires-Python >=3.10; 8.0.0 Requires-Python >=3.10
ERROR: Could not find a version that satisfies the requirement ical>=4.2.9 (from pyrainbird) (from versions: none)
ERROR: No matching distribution found for ical>=4.2.9
Thu Apr 25 13:17:47 CEST 2024
***************************
*      Install ended      *
***************************

Log de la config du plugin, j’ai une erreur sur AIOHTTP alors que je l’ai .
pip list

package             Version
------------------- -------------
aiohttp             3.8.6
aiosignal           1.3.1
asn1crypto          0.24.0
async-timeout       4.0.3
asynctest           0.13.0
attrs               23.2.0
certifi             2022.9.24
chardet             3.0.4
charset-normalizer  2.1.1
cryptography        2.6.1
distro-info         0.21
entrypoints         0.3
fail2ban            0.10.2
frozenlist          1.3.3
httplib2            0.11.3
idna                3.4
importlib-metadata  6.7.0
iotop               0.6
keyring             17.1.1
keyrings.alt        3.1.1
multidict           6.0.5
oauthlib            3.2.2
olefile             0.46
pexpect             4.6.0
Pillow              5.4.1
pip                 22.3
pycrypto            2.6.1
pycurl              7.43.0.2
PyGObject           3.30.4
pyinotify           0.9.6
pymodbus            2.5.3
pyserial            3.5
PySimpleSOAP        1.16.2
python-apt          1.8.4.3
python-debian       0.1.35
python-debianbts    2.8.2
pyudev              0.24.0
pyxdg               0.25
reportbug           7.5.3-deb10u1
reportlab           3.5.13
requests            2.28.1
requests-oauthlib   1.3.1
SecretStorage       2.3.1
setuptools          65.5.0
six                 1.16.0
systemd-python      234
typing_extensions   4.7.1
unattended-upgrades 0.1
urllib3             1.26.12
websocket-client    1.4.2
wheel               0.32.3
yarl                1.9.4
zipp                3.15.0

[notice] A new release of pip available: 22.3 -> 24.0
[notice] To update, run: python3 -m pip install --upgrade pip

Si vous voyez d’où vient le problème !
merci d’avance

Ok presque fausse alerte,
Apres être retourné sur la stable et re-installés tout les dependances cela semble fonctionner.
J’ai donc fait
Stable +dependance ----> beta + install dependance + install aiohttp a la main --------> stable + dependance, et j’ai réussi a lancer le plugin.

Hello,

Je n’ai pas encore passé la beta en stable car j’ai fait une modification pour être sur un Debian 11 minimum pour l’utilisation du plugin d’où votre erreur d’après les logs sur la Beta car vous êtes sur un Debian 10

Sinon la liste pip list n’est pas la bonne :slight_smile: c’est celle du Python principal de votre box car sur le plugin j’utilise en environnement pour pas interférer avec d’autres plugins

Dans votre cas il faut rester sur la stable quand vous passerez sur un Debian 11 vous pourrez passer sur la Beta

A terme je vais passer le plugin de Beta en Stable j’attends un petit moment avant de le faire que la plupart des utilisateurs migrent sur le Debian 11

Cordialement

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