[Résolu][maj] bug lors de la mise à jours du plugin

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
pachti
Messages : 34
Inscription : 01 mai 2020, 16:12

[Résolu][maj] bug lors de la mise à jours du plugin

Message par pachti »

salut,
voici la conf:
Version de DomoticZ : 2022.2 (maj faite et tout était fonctionnel)
Système sur lequel tourne DomoticZ avec le plugin : linux debian 10
Modèle de coordinateur : ZiGate V2
Version de coordinateur : USB
Version du firmware : Zigate - 031f
Type de firmware : ...??? (ou trouver cette info)
Version du plugin ZigBeeforDomoticZ Version 6.1.004
Branche du plugin : stable6

j'ai essayé de mettre à jours via la maj classique , mais il se passait rien alors j'ai fait la maj du plug v6

et là, j'ai une erreur dans le log de domo:

Code : Tout sélectionner

2022-12-11 12:30:30.118 Status: Zigate: Initialized version 6.3, author 'pipiche38'
2022-12-11 12:30:30.121 Status: Zigate: Checking Python modules /home/Papouu/domoticz/plugins/Domoticz-Zigate/requirements.txt
2022-12-11 12:30:30.092 Error: PyDomoticz_Error, illegal operation, Plugin has not started yet.
2022-12-11 12:30:30.139 Error: Zigate: Looks like aiohttp python module is not installed. Make sure to install the required python3 module
2022-12-11 12:30:30.139 Error: Zigate: Use the command:
2022-12-11 12:30:30.139 Error: Zigate: sudo pip3 install -r requirements.txt
bête et discipliner le fais ce qu'il me dit, mais j'ai une erreur et la mes compétences s'arrêtent...

Code : Tout sélectionner

Installing build dependencies ... done
  Missing build requirements in pyproject.toml for multidict from https://files.pythonhosted.org/packages/b5/5b/1dd3b9cf73c474ea1d0f0b1f8b7b712b0f13817493fd93101256ec856b59/multidict-6.0.3.tar.gz#sha256=2523a29006c034687eccd3ee70093a697129a3ffe8732535d3b2df6a4ecc279d (from -r requirements.txt (line 13)).
  The project does not specify a build backend, and pip cannot fall back to setuptools without 'wheel'.
Collecting pure-pcapy3 (from -r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/82/09/37b4f0200cd8ad359c553ac87cd068fe7cebb24f00e59ee0f5218f14b389/pure-pcapy3-1.0.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'setuptools'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-bka7183m/pure-pcapy3/
une idée?

merci
Dernière modification par pachti le 20 déc. 2022, 00:11, modifié 1 fois.
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: [maj] bug lors de la mise à jours du plugin

Message par Keros »

C'est comme si Debian n'arrivait pas à trouver les packages demandés lors du sudo pip3 install -r requirements.txt

Tu peux essayer sudo pip3 install aiohttp et nous mettre le résultat.
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Deufo
Messages : 280
Inscription : 26 févr. 2019, 16:25

Re: [maj] bug lors de la mise à jours du plugin

Message par Deufo »

Perso, j'utilise wheel pour que l'installation récupère directement un module compilé.

Je dirais donc :

Code : Tout sélectionner

sudo pip3 install wheel
sudo pip3 install -r requirements.txt
pachti
Messages : 34
Inscription : 01 mai 2020, 16:12

Re: [maj] bug lors de la mise à jours du plugin

Message par pachti »

@Keros

Code : Tout sélectionner

Collecting aiohttp
  Using cached https://files.pythonhosted.org/packages/ff/4f/62d9859b7d4e6dc32feda67815c5f5ab4421e6909e48cbc970b6a40d60b7/aiohttp-3.8.3.tar.gz
  Installing build dependencies ... done
Collecting attrs>=17.3.0 (from aiohttp)
  Using cached https://files.pythonhosted.org/packages/f2/bc/d817287d1aa01878af07c19505fafd1165cd6a119e9d0821ca1d1c20312d/attrs-22.1.0-py2.py3-none-any.whl
Collecting charset-normalizer<3.0,>=2.0 (from aiohttp)
  Downloading https://files.pythonhosted.org/packages/db/51/a507c856293ab05cdc1db77ff4bc1268ddd39f29e7dc4919aa497f0adbec/charset_normalizer-2.1.1-py3-none-any.whl
Collecting multidict<7.0,>=4.5 (from aiohttp)
  Using cached https://files.pythonhosted.org/packages/b5/5b/1dd3b9cf73c474ea1d0f0b1f8b7b712b0f13817493fd93101256ec856b59/multidict-6.0.3.tar.gz
  Installing build dependencies ... done
  Missing build requirements in pyproject.toml for multidict<7.0,>=4.5 from https://files.pythonhosted.org/packages/b5/5b/1dd3b9cf73c474ea1d0f0b1f8b7b712b0f13817493fd93101256ec856b59/multidict-6.0.3.tar.gz#sha256=2523a29006c034687eccd3ee70093a697129a3ffe8732535d3b2df6a4ecc279d (from aiohttp).
  The project does not specify a build backend, and pip cannot fall back to setuptools without 'wheel'.
Collecting async_timeout<5.0,>=4.0.0a3 (from aiohttp)
  Using cached https://files.pythonhosted.org/packages/d6/c1/8991e7c5385b897b8c020cdaad718c5b087a6626d1d11a23e1ea87e325a7/async_timeout-4.0.2-py3-none-any.whl
Collecting yarl<2.0,>=1.0 (from aiohttp)
  Downloading https://files.pythonhosted.org/packages/c4/1e/1b204050c601d5cd82b45d5c8f439cb6f744a2ce0c0a6f83be0ddf0dc7b2/yarl-1.8.2.tar.gz (172kB)
    100% |████████████████████████████████| 174kB 5.4MB/s
  Installing build dependencies ... done
Collecting frozenlist>=1.1.1 (from aiohttp)
  Using cached https://files.pythonhosted.org/packages/b2/18/3b0eb2690b3bf4d340a221d0e76b6c5f4cac9d5dd37fb8c7b6ec25c2f510/frozenlist-1.3.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Collecting aiosignal>=1.1.2 (from aiohttp)
  Using cached https://files.pythonhosted.org/packages/76/ac/a7305707cb852b7e16ff80eaf5692309bde30e2b1100a1fcacdc8f731d97/aiosignal-1.3.1-py3-none-any.whl
Collecting asynctest==0.13.0 (from aiohttp)
  Downloading https://files.pythonhosted.org/packages/e8/b6/8d17e169d577ca7678b11cd0d3ceebb0a6089a7f4a2de4b945fe4b1c86db/asynctest-0.13.0-py3-none-any.whl
Collecting typing_extensions>=3.7.4 (from aiohttp)
  Downloading https://files.pythonhosted.org/packages/0b/8e/f1a0a5a76cfef77e1eb6004cb49e5f8d72634da638420b9ea492ce8305e8/typing_extensions-4.4.0-py3-none-any.whl
Requirement already satisfied: idna>=2.0 in /usr/lib/python3/dist-packages (from yarl<2.0,>=1.0->aiohttp) (2.6)
Building wheels for collected packages: aiohttp, multidict, yarl
  Running setup.py bdist_wheel for aiohttp ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-i7i_hx80/aiohttp/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-fqmn61pv --python-tag cp37:
  *********************
  * Accelerated build *
  *********************
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for aiohttp
  Running setup.py clean for aiohttp
  Running setup.py bdist_wheel for multidict ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-i7i_hx80/multidict/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-rxjchyyz --python-tag cp37:
  *********************
  * Accelerated build *
  *********************
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for multidict
  Running setup.py clean for multidict
  Running setup.py bdist_wheel for yarl ... done
  Stored in directory: /root/.cache/pip/wheels/59/9d/fc/c3828bc495d3ae87029dee8212ea52c3ca40471c16119d3bed
Successfully built yarl
Failed to build aiohttp multidict
Installing collected packages: attrs, charset-normalizer, multidict, typing-extensions, async-timeout, yarl, frozenlist, aiosignal, asynctest, aiohttp
  Running setup.py install for multidict ... done
  Running setup.py install for aiohttp ... done
Successfully installed aiohttp aiosignal-1.3.1 async-timeout-4.0.2 asynctest-0.13.0 attrs-22.1.0 charset-normalizer-2.1.1 frozenlist-1.3.3 multidict typing-extensions-4.4.0 yarl-1.8.2
@Deufo

comme dans mon message précédant j'ai effectivement un bug avec wheel, qui donne des "failed"
j'ai "sudo pip3 install wheel" ça regler je pense quelque problème mais j'ai toujours

Code : Tout sélectionner

Missing build requirements in pyproject.toml for multidict<7.0,>=4.5 from https://files.pythonhosted.org/packages/b5/5b/1dd3b9cf73c474ea1d0f0b1f8b7b712b0f13817493fd93101256ec856b59/multidict-6.0.3.tar.gz#sha256=2523a29006c034687eccd3ee70093a697129a3ffe8732535d3b2df6a4ecc279d (from aiohttp).
  The project does not specify a build backend, and pip cannot fall back to setuptools without 'wheel'.
Dernière modification par Keros le 11 déc. 2022, 16:20, modifié 1 fois.
Raison : Merci de regrouper les réponses dans un message
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: [maj] bug lors de la mise à jours du plugin

Message par pipiche »

bizarre, j'avais répondu en début d'après midi mais je ne vois pas le message

cela devrait régler ton problème initial

Code : Tout sélectionner

sudo apt-get install python3-setuptools
ensuite tu dois pouvoir faire
le

Code : Tout sélectionner

sudo pyton3 -m pip install -r requirements.txt
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: [maj] bug lors de la mise à jours du plugin

Message par Keros »

@pipiche, il a ouvert un autre sujet ;)
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
pachti
Messages : 34
Inscription : 01 mai 2020, 16:12

Re: [maj] bug lors de la mise à jours du plugin

Message par pachti »

@ pipiche

effectivement, vu que c'est un autre pb j'ai ouvert un autre post
l'installation de python3-setuptools ne pose pas de pb

mais ... l'autre pose toujours un problème

Code : Tout sélectionner

Papouu@omv:~/domoticz/plugins/Domoticz-Zigate$ sudo python3 -m pip install -r requirements.txt
Ignoring pyserial-asyncio: markers 'platform_system == "Windows"' don't match your environment
Requirement already satisfied: aiohttp in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 1)) (3.8.3)
Requirement already satisfied: aiosignal in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 2)) (1.3.1)
Collecting aiosqlite>=0.16.0 (from -r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/a0/48/77c0092f716c4bf9460dca44f5120f70b8f71f14a12f40d22551a7152719/aiosqlite-0.17.0-py3-none-any.whl
Requirement already satisfied: async-timeout in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 4)) (4.0.2)
Requirement already satisfied: attrs in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 5)) (22.1.0)
Requirement already satisfied: click in /usr/lib/python3/dist-packages (from -r requirements.txt (line 6)) (7.0)
Collecting click-log>=0.2.1 (from -r requirements.txt (line 7))
  Using cached https://files.pythonhosted.org/packages/ae/5a/4f025bc751087833686892e17e7564828e409c43b632878afeae554870cd/click_log-0.4.0-py2.py3-none-any.whl
Collecting crccheck (from -r requirements.txt (line 8))
  Using cached https://files.pythonhosted.org/packages/f4/2f/93f71642e177f0a1d1f392421e314056a2635ca3524b3c57b005cdd995bd/crccheck-1.3.0-py3-none-any.whl
Collecting coloredlogs (from -r requirements.txt (line 9))
  Using cached https://files.pythonhosted.org/packages/a7/06/3d6badcf13db419e25b07041d9c7b4a2c331d3f4e7134445ec5df57714cd/coloredlogs-15.0.1-py2.py3-none-any.whl
Collecting jsonschema (from -r requirements.txt (line 10))
  Using cached https://files.pythonhosted.org/packages/c1/97/c698bd9350f307daad79dd740806e1a59becd693bd11443a0f531e3229b3/jsonschema-4.17.3-py3-none-any.whl
Requirement already satisfied: frozenlist in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 12)) (1.3.3)
Requirement already satisfied: multidict in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 13)) (6.0.3)
Collecting pure-pcapy3 (from -r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/82/09/37b4f0200cd8ad359c553ac87cd068fe7cebb24f00e59ee0f5218f14b389/pure-pcapy3-1.0.1.tar.gz
Collecting pyserial>=3.5 (from -r requirements.txt (line 15))
  Using cached https://files.pythonhosted.org/packages/07/bc/587a445451b253b285629263eb51c2d8e9bcea4fc97826266d186f96f558/pyserial-3.5-py2.py3-none-any.whl
Collecting pyserial-asyncio (from -r requirements.txt (line 16))
  Using cached https://files.pythonhosted.org/packages/27/24/c820cf15f87f7b164e83710c1852d4f900d9793961579e5ef64189bc0c10/pyserial_asyncio-0.6-py3-none-any.whl
Collecting pyusb>=1.2.1 (from -r requirements.txt (line 18))
  Using cached https://files.pythonhosted.org/packages/15/a8/4982498b2ab44d1fcd5c49f07ea3795eab01601dc143b009d333fcace3b9/pyusb-1.2.1-py3-none-any.whl
Requirement already satisfied: typing-extensions in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 19)) (4.4.0)
Collecting voluptuous (from -r requirements.txt (line 20))
  Downloading https://files.pythonhosted.org/packages/a7/68/927add5dfd55a0d666ffc8939ff4390b76ca3ffbc36c12369f9a034393cb/voluptuous-0.13.1-py3-none-any.whl
Requirement already satisfied: yarl in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 21)) (1.8.2)
Collecting cryptography (from -r requirements.txt (line 22))
  Downloading https://files.pythonhosted.org/packages/e3/3f/41186b1f2fd86a542d399175f6b8e43f82cd4dfa51235a0b030a042b811a/cryptography-38.0.4.tar.gz (599kB)
    100% |████████████████████████████████| 604kB 1.8MB/s
  Installing build dependencies ... error
  Complete output from command /usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-9rvwc_l7 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0,!=60.9.0 wheel "cffi>=1.12; platform_python_implementation != 'PyPy'" setuptools-rust>=0.11.4:
  Collecting setuptools!=60.9.0,>=40.6.0
    Using cached https://files.pythonhosted.org/packages/ef/e3/29d6e1a07e8d90ace4a522d9689d03e833b67b50d1588e693eec15f26251/setuptools-65.6.3-py3-none-any.whl
  Collecting wheel
    Using cached https://files.pythonhosted.org/packages/bd/7c/d38a0b30ce22fc26ed7dbc087c6d00851fb3395e9d0dac40bec1f905030c/wheel-0.38.4-py3-none-any.whl
  Collecting cffi>=1.12
    Downloading https://files.pythonhosted.org/packages/2b/a8/050ab4f0c3d4c1b8aaa805f70e26e84d0e27004907c5b8ecc1d31815f92a/cffi-1.15.1.tar.gz (508kB)
  Collecting setuptools-rust>=0.11.4
    Downloading https://files.pythonhosted.org/packages/ef/da/dca8f90986325abe3027a5e3af5e12ce1d78eeb664a11971b2e7e703b9e3/setuptools_rust-1.5.2-py3-none-any.whl
  Collecting pycparser (from cffi>=1.12)
    Downloading https://files.pythonhosted.org/packages/62/d5/5f610ebe421e85889f2e55e33b7f9a6795bd982198517d912eb1c76e1a53/pycparser-2.21-py2.py3-none-any.whl (118kB)
  Collecting typing-extensions>=3.7.4.3 (from setuptools-rust>=0.11.4)
    Using cached https://files.pythonhosted.org/packages/0b/8e/f1a0a5a76cfef77e1eb6004cb49e5f8d72634da638420b9ea492ce8305e8/typing_extensions-4.4.0-py3-none-any.whl
  Collecting semantic-version<3,>=2.8.2 (from setuptools-rust>=0.11.4)
    Downloading https://files.pythonhosted.org/packages/6a/23/8146aad7d88f4fcb3a6218f41a60f6c2d4e3a72de72da1825dc7c8f7877c/semantic_version-2.10.0-py2.py3-none-any.whl
  Building wheels for collected packages: cffi
    Running setup.py bdist_wheel for cffi: started
    Running setup.py bdist_wheel for cffi: finished with status 'error'
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-bft1pj2d/cffi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-y5wst_4x --python-tag cp37:
    running bdist_wheel
    running build
    running build_py
    Generating grammar tables from /usr/lib/python3.7/lib2to3/Grammar.txt
    Generating grammar tables from /usr/lib/python3.7/lib2to3/PatternGrammar.txt
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/cffi
    copying cffi/verifier.py -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/recompiler.py -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/model.py -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/lock.py -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/error.py -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/cparser.py -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/commontypes.py -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/api.py -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/__init__.py -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/_embedding.h -> build/lib.linux-x86_64-3.7/cffi
    copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.7/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/c
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.7/c/_cffi_backend.o
    c/_cffi_backend.c:15:10: fatal error: ffi.h: Aucun fichier ou dossier de ce type
     #include <ffi.h>
              ^~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
    Failed building wheel for cffi
    Running setup.py clean for cffi
  Failed to build cffi
  Installing collected packages: setuptools, wheel, pycparser, cffi, typing-extensions, semantic-version, setuptools-rust
    Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-bft1pj2d/cffi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-0cowuqzb/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-9rvwc_l7 --compile:
      running install
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.7
      creating build/lib.linux-x86_64-3.7/cffi
      copying cffi/verifier.py -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/recompiler.py -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/model.py -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/lock.py -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/error.py -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/cparser.py -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/commontypes.py -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/api.py -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/__init__.py -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/_embedding.h -> build/lib.linux-x86_64-3.7/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.7/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-x86_64-3.7
      creating build/temp.linux-x86_64-3.7/c
      x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.7/c/_cffi_backend.o
      c/_cffi_backend.c:15:10: fatal error: ffi.h: Aucun fichier ou dossier de ce type
       #include <ffi.h>
                ^~~~~~~
      compilation terminated.
      error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

      ----------------------------------------
  Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-bft1pj2d/cffi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-0cowuqzb/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-9rvwc_l7 --compile" failed with error code 1 in /tmp/pip-install-bft1pj2d/cffi/

  ----------------------------------------
Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-9rvwc_l7 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0,!=60.9.0 wheel "cffi>=1.12; platform_python_implementation != 'PyPy'" setuptools-rust>=0.11.4" failed with error code 1 in None
je repère toujours deux fois la ligne

