Skip to content
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

Logging in doesn't work #3

Open
GeorgelPreput opened this issue Nov 24, 2021 · 1 comment
Open

Logging in doesn't work #3

GeorgelPreput opened this issue Nov 24, 2021 · 1 comment

Comments

@GeorgelPreput
Copy link

After having installed Steam, and ran it (but never logged in through the GUI), there is a config.vdf file to read, but it has no 'Accounts' key. This will trigger a failure on line 276:

          username = list(vdf.parse(f)['InstallConfigStore']['Software']['Valve']['Steam']['Accounts'].keys())[0]

If afterwards you remove the config.vdf file, or at least rename it to something else, the following crash occurs when running steam-cli login:

Traceback (most recent call last):
File "/usr/bin/steam-cli", line 33, in
sys.exit(load_entry_point('steam-cli==0.0.0', 'console_scripts', 'steam-cli')())
File "/usr/lib/python3.9/site-packages/steam_cli.py", line 765, in main
client.login()
File "/usr/lib/python3.9/site-packages/steam_cli.py", line 274, in login
if os.path.exists(cfg):
File "/usr/lib/python3.9/genericpath.py", line 19, in exists
os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

@amstelchen
Copy link

My config.vdf has the subkey Steam but written in lowercase, so when I use it like

username = list(vdf.parse(f)['InstallConfigStore']['Software']['Valve']['steam']['Accounts'].keys())[0]

there is at least no exception, but it will hang indefinitely on the login response from the Steam server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants