architv / soccer-cli

:soccer: Football scores for hackers. :computer: A command line interface for all the football scores.
MIT License
1.09k stars 222 forks source link

How to set the API key in windows ? #153

Open headbanger420 opened 2 years ago

headbanger420 commented 2 years ago

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'`