Core: Error while setting up platform qbittorrent - qBittorrent 4.2.0

Created on 11 Dec 2019  路  6Comments  路  Source: home-assistant/core

Home Assistant release with the issue:
0.103.0

Last working Home Assistant release (if known):

Operating environment (Hass.io/Docker/Windows/etc.):
Official Docker image

Integration:
https://www.home-assistant.io/integrations/qbittorrent/

Description of problem:
qBittorent integration doesn't work since qBittorrent release 4.2.0.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

- platform: qbittorrent
  url: 'http://192.168.2.200:9091'
  username: !secret torrent_username
  password: !secret torrent_password

Traceback (if applicable):

Error while setting up platform qbittorrent
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/qbittorrent/sensor.py", line 48, in setup_platform
    client = Client(config[CONF_URL])
  File "/usr/local/lib/python3.7/site-packages/qbittorrent/client.py", line 30, in __init__
    """)
RuntimeError: 
                This wrapper only supports qBittorrent applications
                 with version higher than 3.1.x.
                 Please use the latest qBittorrent release.

Additional information:
https://github.com/qbittorrent/qBittorrent/releases/tag/release-4.2.0

qbittorrent

Most helpful comment

@Tuumke this will be released in 0.104 on 15 January.

All 6 comments

@MateEke this is an issue with used package python-qBittorrent and there is even a PR to add this support. Therefore, please close this issue and comment/support on the issue or PR. Thank you :)

The mentioned PR has been merged, @MateEke could you test the component with the new version of python-qBittorrent? Thanks in advance :)

Hey folks 馃憢, Support for qBittorrent 4.1+ is now available in python-qBittorrent 0.4.1. Thanks to @Shaance for this.

https://pypi.org/project/python-qbittorrent/0.4.1/

@MateEke I have created an PR to update to the latest version, could you please test it locally for me? Thank you very much :)

Any idea when this is pushed to master?

@Tuumke this will be released in 0.104 on 15 January.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Konstigt picture Konstigt  路  3Comments

arangates picture arangates  路  3Comments

Elmardus picture Elmardus  路  3Comments

sibbl picture sibbl  路  3Comments

moskovskiy82 picture moskovskiy82  路  3Comments