-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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
Yarl removed unquote #11906
Comments
See #11660 |
Thanks @fabaff. I believe the plan is to delay a fix for when aiohttp releases version 3.0. That has no fixed date by with version 2.3.8 (2018-01-15) they've already implemented yarl >= 1.0.0 compatibility. Doesn't it make sense to have home-assistant do the same. |
@tiagoboldt What downgrade do you actually do? |
Which version of Home Assistant are you using? This issue is not present in the latest version of Home Assistant. |
@caffeineflo You would have to downgrade home assistant and its dependencies. @balloob 0.61.1-1 (from https://aur.archlinux.org/packages/home-assistant/) |
@balloob here's one of the problematic lines: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/http/static.py#L9 |
YARL 1.0 is never installed by Home Assistant. Our version is pinned to 0.18: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/package_constraints.txt#L9 |
Fix home-assistant/core#11906 until it is fixed upstream. Main issue comes from archlinux aur package for yarl being more to date than home-assistant dependency.
@balloob if yarl is installed using the system's package manager, which I believe must be true for most users, when the new version comes out yarl is automatically updated. |
Arch Linux is pretty much the only distribution that ships Home Assistant. I'm wondering how they handle the other dependencies as usually users are not allow to write to |
Most users do not install Home Assistant via a package manager but use the Hass.io installation, Docker container or install in a virtual environment (via Hassbian or manually). If you have a patch to fix it downstream, consider opening a PR to fix it in Home Assistant. |
I installed/migrated from an older version hass via https://home-assistant.io/docs/installation/virtualenv/ and I also get
My base system is Ubuntu 16.04.2 LTS, but as I run it in virtual env, this should be independent. EDIT: somehow hass was accessing some remaints in ~/.local |
@fabaff I just want to mention that Nixpkgs now ships Home Assistant as well: NixOS/nixpkgs#34188. |
Home Assistant requires Yarl 0.18, as specified in our requirements: Feel free to submit a PR to upgrade Home Assistant to use Yarl 1.0 and fix any issues that arise. Going to close this issue since Home Assistant does not support working with Yarl 1.0, as we specify 0.18 for a good reason. |
@balloob asking for the PR makes perfect sense to me, closing the issue without having in place a proper solution, admittedly knowing that the current setup is troublesome for most linux flavor packaging tools doesn't. As more have met the same issue, do expect new people reporting it in the future :/ |
We use our issue tracker solely for bugs (and still it's too much to handle). By closing it, it is clear that it's not an issue that you should expect the core team to fix. As always, a PR is welcome. |
i ran into this issue by upgrading me using a
to "fix" this issue on |
Why did you reopen? |
I don't know 😟 |
yarl version >= 1.0 has removed
unquote
from it, which home assistant uses, resulting in an import error.Example of a problematic import:
aiohttp has fixed this issue here: aio-libs/aiohttp#2662
Homeassistant should also make the required changes to work with the newer version of yarl.
The text was updated successfully, but these errors were encountered: