-
Notifications
You must be signed in to change notification settings - Fork 66
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
ImportError: No module named 'aiohttp.errors' #95
Comments
#96 pins aiohttp to >=2.0.0 and fixes the incompatibilities, so hopefully things will be up and running again in a bit. At some point we will freeze the dependencies... looks like sooner might be better than later. |
mhhh still showing:
|
@fabianbaier Can you try running python3.5 then:
See what it says |
@allenap I think @fabianbaier is on to something here. I just installed in a venv and it gave me aiohttp 2.0.1, but I still see the same error |
I patched it by installing aiohttp==1.3.3 as described above but even with that version:
|
@fabianbaier I think this fix hasn't been released yet. You could install from Github directly? |
@allenap I think we should make a point of updating the setup.py file immediately after releasing so that it's clear that that version hasn't been released yet - I was a bit confused here because the version in the setup.py is 0.4.1 and that is what is in PyPi, but it's not the same code |
@fabianbaier |
Yep, thanks that is working. Interestingly it fixed also another issue I ran into: [GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from maas.client import viscera, bones
>>> import asyncio
>>>
>>>
>>> url = "http://10.0.50.50:5240/MAAS/"
>>> token = "qK9RYAT3pgs2SncrWk:2fL3gMjZasdf8mF5Jrf:ZJ3N5GFUdRBraZsasdfhe3yJYmJMseP8z"
>>>
>>> profile, session = bones.SessionAPI.connect(url, apikey=token)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'coroutine' object is not iterable I was wondering why the TypeError was showing in the Docker container but not on my laptop when I am running it on my virtual env. So I checked the virtual env and the versions were everywhere identically. What made the difference and after upgrading back to aiohttp-2.0.1 I directly installed libmaas from Github and the error message disappeared:
In Docker container:
In Anaconda env:
|
I have aiohttp version 2.3.1 but still getting error
Is there any alternative to fix this issue? |
Looks like in version 2.0.0 aiohttp dropped aiohttp.errors: https://media.readthedocs.org/pdf/aiohttp/2.0.0/aiohttp.pdf
When I try to load the library I get:
pip freeze
showsaiohttp==2.0.0
- as a work around I installed aiohttp==1.3.3 which produced no import error.The text was updated successfully, but these errors were encountered: