ValvePython / steam

☁️ Python package for interacting with Steam
http://steam.readthedocs.io
MIT License
1.06k stars 129 forks source link

Unable to login #346

Closed Hekkta closed 3 years ago

Hekkta commented 3 years ago

Sorry to leave this here, I realise it's probably not the right place but I have no idea where else to ask.

I can't log in at all.

Trying:

client = SteamClient() client.cli_login()

Gives:

[2021-07-17 13:09:45,800] DEBUG SteamClient: Attempting login [2021-07-17 13:09:45,801] DEBUG SteamClient: Connect initiated. [2021-07-17 13:09:45,803] DEBUG CMServerList: Attempting bootstrap via WebAPI [2021-07-17 13:09:45,807] DEBUG urllib3.connectionpool: Starting new HTTPS connection (1): api.steampowered.com:443 [2021-07-17 13:09:45,850] ERROR CMServerList: WebAPI boostrap failed: maximum recursion depth exceeded while calling a Python object [2021-07-17 13:09:45,852] DEBUG CMServerList: Attempting bootstrap via DNS [2021-07-17 13:09:45,854] DEBUG CMServerList: Added 2 new CM addresses. [2021-07-17 13:09:45,856] DEBUG Connection: Attempting connection to ('162.254.193.6', 27017) [2021-07-17 13:10:06,887] DEBUG SteamClient: Failed to connect. Retrying... [2021-07-17 13:10:06,887] DEBUG Connection: Attempting connection to ('162.254.195.44', 27017) [2021-07-17 13:10:27,930] DEBUG SteamClient: Failed to connect. Retrying... [2021-07-17 13:10:27,932] DEBUG Connection: Attempting connection to ('162.254.193.6', 27017) etc.

I notice that it tries to use the webapi, so I also tried:

api = steam.webapi.WebAPI(key)

gives:

[2021-07-17 13:16:09,604] DEBUG urllib3.connectionpool: Starting new HTTPS connection (1): api.steampowered.com:443 RecursionError: maximum recursion depth exceeded

Any help greatly appreciated!

rossengeorgiev commented 3 years ago

Mostly likely #97

Hekkta commented 3 years ago

Fixed!

Reordering the module imports didn't help but removing the 'import requests' all together did.

Also I'm running python v3.7.3.

Thanks for the help!

Ebispongebob commented 2 years ago

hi bro! if you added import gevent.monkey at the top of the py script that calls login gevent.monkey.patch_ssl() and fixed?