Closed sambarlick closed 1 day ago
Hey there @geoffreylagaisse, @finder39, mind taking a look at this issue as it has been labeled with an integration (qbittorrent
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
qbittorrent documentation qbittorrent source (message by IssueLinks)
@sebclem I believe that 2024.7.0 would be the first time your changes in #107637 would be brought into the main branch for release. Can you take a look at this?
@sebclem I believe that 2024.7.0 would be the first time your changes in #107637 would be brought into the main branch for release. Can you take a look at this?
I'll take a look
@sambarlick Can you try upgrading to beta 4 ? I can't reproduce this with beta 4
@finder39 I don't think this is linked to the lib change, the issue seams to have already been present in 2024.6.3
I first noticed the issue on HA 2024.6.3 and I'm currently on 2024.7.0b3.
@sambarlick Can you try upgrading to beta 4 ? I can't reproduce this with beta 4
I just updated to beta 4 and it's fixed. I don't know if the issue is related to the recent changes made but I definitely had this issue prior to the 07 beta.
Thank you.
I have just updated to beta 6 and the issue has returned. Exactly the same as before.
I still can't reproduce this on beta 6, @finder39 did you manage to reproduce this ?
I don't know if there is anything in these logs that is useful. Also I don't know if it is helpful but the custom hacs integration "qBittorrent alternative speed switch for Home Assistant" still works for me.
Logger: homeassistant.util.loop Source: util/loop.py:51 First occurred: 07:58:09 (1 occurrences) Last logged: 07:58:09
Detected blocking call to import_module with args ('homeassistant.components.qbittorrent',) in /usr/src/homeassistant/homeassistant/loader.py, line 1050: ComponentProtocol, importlib.import_module(self.pkg_path) inside the event loop; This is causing stability issues. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#import_module Traceback (most recent call last): File "
Logger: homeassistant.setup Source: setup.py:322 First occurred: 07:58:09 (1 occurrences) Last logged: 07:58:09
Setup failed for 'qbittorrent': Unable to import component: cannot import name 'TorrentStatusesT' from 'qbittorrentapi.torrents' (/usr/local/lib/python3.12/site-packages/qbittorrentapi/torrents.py)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 990, in async_get_component
comp = await self.hass.async_add_import_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, *self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1050, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 149, in protected_loop_func
return func(args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 322, in _async_setup_component
component = await integration.async_get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1010, in async_get_component
self._component_future.result()
File "/usr/src/homeassistant/homeassistant/loader.py", line 1002, in async_get_component
comp = self._get_component()
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1050, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 149, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "
I don't know if there is anything in these logs that is useful. Also I don't know if it is helpful but the custom hacs integration "qBittorrent alternative speed switch for Home Assistant" still works for me.
That one is actually the source of the problem, the custom integration override the library used.
The core integration uses:
qbittorrent-api==2024.2.59
The custom integration forces iy to:
qbittorrent-api==2022.5.32
Which causes an incompatibility.
I'm going to close the issue on this end since the root cause is a custom integration, not Home Assistant itself. Please report this issue to the custom integration author.
../Frenck
The problem
Integration "won't load". I can't Reload the integration, remove or re-add the integration. I first noticed the issue on HA 2024.6.3 and I'm currently on 2024.7.0b3.
I have attached screenshots of the integration not being loaded and the error message I get when I try re-add.the integration.
I have copied the logs below and I don't have the option available to download the debug logs.
What version of Home Assistant Core has the issue?
2024.7.0b3
What was the last working version of Home Assistant Core?
2024.6.2
What type of installation are you running?
Home Assistant OS
Integration causing the issue
qBittorrent
Link to integration documentation on our website
https://rc.home-assistant.io/integrations/qbittorrent
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
I don't have the option to be able to download the debug logs. Is this due to the integration not being loaded?