rckclmbr / pyportify

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

No support for 2 factor auth on google #127

Open MateuszGrab opened 6 years ago

MateuszGrab commented 6 years ago

After installation and local run by ./pyportify Tried on first page to login to google

expected result I should've been asked about 2 Factor code

actual result: Login not possible

ragusa87 commented 6 years ago

You can use an application password in the meantime. https://security.google.com/settings/security/apppasswords

gibraine commented 6 years ago

Hi,

I have enabled 2FA and created App Password but still getting access denied, any suggestion to fix it?

Thank you!,

C:\Temp\pyportify-0.4.1>pyportify-copyall Enter Google email address: xxxxxx@gmail.com Enter Google password: Traceback (most recent call last): File "site-packages\urllib3\connectionpool.py", line 601, in urlopen File "site-packages\urllib3\connectionpool.py", line 346, in _make_request File "site-packages\urllib3\connectionpool.py", line 850, in _validateconn File "site-packages\urllib3\connection.py", line 326, in connect File "site-packages\urllib3\util\ssl.py", line 329, in ssl_wrap_socket File "ssl.py", line 407, in wrap_socket File "ssl.py", line 814, in init File "ssl.py", line 1068, in do_handshake File "ssl.py", line 689, in do_handshake ssl.SSLError: [SSL: TLSV1_ALERT_ACCESS_DENIED] tlsv1 alert access denied (_ssl.c:777)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "site-packages\requests\adapters.py", line 440, in send File "site-packages\urllib3\connectionpool.py", line 639, in urlopen File "site-packages\urllib3\util\retry.py", line 388, in increment urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='android.clients.google.com', port=443): Max retries exceeded with url: /auth (Caused by SSLError(SSLError(1, '[SSL: TLSV1_ALERT_ACCESS_DENIED] tlsv1 alert access denied (_ssl.c:777)'),))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "pyportify\copy_all.py", line 67, in File "pyportify\copy_all.py", line 61, in main File "asyncio\base_events.py", line 467, in run_until_complete File "pyportify\copy_all.py", line 38, in start File "pyportify\google.py", line 26, in login File "pyportify\gpsoauth__init.py", line 67, in perform_master_login File "pyportify\gpsoauth\init__.py", line 21, in _perform_auth_request File "site-packages\requests\api.py", line 112, in post File "site-packages\requests\api.py", line 58, in request File "site-packages\requests\sessions.py", line 508, in request File "site-packages\requests\sessions.py", line 618, in send File "site-packages\requests\adapters.py", line 506, in send requests.exceptions.SSLError: HTTPSConnectionPool(host='android.clients.google.com', port=443): Max retries exceeded with url: /auth (Caused by SSLError(SSLError(1, '[SSL: TLSV1_ALERT_ACCESS_DENIED] tlsv1 alert access denied (_ssl.c:777)'),)) [2328] Failed to execute script copy_all