Code : Tout sélectionner

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
et à la fin en rouge:

Code : Tout sélectionner

Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-9rvwc_l7 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0,!=60.9.0 wheel "cffi>=1.12; platform_python_implementation != 'PyPy'" setuptools-rust>=0.11.4" failed with error code 1 in None
Deufo
Messages : 280
Inscription : 26 févr. 2019, 16:25

Re: [maj] bug lors de la mise à jours du plugin

Message par Deufo »

Petite question, python3-dev est bien présent ?

apt list --installed | grep python


edit : sur certaines installations, c'est libffi-dev le fautif.
pachti
Messages : 34
Inscription : 01 mai 2020, 16:12

Re: [maj] bug lors de la mise à jours du plugin

Message par pachti »

yes il l'est

Code : Tout sélectionner

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

dh-python/oldstable,now 3.20190308 all  [installé, automatique]
libpython-stdlib/oldstable,now 2.7.16-1 amd64  [installé, automatique]
libpython2-stdlib/oldstable,now 2.7.16-1 amd64  [installé, automatique]
libpython2.7-minimal/oldstable,now 2.7.16-2+deb10u1 amd64  [installé, automatique]
libpython2.7-stdlib/oldstable,now 2.7.16-2+deb10u1 amd64  [installé, automatique]
libpython2.7/oldstable,now 2.7.16-2+deb10u1 amd64  [installé, automatique]
libpython3-dev/oldstable,now 3.7.3-1 amd64  [installé, automatique]
libpython3-stdlib/oldstable,now 3.7.3-1 amd64  [installé, automatique]
libpython3.7-dev/oldstable,now 3.7.3-2+deb10u4 amd64  [installé, automatique]
libpython3.7-minimal/oldstable,now 3.7.3-2+deb10u4 amd64  [installé, automatique]
libpython3.7-stdlib/oldstable,now 3.7.3-2+deb10u4 amd64  [installé, automatique]
libpython3.7/oldstable,now 3.7.3-2+deb10u4 amd64  [installé, automatique]
python-apt-common/oldstable,oldstable,now 1.8.4.3 all  [installé, automatique]
python-crypto/oldstable,now 2.6.1-9+b1 amd64  [installé, automatique]
python-dnspython/oldstable,now 1.16.0-1+deb10u1 all  [installé, automatique]
python-ldb/oldstable,oldstable,now 2:1.5.1+really1.4.6-3+deb10u1 amd64  [installé, automatique]
python-minimal/oldstable,now 2.7.16-1 amd64  [installé, automatique]
python-pip-whl/oldstable,now 18.1-5 all  [installé, automatique]
python-pkg-resources/oldstable,now 40.8.0-1 all  [installé, automatique]
python-samba/oldstable,oldstable,now 2:4.9.5+dfsg-5+deb10u3 amd64  [installé, automatique]
python-talloc/oldstable,now 2.1.14-2 amd64  [installé, automatique]
python-tdb/oldstable,now 1.3.16-2+b1 amd64  [installé, automatique]
python2-minimal/oldstable,now 2.7.16-1 amd64  [installé, automatique]
python2.7-minimal/oldstable,now 2.7.16-2+deb10u1 amd64  [installé, automatique]
python2.7/oldstable,now 2.7.16-2+deb10u1 amd64  [installé, automatique]
python2/oldstable,now 2.7.16-1 amd64  [installé, automatique]
python3-apt/oldstable,oldstable,now 1.8.4.3 amd64  [installé, automatique]
python3-cached-property/oldstable,now 1.5.1-3 all  [installé, automatique]
python3-certifi/oldstable,now 2018.8.24-1 all  [installé, automatique]
python3-chardet/oldstable,now 3.0.4-3 all  [installé, automatique]
python3-click/oldstable,now 7.0-1 all  [installé, automatique]
python3-colorama/oldstable,now 0.3.7-1 all  [installé, automatique]
python3-dateutil/oldstable,now 2.7.3-3 all  [installé, automatique]
python3-dbus/oldstable,now 1.2.8-3 amd64  [installé, automatique]
python3-dev/oldstable,now 3.7.3-1 amd64  [installé]
python3-dialog/oldstable,now 3.4.0-1 all  [installé, automatique]
python3-distro/oldstable,now 1.3.0-1 all  [installé, automatique]
python3-distutils/oldstable,now 3.7.3-1 all  [installé, automatique]
python3-idna/oldstable,now 2.6-1 all  [installé, automatique]
python3-jinja2/oldstable,now 2.10-2 all  [installé, automatique]
python3-lib2to3/oldstable,now 3.7.3-1 all  [installé, automatique]
python3-lxml/oldstable,oldstable,now 4.3.2-1+deb10u4 amd64  [installé, automatique]
python3-markupsafe/oldstable,now 1.1.0-1 amd64  [installé, automatique]
python3-minimal/oldstable,now 3.7.3-1 amd64  [installé, automatique]
python3-msgpack/oldstable,now 0.5.6-1+b1 amd64  [installé, automatique]
python3-natsort/oldstable,now 6.0.0-1 all  [installé, automatique]
python3-netifaces/oldstable,now 0.10.4-1+b1 amd64  [installé, automatique]
python3-pip/oldstable,now 18.1-5 all  [installé]
python3-pkg-resources/oldstable,now 40.8.0-1 all  [installé, automatique]
python3-psutil/oldstable,now 5.5.1-1 amd64  [installé, automatique]
python3-pycryptodome/oldstable,now 3.6.1-2+b1 amd64  [installé, automatique]
python3-pyudev/oldstable,now 0.21.0-1 all  [installé, automatique]
python3-requests/oldstable,now 2.21.0-1 all  [installé, automatique]
python3-setuptools/oldstable,now 40.8.0-1 all  [installé]
python3-six/oldstable,now 1.12.0-1 all  [installé, automatique]
python3-systemd/oldstable,now 234-2+b1 amd64  [installé, automatique]
python3-urllib3/oldstable,now 1.24.1-1 all  [installé, automatique]
python3-yaml/oldstable,now 3.13-2 amd64  [installé, automatique]
python3-zmq/oldstable,now 17.1.2-2+deb10u1 amd64  [installé, automatique]
python3.7-dev/oldstable,now 3.7.3-2+deb10u4 amd64  [installé, automatique]
python3.7-minimal/oldstable,now 3.7.3-2+deb10u4 amd64  [installé, automatique]
python3.7/oldstable,now 3.7.3-2+deb10u4 amd64  [installé, automatique]
python3/oldstable,now 3.7.3-1 amd64  [installé]
python/oldstable,now 2.7.16-1 amd64  [installé, automatique]

pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: [maj] bug lors de la mise à jours du plugin

Message par pipiche »

salut,

as-tu pu avancé ?

peux-tu faire les commandes suivantes

Code : Tout sélectionner

sudo python3 -m pip install wheel --upgrade
sudo python3 -m pip install pip --upgrade
sudo python3 -m pip install -r requirements.txt --upgrade
Cela peut etre long, très long notamment sur le module cryptography
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
Répondre