Debian 12 - pb d'installation de la dépendance wheel

Bonjour,

Je viens de passer mon Jeedom en Debian 12 bookworm et j’ai remarqué une petite difficulté avec le plugin KLF 200. Il fonctionne bien, mais réinstaller les dépendances me génère une erreur « Getting requirements to build wheel did not run successfully. »

Voici le log klf200_dep :

********************************************************
11/01/2025 22:09:08 Installation des dépendances
********************************************************
Hit:1 https://deb.nodesource.com/node_20.x nodistro InRelease
Hit:2 http://archive.raspberrypi.com/debian bookworm InRelease
Hit:3 http://deb.debian.org/debian bookworm InRelease
Hit:4 http://deb.debian.org/debian-security bookworm-security InRelease
Get:5 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Fetched 55.4 kB in 1s (69.0 kB/s)
Reading package lists...
Installation des dépendances apt
Reading package lists...
Building dependency tree...
Reading state information...
python3-venv is already the newest version (3.11.2-1+b1).
python3-dev is already the newest version (3.11.2-1+b1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
WARNING: The directory '/var/www/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pyvlx in /var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages (0.2.26)
Requirement already satisfied: PyYAML in /var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages (from pyvlx) (6.0.2)
Requirement already satisfied: zeroconf in /var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages (from pyvlx) (0.139.0)
Requirement already satisfied: ifaddr>=0.1.7 in /var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages (from zeroconf->pyvlx) (0.2.0)
WARNING: The directory '/var/www/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: aiohttp==3.7.4.post0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages (3.7.4.post0)
Requirement already satisfied: attrs>=17.3.0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages (from aiohttp==3.7.4.post0) (24.3.0)
Requirement already satisfied: chardet<5.0,>=2.0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages (from aiohttp==3.7.4.post0) (4.0.0)
Requirement already satisfied: multidict<7.0,>=4.5 in /var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages (from aiohttp==3.7.4.post0) (6.1.0)
Requirement already satisfied: async-timeout<4.0,>=3.0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages (from aiohttp==3.7.4.post0) (3.0.1)
Requirement already satisfied: yarl<2.0,>=1.0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages (from aiohttp==3.7.4.post0) (1.18.3)
Requirement already satisfied: typing-extensions>=3.6.5 in /var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages (from aiohttp==3.7.4.post0) (4.12.2)
Requirement already satisfied: idna>=2.0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages (from yarl<2.0,>=1.0->aiohttp==3.7.4.post0) (3.10)
Requirement already satisfied: propcache>=0.2.0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages (from yarl<2.0,>=1.0->aiohttp==3.7.4.post0) (0.2.1)
WARNING: The directory '/var/www/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting PyYAML==5.4.1
Downloading PyYAML-5.4.1.tar.gz (175 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 4.2 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [54 lines of output]
running egg_info
writing lib3/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib3/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-v961kuiq/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-v961kuiq/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-v961kuiq/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
File "<string>", line 271, in <module>
File "/tmp/pip-build-env-v961kuiq/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 117, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-v961kuiq/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 186, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-v961kuiq/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-v961kuiq/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 983, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-v961kuiq/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 999, in run_command
super().run_command(command)
File "/tmp/pip-build-env-v961kuiq/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-v961kuiq/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 312, in run
self.find_sources()
File "/tmp/pip-build-env-v961kuiq/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 320, in find_sources
mm.run()
File "/tmp/pip-build-env-v961kuiq/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 543, in run
self.add_defaults()
File "/tmp/pip-build-env-v961kuiq/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 581, in add_defaults
sdist.add_defaults(self)
File "/tmp/pip-build-env-v961kuiq/overlay/lib/python3.11/site-packages/setuptools/command/sdist.py", line 109, in add_defaults
super().add_defaults()
File "/tmp/pip-build-env-v961kuiq/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 239, in add_defaults
self._add_defaults_ext()
File "/tmp/pip-build-env-v961kuiq/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 324, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 201, in get_source_files
File "/tmp/pip-build-env-v961kuiq/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 120, in __getattr__
raise AttributeError(attr)
AttributeError: cython_sources
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: The directory '/var/www/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: bottle in /var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages (0.13.2)
********************************************************
11/01/2025 22:09:23 Installation terminée
********************************************************

Pour le moment ce n’est pas bloquant puisque le plugin semble bien fonctionner mais je préfèrerai régler ça pour éviter un futur pb.

Je suis preneur de vos conseils.

Bonjour

Est-ce la version beta du plugin?

Antoine

Bonjour,

Page santé jeedom?
C’est une restauration?

Vous pouvez essayer de supprimer le dossier resources/venv dans le dossier du plugin et relancer les dépendances

Bonjour,

C’est la version stable du plugin (2024-09-03 01:01:34).

J’ai effectué une restauration de la sauvegarde du Jeedom de mon ancien système (Debian 11) sur le nouveau système (Debian 12).

Voici la page santé de Jeedom, tout est vert :

Je viens de tenter de supprimer le répertoire /var/www/html/plugins/klf200/resources/venv et de réinstaller les dépendances mais l’erreur Getting requirements to build wheel did not run successfully et AttributeError: cython_sources est toujours présente.

********************************************************
12/01/2025 11:12:35 Installation des dépendances
********************************************************
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:3 https://deb.nodesource.com/node_20.x nodistro InRelease
Get:4 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:5 http://archive.raspberrypi.com/debian bookworm InRelease [39.3 kB]
Get:6 http://archive.raspberrypi.com/debian bookworm/main arm64 Packages [523 kB]
Fetched 617 kB in 1s (669 kB/s)
Reading package lists...
Installation des dépendances apt
Reading package lists...
Building dependency tree...
Reading state information...
python3-venv is already the newest version (3.11.2-1+b1).
python3-dev is already the newest version (3.11.2-1+b1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
WARNING: The directory '/var/www/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pyvlx
Downloading https://www.piwheels.org/simple/pyvlx/pyvlx-0.2.26-py3-none-any.whl (86 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 86.6/86.6 kB 3.3 MB/s eta 0:00:00
Collecting PyYAML
Downloading PyYAML-6.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (736 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 736.8/736.8 kB 8.5 MB/s eta 0:00:00
Collecting zeroconf
Downloading zeroconf-0.139.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (11.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.4/11.4 MB 11.7 MB/s eta 0:00:00
Collecting ifaddr>=0.1.7
Downloading https://www.piwheels.org/simple/ifaddr/ifaddr-0.2.0-py3-none-any.whl (12 kB)
Installing collected packages: ifaddr, zeroconf, PyYAML, pyvlx
Successfully installed PyYAML-6.0.2 ifaddr-0.2.0 pyvlx-0.2.26 zeroconf-0.139.0
WARNING: The directory '/var/www/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting aiohttp==3.7.4.post0
Downloading https://www.piwheels.org/simple/aiohttp/aiohttp-3.7.4.post0-py3-none-any.whl (451 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 451.9/451.9 kB 5.1 MB/s eta 0:00:00
Collecting attrs>=17.3.0
Downloading https://www.piwheels.org/simple/attrs/attrs-24.3.0-py3-none-any.whl (63 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.4/63.4 kB 16.7 MB/s eta 0:00:00
Collecting chardet<5.0,>=2.0
Downloading https://www.piwheels.org/simple/chardet/chardet-4.0.0-py2.py3-none-any.whl (178 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 178.7/178.7 kB 12.3 MB/s eta 0:00:00
Collecting multidict<7.0,>=4.5
Downloading multidict-6.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (131 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 131.1/131.1 kB 4.3 MB/s eta 0:00:00
Collecting async-timeout<4.0,>=3.0
Downloading https://www.piwheels.org/simple/async-timeout/async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Collecting yarl<2.0,>=1.0
Downloading yarl-1.18.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (340 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 340.6/340.6 kB 11.8 MB/s eta 0:00:00
Collecting typing-extensions>=3.6.5
Downloading https://www.piwheels.org/simple/typing-extensions/typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Collecting idna>=2.0
Downloading https://www.piwheels.org/simple/idna/idna-3.10-py3-none-any.whl (70 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 70.4/70.4 kB 14.5 MB/s eta 0:00:00
Collecting propcache>=0.2.0
Downloading propcache-0.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (232 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 232.1/232.1 kB 7.1 MB/s eta 0:00:00
Installing collected packages: typing-extensions, propcache, multidict, idna, chardet, attrs, async-timeout, yarl, aiohttp
Successfully installed aiohttp-3.7.4.post0 async-timeout-3.0.1 attrs-24.3.0 chardet-4.0.0 idna-3.10 multidict-6.1.0 propcache-0.2.1 typing-extensions-4.12.2 yarl-1.18.3
WARNING: The directory '/var/www/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting PyYAML==5.4.1
Downloading PyYAML-5.4.1.tar.gz (175 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 4.3 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [54 lines of output]
running egg_info
writing lib3/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib3/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-1ay_1m26/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-1ay_1m26/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-1ay_1m26/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
File "<string>", line 271, in <module>
File "/tmp/pip-build-env-1ay_1m26/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 117, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-1ay_1m26/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 186, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-1ay_1m26/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-1ay_1m26/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 983, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-1ay_1m26/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 999, in run_command
super().run_command(command)
File "/tmp/pip-build-env-1ay_1m26/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-1ay_1m26/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 312, in run
self.find_sources()
File "/tmp/pip-build-env-1ay_1m26/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 320, in find_sources
mm.run()
File "/tmp/pip-build-env-1ay_1m26/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 543, in run
self.add_defaults()
File "/tmp/pip-build-env-1ay_1m26/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 581, in add_defaults
sdist.add_defaults(self)
File "/tmp/pip-build-env-1ay_1m26/overlay/lib/python3.11/site-packages/setuptools/command/sdist.py", line 109, in add_defaults
super().add_defaults()
File "/tmp/pip-build-env-1ay_1m26/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 239, in add_defaults
self._add_defaults_ext()
File "/tmp/pip-build-env-1ay_1m26/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 324, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 201, in get_source_files
File "/tmp/pip-build-env-1ay_1m26/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 120, in __getattr__
raise AttributeError(attr)
AttributeError: cython_sources
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: The directory '/var/www/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting bottle
Downloading https://www.piwheels.org/simple/bottle/bottle-0.13.2-py2.py3-none-any.whl (104 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 104.1/104.1 kB 2.5 MB/s eta 0:00:00
Installing collected packages: bottle
Successfully installed bottle-0.13.2
********************************************************
12/01/2025 11:12:57 Installation terminée
********************************************************

Problème résolu.
Aujourd’hui la mise à jour est passée sans message d’erreur à propos de cette dépendance.

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.