Erreur "round(): Argument #2 ($precision) must be of type int, string given"

Bonjour,

J’ai ce message d’erreur que je n’avais pas avant
Y a t-il quelque chose a faire ?

Sans savoir si cela est utile, voici les lignes de code du cron dans klf200.class.php:

public static function cron() {
klf200::refreshAll();
}

Merci pour votre aide
Pierre

Bonjour,

Comme déjà dit: toujours fournir page santé jeedom et log complet

Debian12? Si oui avez-vous vérifié que le plugin était compatible?

Sorry, les voici

J’avais bien verifié que compatible avec Debian 12 depuis la version de 2024.09.03 (je suis en beta de 2024.12.11)

Merci de votre aide
Pierre

Bonjour,

Une idée suite aux logs et a la page Santé :slight_smile: :pray: :pray:

Logs sous forme de texte formaté en utilisant le bouton </> Texte préformaté

Les fichiers, on est beaucoup à ne pas les ouvrir.

Ok
Je les mettais en .txt car le log depasse le nombre de caractere autorisé par le site, voici en tout cas les dernieres lignes :slight_smile:

Voici le log klf200 :

  File "/var/www/html/plugins/klf200/resources/klf200d.py", line 22, in init_pyvlx_connection
    await pyvlx.load_nodes()
  File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pyvlx/pyvlx.py", line 115, in load_nodes
    await self.nodes.load(node_id)
  File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pyvlx/nodes.py", line 74, in load
    await self._load_all_nodes()
  File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pyvlx/nodes.py", line 92, in _load_all_nodes
    await get_all_nodes_information.do_api_call()
  File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pyvlx/api/api_event.py", line 29, in do_api_call
    await self.pyvlx.check_connected()
  File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pyvlx/pyvlx.py", line 90, in check_connected
    await self.connect()
  File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pyvlx/pyvlx.py", line 58, in connect
    await self.connection.connect()
  File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pyvlx/connection.py", line 114, in connect
    self.transport, _ = await self.loop.create_connection(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/base_events.py", line 1085, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.11/asyncio/base_events.py", line 1069, in create_connection
    sock = await self._connect_sock(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/base_events.py", line 973, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/lib/python3.11/asyncio/selector_events.py", line 634, in sock_connect
    return await fut
           ^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/selector_events.py", line 674, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.1.2', 51200)
Traceback (most recent call last):
  File "/var/www/html/plugins/klf200/resources/klf200d.py", line 269, in <module>
    LOOP.run_until_complete(init_pyvlx_connection(LOOP))
  File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/var/www/html/plugins/klf200/resources/klf200d.py", line 22, in init_pyvlx_connection
    await pyvlx.load_nodes()
  File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pyvlx/pyvlx.py", line 115, in load_nodes
    await self.nodes.load(node_id)
  File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pyvlx/nodes.py", line 74, in load
    await self._load_all_nodes()
  File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pyvlx/nodes.py", line 92, in _load_all_nodes
    await get_all_nodes_information.do_api_call()
  File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pyvlx/api/api_event.py", line 29, in do_api_call
    await self.pyvlx.check_connected()
  File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pyvlx/pyvlx.py", line 90, in check_connected
    await self.connect()
  File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pyvlx/pyvlx.py", line 58, in connect
    await self.connection.connect()
  File "/var/www/html/plugins/klf200/resources/venv/lib/python3.11/site-packages/pyvlx/connection.py", line 114, in connect
    self.transport, _ = await self.loop.create_connection(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/base_events.py", line 1085, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.11/asyncio/base_events.py", line 1069, in create_connection
    sock = await self._connect_sock(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/base_events.py", line 973, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/lib/python3.11/asyncio/selector_events.py", line 634, in sock_connect
    return await fut
           ^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/selector_events.py", line 674, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.1.2', 51200)
[2025-02-23 12:49:49][ERROR] : KLF200 has been restarted after found not responding
[2025-02-23 12:49:54][ERROR] : KLF200 has been restarted after found not responding
[2025-02-23 12:50:08][ERROR] : Erreur sur la fonction cron du plugin : round(): Argument #2 ($precision) must be of type int, string given

Voici le kjf200_dep :

********************************************************
  22/02/2025 12:43:29 Installation des dépendances
********************************************************
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Hit:3 http://archive.raspberrypi.com/debian bookworm InRelease
Hit:4 http://deb.debian.org/debian bookworm-updates InRelease
Hit:5 https://deb.nodesource.com/node_20.x nodistro InRelease
Fetched 48.0 kB in 0s (108 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 8 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.145.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) (25.1.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 8.4 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-9as6zgky/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-9as6zgky/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-9as6zgky/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-9as6zgky/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 117, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-9as6zgky/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 186, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-9as6zgky/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-9as6zgky/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 983, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-9as6zgky/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 999, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-9as6zgky/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-9as6zgky/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 312, in run
          self.find_sources()
        File "/tmp/pip-build-env-9as6zgky/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 320, in find_sources
          mm.run()
        File "/tmp/pip-build-env-9as6zgky/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 543, in run
          self.add_defaults()
        File "/tmp/pip-build-env-9as6zgky/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-9as6zgky/overlay/lib/python3.11/site-packages/setuptools/command/sdist.py", line 109, in add_defaults
          super().add_defaults()
        File "/tmp/pip-build-env-9as6zgky/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-9as6zgky/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-9as6zgky/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)
********************************************************
  22/02/2025 12:43:42 Installation terminée
********************************************************

Bonjour,

J’ai toujours la meme erreur
Quelqu’un aurait il une idée / solution :pray:

Version du plugin : beta 2024-12-11 01:01:28