OBone-git / Cozytouch-domoticz

Python script for read/write data between the cozytouch server and domoticz on rpi
MIT License
17 stars 15 forks source link

Problème d’installation sous domoticz v2020.2 et raspbian buster #23

Closed diazovitch closed 2 years ago

diazovitch commented 3 years ago

Bonjour,

J’utilisais ce script sur mon ancienne installation. Mais sur la nouvelle équipée de domoticz v2020.2 et buster j’ai un message d’erreur :

File "cozytouch.py", line 9, in <module> import requests, shelve, json, time, unicodedata, os, sys, errno ImportError: No module named requests

Est ce lié à deux versions de python qui cohabitent ? J’ai pourtant envoyé cette commande avec ce résultat :

sudo pip install requests shelves Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: requests in /usr/lib/python3/dist-packages (2.21.0) Requirement already satisfied: shelves in /usr/local/lib/python3.7/dist-packages (0.3.8)

nicoolaj commented 3 years ago

Et avec la commande : sudo apt-get install python-requests ou encore avec la commande sudo python -m pip install requests

Cela devrait fonctionner