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

ConfigAttributeError on fresh install #23

Closed
AkshatM opened this issue Aug 10, 2021 · 7 comments
Closed

ConfigAttributeError on fresh install #23

AkshatM opened this issue Aug 10, 2021 · 7 comments

Comments

@AkshatM
Copy link

AkshatM commented Aug 10, 2021

Encountered the following issue when downloading and installing for the first time:

❯ chessli --help
Traceback (most recent call last):
  File "/home/akshat/.pyenv/versions/3.8.6/bin/chessli", line 5, in <module>
    from chessli.cli.main import app
  File "/home/akshat/.pyenv/versions/3.8.6/lib/python3.8/site-packages/chessli/__init__.py", line 137, in <module>
    berserk_client = get_berserk_client(main_config.token)
  File "/home/akshat/.pyenv/versions/3.8.6/lib/python3.8/site-packages/omegaconf/dictconfig.py", line 353, in __getattr__
    self._format_and_raise(
  File "/home/akshat/.pyenv/versions/3.8.6/lib/python3.8/site-packages/omegaconf/base.py", line 190, in _format_and_raise
    format_and_raise(
  File "/home/akshat/.pyenv/versions/3.8.6/lib/python3.8/site-packages/omegaconf/_utils.py", line 821, in format_and_raise
    _raise(ex, cause)
  File "/home/akshat/.pyenv/versions/3.8.6/lib/python3.8/site-packages/omegaconf/_utils.py", line 719, in _raise
    raise ex.with_traceback(sys.exc_info()[2])  # set end OC_CAUSE=1 for full backtrace
  File "/home/akshat/.pyenv/versions/3.8.6/lib/python3.8/site-packages/omegaconf/dictconfig.py", line 351, in __getattr__
    return self._get_impl(key=key, default_value=_DEFAULT_MARKER_)
  File "/home/akshat/.pyenv/versions/3.8.6/lib/python3.8/site-packages/omegaconf/dictconfig.py", line 438, in _get_impl
    node = self._get_node(key=key, throw_on_missing_key=True)
  File "/home/akshat/.pyenv/versions/3.8.6/lib/python3.8/site-packages/omegaconf/dictconfig.py", line 470, in _get_node
    raise ConfigKeyError(f"Missing key {key}")
omegaconf.errors.ConfigAttributeError: Missing key token
    full_key: token
    object_type=dict

Environment: Ubuntu 18.0.4, System76 Laptop, Python 3.8

I imagine there's a config file I have to supply somewhere, but this doesn't seem to be reflected in the docs?

@BlackBlack667
Copy link

Same for me.

Environment: Fedora Silverblue, Python 3.9 and Python 3.8 on Conda.

@faculb
Copy link

faculb commented Sep 30, 2021

I have the same problem

@pwenker
Copy link
Owner

pwenker commented Dec 7, 2021

Sorry for the late response!
Does this part in the documentation solve the issue?
https://pwenker.com/chessli/tutorial/how_to_set_up_chessli/#configuration

@BlackBlack667
Copy link

No. Chessli crashes same error regardless of arguments provided.

@pwenker
Copy link
Owner

pwenker commented Dec 8, 2021

@BlackBlack667:

I don't exactly get what you mean with "regardless of arguments provided". The link I posted above goes through some additional setup steps needed for chessli to work.
One of them is the creation of an API acces token:

https://pwenker.com/chessli/tutorial/how_to_set_up_chessli/#lichess-api-authentification

It's been a while that I worked on the code, but from the error message in the initial issue entry, I guess this is the one step missing :)

@BlackBlack667
Copy link

Changed config and it works now!

@pwenker
Copy link
Owner

pwenker commented Dec 9, 2021

Awesome!
Thank you three for your feedback!
I close this issue and will place some notes into the documentation to make these necessary configuration setup-steps more visible.
Feel free to reopen if anything is not solved yet or open new issues if other problems come up :)

@pwenker pwenker closed this as completed Dec 9, 2021
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

4 participants