rckclmbr / pyportify

App to transfer your spotify playlists to Google Play Music
Apache License 2.0
779 stars 57 forks source link

SOLVED! cannot import name 'ClientSession' from 'aiohttp' #149

Closed andrea-brb closed 5 years ago

andrea-brb commented 5 years ago

Hi,

I'm trying to run the "getting startd client example" from aiohttp.readthedocs.io but I can't import ClientSession from aiohttp in any way; I already tried to:

uninstall python3.6 and I've now installed pyhton 3.7.1 uninstall then re-install aiohttp, "pip install aiohttp --user" just "import aiohttp" and then when I need the session --> aiohttp.ClientSession(), which brings: ---------> module 'aiohttp' has no attribute 'ClientSession'

I've never experienced anything like this issue, I don't know what to try anymore and I already tried solutions found on google/github/stackoverflow, still nothing... Does anyone have any clue?

OS: Win 10.0.17134.471 (updated like 3 days ago) Python 3.7.1

and no, I've never tried to use aiohttp before the windows update of 3 days ago.

Many thanks!

andrea-brb commented 5 years ago

SOLVED.

As stated here, I just named my script "aiohttp.py", not the greatest idea ever! Hope this will help those who'll face the same issue, thanks anyway.