-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
ImportWarning when importing aiohttp with warnings enabled #3428
Comments
GitMate.io thinks the contributor most likely able to help you is @asvetlov. Possibly related issues are #2301 (pyinstaller cannot import aiohttp), #276 (python crashes on aiohttp import), #2956 (Enable logging when aiohttp.web is used as a program), #2320 (aiohttp-jinja2), and #3044 (Uvloop raises a warning when I use aiohttp.test_utils.loop_context). |
The problem is fixed on master. |
Can confirm that latest master works for me. Thank you. |
Long story short
Importing
aiohttp
results in a lot of ImportWarnings.While cleaning the app from warnings I noticed that a lot of them stem from aiohttp. To my surprise, simply importing the library results in 10 warning. Of these, DeprecationWarnings are addressed in #3275, but I don't see anything about ImportWarnings.
Expected behaviour
Expected no warnings on library import.
Actual behaviour
ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
Steps to reproduce
Your environment
Linux Mint 18.3, Python 3.7.1, aiohttp 3.4.4.
The text was updated successfully, but these errors were encountered: