christopher-dG / gpymusic

Google Py Music: A simple TUI client for Google Play Music
MIT License
200 stars 13 forks source link

Login failed on 'gpymusic-get-dev-id' #36

Open astewartau opened 6 years ago

astewartau commented 6 years ago

I've tried running gpymusic-get-dev-id so that I can start using gpymusic. However, after entering my details, I always get the message "Login failed, verify your email and password." I am sure that I have entered my email and password correctly, and I have tested it numerous times in a browser, where it consistently works, and in the terminal, where it does not.

My email address contains several full-stops - I don't know whether that could be an issue. The password is not hugely long (<15 chars; I know the API has issues with very long passwords).

I am running Python 3.5.3 (python3) on Debian 9.

Any idea how I can debug this?

christopher-dG commented 6 years ago

Can you try this in a REPL for me?

>>> from gmusicapi import Mobileclient
>>> m = Mobileclient()
>>> m.login(email, password, m.FROM_MAC_ADDRESS)
christopher-dG commented 6 years ago

bump?

Quadronick commented 6 years ago

Same here btw. And result of those code is 'False'

Arch, python 3.6.2.

christopher-dG commented 6 years ago

Okay, so this is definitely on gmusicapi's end then. Can you try creating an app password and using that?

Quadronick commented 6 years ago

Answered to you via email.

christopher-dG commented 6 years ago

I don't see why my answers shouldn't be public for others to benefit from.

There is information about creating and using app passwords here.

Quadronick commented 6 years ago

Sorry. I did it 'couse of notifications about new mail on my phone's screen. I'm not a frequent visitor here. I followed your link and Google told me, that this setting is unavailable for my account. Can I provide you any other debug info?

christopher-dG commented 6 years ago

Is your account managed by any organization or is it a personal one? @astewartau that's a question for you too as it may be related.

Quadronick commented 6 years ago

Personal.

christopher-dG commented 6 years ago

Hm, that's really weird. I've opened https://github.com/simon-weber/gmusicapi/issues/584, maybe we can find some answers there.

Quadronick commented 6 years ago

As it's said "App passwords are enabled only if you use 2-step verification". I don't use it.

christopher-dG commented 6 years ago

Ah that makes sense. If you're interested in changing your password and trying to log in with the new one feel free, but otherwise don't worry about it (that's quite a bit of hassle).

SkyLeite commented 6 years ago

Same here

academo commented 5 years ago

I submitted a PR that uses oauth for loggin and should remove this issuse once for all https://github.com/christopher-dG/gpymusic/pull/50