Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while setting up platform qbittorrent - qBittorrent 4.2.0 #29843

Closed
MateEke opened this issue Dec 11, 2019 · 6 comments · Fixed by #30239
Closed

Error while setting up platform qbittorrent - qBittorrent 4.2.0 #29843

MateEke opened this issue Dec 11, 2019 · 6 comments · Fixed by #30239

Comments

@MateEke
Copy link

MateEke commented Dec 11, 2019

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

@springstan
Copy link
Member

@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 :)

@springstan
Copy link
Member

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

@v1k45
Copy link

v1k45 commented Dec 24, 2019

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/

@springstan
Copy link
Member

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

@Tuumke
Copy link

Tuumke commented Jan 8, 2020

Any idea when this is pushed to master?

@springstan
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants