You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File ".//linky_json.py", line 25, in
import linky
File "/var/www/html/plugins/script/core/ressources/linky/linky.py", line 25, in
import requests
ImportError: No module named 'requests'
Autre erreur :
ImportError: No module named 'requests'
Traceback (most recent call last):
File ".//linky_json.py", line 26, in
from dateutil.relativedelta import relativedelta
ImportError: No module named dateutil.relativedelta
Egalement, j'ai vu que mon Jeedom installé sur Debian 9.3 est sur Python2.7, or tu exécute ton script en python3 par défaut.
The text was updated successfully, but these errors were encountered:
le package html est propre à python 3
pour python 2.7 on peut le remplacer par HTMLParser et modifier comme suit:
if res['etat'] and res['etat']['valeur'] == 'erreur' and res['etat']['erreurText']:
raise LinkyServiceException(HTMLParser.HTMLParser().unescape(res['etat']['erreurText']))
Salut !
Petite erreur avec ton script malheureusement :
Traceback (most recent call last):
File ".//linky_json.py", line 25, in
import linky
File "/var/www/html/plugins/script/core/ressources/linky/linky.py", line 25, in
import requests
ImportError: No module named 'requests'
Autre erreur :
ImportError: No module named 'requests'
Traceback (most recent call last):
File ".//linky_json.py", line 26, in
from dateutil.relativedelta import relativedelta
ImportError: No module named dateutil.relativedelta
Egalement, j'ai vu que mon Jeedom installé sur Debian 9.3 est sur Python2.7, or tu exécute ton script en python3 par défaut.
The text was updated successfully, but these errors were encountered: