Comme annoncé, ce forum est passé en lecture seule au 1er janvier 2020. Désormais nous vous invitons à vous rendre sur notre nouvelle page communauté :
Image

A très bientôt !

Problèmes DCON (Résolu - Websocket)

Pour échanger sur les plugins classés en catégorie "Protocoles domotiques"
marcomomsen
Timide
Messages : 24
Inscription : 10 avr. 2019, 15:19

Problèmes DCON (Résolu - Websocket)

Message par marcomomsen » 06 août 2019, 15:35

Bonjour à tous,
J'ai un soucis avec le plugin DCON.

Voici ce que j'ai déja essayer:
- Je l'ai installer selon https://phoscon.de/en/conbee2/install#raspbian (Conbee 2)
- Installer les dépendences (2*)
- sudo pip install websocket

Code : Tout sélectionner

Traceback (most recent call last):
File "/var/www/html/plugins/deconz/resources/deconzd/deconzd.py", line 32, in <module>
from websocket import create_connection
ImportError: No module named 'websocket'
[2019-08-06 15:20:39][ERROR] : Impossible de lancer le démon deconz, vérifiez le port

Le "sudo pip install websocket" me donne une erruer lors de l'installation :

Code : Tout sélectionner

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting websocket
  Downloading https://files.pythonhosted.org/packages/f2/6d/a60d620ea575c885510c574909d2e3ed62129b121fa2df00ca1c81024c87/websocket-0.2.1.tar.gz (195kB)
    100% |████████████████████████████████| 204kB 2.3MB/s
Collecting gevent (from websocket)
  Downloading https://files.pythonhosted.org/packages/ed/27/6c49b70808f569b66ec7fac2e78f076e9b204db9cf5768740cff3d5a07ae/gevent-1.4.0.tar.gz (5.2MB)
    100% |████████████████████████████████| 5.2MB 1.1MB/s
Collecting greenlet (from websocket)
  Downloading https://files.pythonhosted.org/packages/f8/e8/b30ae23b45f69aa3f024b46064c0ac8e5fcb4f22ace0dca8d6f9c8bbe5e7/greenlet-0.4.15.tar.gz (59kB)
    100% |████████████████████████████████| 61kB 3.1MB/s
Building wheels for collected packages: websocket, gevent, greenlet
  Building wheel for websocket (setup.py) ... done
  Stored in directory: /root/.cache/pip/wheels/35/f7/5c/9e8243838269ea93f05295708519a6e183fa6b515d9ce3b636
  Building wheel for gevent (setup.py) ... done
  Stored in directory: /root/.cache/pip/wheels/35/a6/a0/c8441dbd28276aaff148c417279dee46f84936ba108cf32208
  Building wheel for greenlet (setup.py) ... done
  Stored in directory: /root/.cache/pip/wheels/cc/28/5a/2687513046a61b17dd78be058a43a069c271f5d7b7623f3dfd
Successfully built websocket gevent greenlet
Error checking for conflicts.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/commands/install.py", line 503, in _warn_about_conflicts
    package_set, _dep_info = check_install_conflicts(to_install)
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/operations/check.py", line 118, in check_install_conflicts
    package_set, should_ignore=lambda name: name not in whitelist
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/operations/check.py", line 84, in check_package_set
    missed = req.marker.evaluate()
  File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/packaging/markers.py", line 296, in evaluate
    return _evaluate_markers(self._markers, current_environment)
  File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/packaging/markers.py", line 221, in _evaluate_markers
    lhs_value = _get_env(environment, lhs.value)
  File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/packaging/markers.py", line 203, in _get_env
    "{0!r} does not exist in evaluation environment.".format(name)
UndefinedEnvironmentName: 'extra' does not exist in evaluation environment.
Dernière édition par marcomomsen le 06 août 2019, 15:42, édité 1 fois.

marcomomsen
Timide
Messages : 24
Inscription : 10 avr. 2019, 15:19

Re: Problèmes DCON

Message par marcomomsen » 06 août 2019, 15:42

Re-bonjour j'ai solutioner le problème que d'autres ont aussi rencontrer. Je crois que le script d'install de Jeedom doit juste être mis a jour pour solutioner le tout pour tout le monde. Voici comment faire:

Il faut d'abord faire un update de "PIP"

Code : Tout sélectionner

 sudo pip install --upgrade pip
Puis faire un install de websocket

Code : Tout sélectionner

sudo pip install websocket
Cela devrait donner ceci :

Code : Tout sélectionner

sudo pip install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pip
  Downloading https://files.pythonhosted.org/packages/62/ca/94d32a6516ed197a491d17d46595ce58a83cbb2fca280414e57cd86b84dc/pip-19.2.1-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 2.2MB/s
Installing collected packages: pip
  Found existing installation: pip 19.0.3
    Uninstalling pip-19.0.3:
      Successfully uninstalled pip-19.0.3
Successfully installed pip-19.2.1

et

Code : Tout sélectionner

sudo pip install websocket
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: websocket in /usr/local/lib/python2.7/dist-packages (0.2.1)
Requirement already satisfied: greenlet in /usr/local/lib/python2.7/dist-packages (from websocket) (0.4.15)
Requirement already satisfied: gevent in /usr/local/lib/python2.7/dist-packages (from websocket) (1.4.0)
Collecting psutil; platform_python_implementation == "CPython" or sys_platform != "win32" and extra == "test" (from gevent->websocket)
  Downloading https://files.pythonhosted.org/packages/1c/ca/5b8c1fe032a458c2c4bcbe509d1401dca9dda35c7fc46b36bb81c2834740/psutil-5.6.3.tar.gz (435kB)
     |████████████████████████████████| 440kB 1.7MB/s
Building wheels for collected packages: psutil
  Building wheel for psutil (setup.py) ... done
  Created wheel for psutil: filename=psutil-5.6.3-cp27-cp27mu-linux_armv7l.whl size=272252 sha256=688b66b3e6e45338ff387b58f8f4eb64576e1bde1d92ee5ce699013daceb0c2e
  Stored in directory: /root/.cache/pip/wheels/90/7e/74/bb640d77775e6b6a78bcc3120f9fea4d2a28b2706de1cff37d
Successfully built psutil
Installing collected packages: psutil
Successfully installed psutil-5.6.3

Répondre

Revenir vers « [Catégorie] Protocoles domotiques »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 8 invités