Skip to content

How to set the API key in windows ? #153

@headbanger420

Description

@headbanger420

I installed soccer-cli now I'm not sure how to set the API key since I'm not sure where the home folder is in windows 10.

also this is the output I get when i run anything.

`C:\soccer-cli-0.1.0>soccer --standings --league=PL
Traceback (most recent call last):
File "C:\Python38\lib\site-packages\soccer_cli-0.1.0.0-py3.8.egg\soccer\main.py", line 17, in
File "C:\Python38\lib\os.py", line 675, in getitem
raise KeyError(key) from None
KeyError: 'SOCCER_CLI_API_TOKEN'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Python38\Scripts\soccer-script.py", line 33, in
sys.exit(load_entry_point('soccer-cli==0.1.0.0', 'console_scripts', 'soccer')())
File "C:\Python38\Scripts\soccer-script.py", line 25, in importlib_load_entry_point
return next(matches).load()
File "C:\Python38\lib\importlib\metadata.py", line 77, in load
module = import_module(match.group('module'))
File "C:\Python38\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 655, in _load_unlocked
File "", line 618, in _load_backward_compatible
File "", line 259, in load_module
File "C:\Python38\lib\site-packages\soccer_cli-0.1.0.0-py3.8.egg\soccer\main.py", line 19, in
ModuleNotFoundError: No module named 'soccer.config'`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions