[Plugin Xiaomi Home] Error: importing module from jeedom folder bis

Bonjour,

je n’arrive pas à installer ce plug in.
J’ai appliqué tout ce que j’ai pu trouver sur le forum mais rien n’y fait.
Voici l’erreur que je recois dans mon log.

[2020-05-03 02:35:03][ERROR] : Attention je pense qu’il y a un soucis avec le démon que j’ai relancé plus de 3 fois consécutivement
[2020-05-03 02:35:03][INFO] : Lancement démon xiaomihome : /usr/bin/python /var/www/html/plugins/xiaomihome/resources/xiaomihomed/xiaomihomed.py --loglevel debug --socketport 55019 --callback http://127.0.0.1:80/plugins/xiaomihome/core/php/jeeXiaomiHome.php --apikey ------------------------- --cycle 0.05 --pid /tmp/jeedom/xiaomihome/deamon.pid
Error: importing module from jeedom folder

Pouvez vous m’aider?

Merci.

Bonjour,

Comme pour toute demande un peu plus d’infos complémentaire serait utile!

Quelle version de jeedom, type de matériel, version d’OS ?
Un log en mode DEBUG

Sans cela tu risque de ne pas avoir beaucoup d’aide.

PS: La prochaine fois essai de tagger correctement ton sujet pour avoir plus de chance d’être vu.

Bonjour

merci de ta réponse,je ferais plus attention la prochaine fois…

Je suis sous la dernière version de Jeedom avec le pack Power.
Le materiel ,c’est une VM sur la Freebox delta,pour l’OS,je regarde ce soir.
Ce que j’ai mis,c’est le log en mode Debug.

Je suis sur l’os 4.0.52.
Merci.

Ça c’est la version de jeedom :wink:

Le log du démon aiderait plus je pense, ainsi que le log des dépendances.
Et peux tu expliquer ce que tu as trouvé et fait donc ?

Faudrait vérifier les versions de python installées déjà, Je ne sais pas te mettre les commandes cet sur téléphone mais il y a d’autres sujets qui en parlent.

Et aussi fait attention de ne pas copier les clés api sur le forum

Merci.J’ai rectifié pour l’API.

Voici le second log.


  •         Installation des dépendances             *
    

j’ai essayé cette ligne de commande
python -m pip install future
Hit:1 Index of /debian buster InRelease
Get:2 Index of /debian buster-updates InRelease [49.3 kB]
Get:3 Index of /debian buster-backports InRelease [46.7 kB]
Get:4 http://security.debian.org buster/updates InRelease [65.4 kB]
Hit:5 Index of /node_12.x/ buster InRelease
Get:6 Index of /debian buster-backports/main Sources.diff/Index [27.8 kB]
Get:7 Index of /debian buster-backports/main arm64 Packages.diff/Index [27.8 kB]
Get:8 Index of /debian buster-backports/main Translation-en.diff/Index [27.8 kB]
Get:9 Index of /debian buster-backports/main Sources 2020-05-05-0801.56.pdiff [16.5 kB]
Get:10 Index of /debian buster-backports/main arm64 Packages 2020-05-05-0801.56.pdiff [6083 B]
Get:9 Index of /debian buster-backports/main Sources 2020-05-05-0801.56.pdiff [16.5 kB]
Get:11 Index of /debian buster-backports/main Translation-en 2020-05-05-0801.56.pdiff [10.7 kB]
Get:10 Index of /debian buster-backports/main arm64 Packages 2020-05-05-0801.56.pdiff [6083 B]
Get:11 Index of /debian buster-backports/main Translation-en 2020-05-05-0801.56.pdiff [10.7 kB]
Fetched 278 kB in 3s (90.4 kB/s)
Reading package lists…
Reading package lists…
Building dependency tree…
Reading state information…
libffi-dev is already the newest version (3.2.1-9).
python-cryptography is already the newest version (2.6.1-3+deb10u2).
python-dev is already the newest version (2.7.16-1).
python-pip is already the newest version (18.1-5).
libssl-dev is already the newest version (1.1.1d-0+deb10u3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Processing /root/.cache/pip/wheels/b2/86/0f/79928cc4aef1773579f651545d9ff929525cb33b594021379c/construct-2.10.56-py3-none-any.whl
Installing collected packages: construct
Successfully installed construct-2.10.56
Processing /root/.cache/pip/wheels/79/a1/eb/5ba8285641fb38a04ede056341c3dc556b9c32cb24650b15ab/pyudev-0.22.0-py3-none-any.whl
Collecting six
Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Installing collected packages: six, pyudev
Successfully installed pyudev-0.22.0 six-1.14.0
Collecting requests
Using cached requests-2.23.0-py2.py3-none-any.whl (58 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2020.4.5.1-py2.py3-none-any.whl (157 kB)
Collecting chardet<4,>=3.0.2
Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
Using cached urllib3-1.25.9-py2.py3-none-any.whl (126 kB)
Collecting idna<3,>=2.5
Using cached idna-2.9-py2.py3-none-any.whl (58 kB)
Installing collected packages: certifi, chardet, urllib3, idna, requests
Successfully installed certifi-2020.4.5.1 chardet-3.0.4 idna-2.9 requests-2.23.0 urllib3-1.25.9
Collecting pyserial
Using cached pyserial-3.4-py2.py3-none-any.whl (193 kB)
Installing collected packages: pyserial
Successfully installed pyserial-3.4
Processing /root/.cache/pip/wheels/56/b0/fe/4410d17b32f1f0c3cf54cdfb2bc04d7b4b8f4ae377e2229ba0/future-0.18.2-py3-none-any.whl
Installing collected packages: future
Successfully installed future-0.18.2
Processing /root/.cache/pip/wheels/cf/85/ba/bbd7c96add459de7598fb424e5ff2309baf2095c844ac0f191/pycrypto-2.6.1-cp37-cp37m-linux_aarch64.whl
Installing collected packages: pycrypto
Successfully installed pycrypto-2.6.1
Collecting enum34
Using cached enum34-1.1.10-py3-none-any.whl (11 kB)
Installing collected packages: enum34
Successfully installed enum34-1.1.10
Collecting enum-compat
Using cached enum_compat-0.0.3-py3-none-any.whl (1.3 kB)
Installing collected packages: enum-compat
Successfully installed enum-compat-0.0.3
Collecting wheel
Using cached wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Installing collected packages: wheel
Successfully installed wheel-0.34.2


  •         Installation terminée                    *
    

Merci de ton aide

Bonjour , je rencontre le meme probleme depuis la mise a jour de python en 3.7 et mise a jour du PIP

LOG PLUGGING

SyntaxError: Missing parentheses in call to ‹ print ›. Did you mean print(« Error: importing module from jeedom folder »)?
[2020-05-05 13:50:56][ERROR] : Impossible de lancer le démon xiaomihomed. Vérifiez le log.
File « /var/www/html/plugins/xiaomihome/resources/xiaomihomed/xiaomihomed.py », line 35
print « Error: importing module from jeedom folder »

LOG DEPENDANCE

  •         Installation des dépendances             *
    

Ign:1 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch InRelease
Ign:2 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch Release
Hit:3 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main amd64 Packages
Ign:4 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main all Packages
Hit:5 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main Translation-en
Hit:6 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main Translation-fr
Ign:4 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main all Packages
Ign:4 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main all Packages
Ign:4 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main all Packages
Ign:4 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main all Packages
Ign:3 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main amd64 Packages
Ign:4 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main all Packages
Hit:3 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main amd64 Packages
Ign:5 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main Translation-en
Hit:5 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main Translation-en
Ign:6 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main Translation-fr
Hit:6 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main Translation-fr
Ign:3 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main amd64 Packages
Hit:3 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main amd64 Packages
Ign:5 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main Translation-en
Hit:5 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main Translation-en
Ign:6 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main Translation-fr
Hit:6 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main Translation-fr
Ign:3 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main amd64 Packages
Hit:3 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main amd64 Packages
Ign:5 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main Translation-en
Hit:5 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main Translation-en
Ign:6 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main Translation-fr
Hit:6 cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch/main Translation-fr
Hit:7 http://phoscon.de/apt/deconz stretch InRelease
Ign:8 Index of /debian stretch InRelease
Hit:9 Index of /debian stretch Release
Hit:11 Index of /node_12.x/ stretch InRelease
Reading package lists…
W: The repository ‹ cdrom://[Debian GNU/Linux 9.8.0 Stretch - Official amd64 xfce-CD Binary-1 20190216-11:59] stretch Release › does not have a Release file.
Reading package lists…
Building dependency tree…
Reading state information…
libffi-dev is already the newest version (3.2.1-6).
libssl-dev is already the newest version (1.1.0l-1~deb9u1).
python-cryptography is already the newest version (1.7.1-3+deb9u2).
python-dev is already the newest version (2.7.13-2).
python-pip is already the newest version (9.0.1-2+deb9u1).
The following packages were automatically installed and are no longer required:
python-blinker python-jwt python-lockfile python-oauthlib python-paramiko
Use ‹ sudo apt autoremove › to remove them.
0 upgraded, 0 newly installed, 0 to remove and 101 not upgraded.
Collecting construct
Using cached construct-2.10.56.tar.gz (54 kB)
Building wheels for collected packages: construct
Building wheel for construct (setup.py): started
Building wheel for construct (setup.py): finished with status ‹ done ›
Created wheel for construct: filename=construct-2.10.56-py3-none-any.whl size=56877 sha256=8d247baead5b1a89547a868b04bb80dd368cce891e504e0bc9e61194473f1fb0
Stored in directory: /root/.cache/pip/wheels/b2/86/0f/79928cc4aef1773579f651545d9ff929525cb33b594021379c
Successfully built construct
Installing collected packages: construct
Successfully installed construct-2.10.56
Collecting pyudev
Using cached pyudev-0.22.0.tar.gz (85 kB)
Collecting six
Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Building wheels for collected packages: pyudev
Building wheel for pyudev (setup.py): started
Building wheel for pyudev (setup.py): finished with status ‹ done ›
Created wheel for pyudev: filename=pyudev-0.22.0-py3-none-any.whl size=63469 sha256=05557ec6ecb63a858ad7ad57e1b467de59877bbc7aa2e1baeb20a9f8f88b50ca
Stored in directory: /root/.cache/pip/wheels/79/a1/eb/5ba8285641fb38a04ede056341c3dc556b9c32cb24650b15ab
Successfully built pyudev
Installing collected packages: six, pyudev
Successfully installed pyudev-0.22.0 six-1.14.0
Collecting requests
Using cached requests-2.23.0-py2.py3-none-any.whl (58 kB)
Collecting chardet<4,>=3.0.2
Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2020.4.5.1-py2.py3-none-any.whl (157 kB)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
Using cached urllib3-1.25.9-py2.py3-none-any.whl (126 kB)
Collecting idna<3,>=2.5
Using cached idna-2.9-py2.py3-none-any.whl (58 kB)
Installing collected packages: chardet, certifi, urllib3, idna, requests
Successfully installed certifi-2020.4.5.1 chardet-3.0.4 idna-2.9 requests-2.23.0 urllib3-1.25.9
Collecting pyserial
Using cached pyserial-3.4-py2.py3-none-any.whl (193 kB)
Installing collected packages: pyserial
Successfully installed pyserial-3.4
Collecting future
Using cached future-0.18.2.tar.gz (829 kB)
Building wheels for collected packages: future
Building wheel for future (setup.py): started
Building wheel for future (setup.py): finished with status ‹ done ›
Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491058 sha256=2554ea522baaac0853d8411b40e911701a8bd10e334474b5b6c7279c2de54103
Stored in directory: /root/.cache/pip/wheels/56/b0/fe/4410d17b32f1f0c3cf54cdfb2bc04d7b4b8f4ae377e2229ba0
Successfully built future
Installing collected packages: future
Successfully installed future-0.18.2
Collecting pycrypto
Using cached pycrypto-2.6.1.tar.gz (446 kB)
Building wheels for collected packages: pycrypto
Building wheel for pycrypto (setup.py): started
Building wheel for pycrypto (setup.py): finished with status ‹ done ›
Created wheel for pycrypto: filename=pycrypto-2.6.1-cp37-cp37m-linux_x86_64.whl size=499633 sha256=ec80a0768ffae9618d2bfcf923f19d98e9fb149f0904c96c901d7b539826a02b
Stored in directory: /root/.cache/pip/wheels/cf/85/ba/bbd7c96add459de7598fb424e5ff2309baf2095c844ac0f191
Successfully built pycrypto
Installing collected packages: pycrypto
Successfully installed pycrypto-2.6.1
Collecting enum34
Using cached enum34-1.1.10-py3-none-any.whl (11 kB)
Installing collected packages: enum34
Successfully installed enum34-1.1.10
Collecting enum-compat
Using cached enum_compat-0.0.3-py3-none-any.whl (1.3 kB)
Installing collected packages: enum-compat
Successfully installed enum-compat-0.0.3
Collecting wheel
Using cached wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Installing collected packages: wheel
Successfully installed wheel-0.34.2


  •         Installation terminée                    *

Et pourquoi as-tu fait cela?

il ne faut pas changer le lien entre python et python2, python DOIT appeler python2.

@AIRVMX également, j’ai demandé ce qui avait été fait précédement, tu as dis avoir appliqué tout ce que tu avais trouvé sur le forum, de quoi parles-tu?
et pour @Sebastien_Horville, tu peux donc aussi vérifier la version de python

python --version
pip --version

c’est deux commandes doivent retourner la version 2.7

MOI SA RETOURNE CECI

python 3.7
PIP 20.1

Du coup comment regler le probleme svp

et la fin de la ligne concernant pip?

pip --version
pip 20.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)

python --version
python 3.7.3

En cherchant le forum, vous allez trouver plusieurs post qui parle de ce problème de python
par exemple:
https://community.jeedom.com/t/probleme-installation-dependances/20877/34

j ai reussi a repasser sur python 2.7 avec cette commande

update-alternatives --config python

tuto :

probleme resolu meme apres reboot

bye

voila ce que j’avaias trouvé à essayer.
lancer cette commande
sudo apt-get install python-pip python-dev python-pyudev python-setuptools python-serial

Voilà ce qu’il me repond.

python-requests
Reading package lists…
Building dependency tree…
Reading state information…
python-serial is already the newest version (3.4-4).
python-dev is already the newest version (2.7.16-1).
python-pip is already the newest version (18.1-5).
python-setuptools is already the newest version (40.8.0-1).
python-requests is already the newest version (2.21.0-1).
Suggested packages:
python-gobject python-qt4 python-pyside.qtcore
The following NEW packages will be installed:
python-pyudev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 40.2 kB of archives.
After this operation, 221 kB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.

Et donc, les versions de python? ca fait jamais que le 3eme post ou je demande cela

Python 2.7.16

pip 20.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

Après avoir essayé la manip de sebastien ca marche chez moi aussi.

Merci.