Coder Social home page Coder Social logo

Comments (5)

ShailChoksi avatar ShailChoksi commented on August 17, 2024 2

Sorry guys, the default was mistyped:

engine:                   # engine settings
  dir: "./engines/"         # dir containing engines, relative to this project
  name: "engine_name"        # binary name of the engine to use
#  weights: "latest.txt"     # only if the engine is lczero
#  threads: 1                # only if the engine is lczero

Notice I removed {} and added :

from lichess-bot.

ornicar avatar ornicar commented on August 17, 2024

start again from config.yml.default

from lichess-bot.

ddugovic avatar ddugovic commented on August 17, 2024

With latest master:

$ cp config.yml.default config.yml && python3 main.py 
Traceback (most recent call last):
  File "main.py", line 209, in <module>
    load_config()
  File "main.py", line 200, in load_config
    CONFIG = yaml.load(stream)
  File "/home/turing/.local/lib/python3.5/site-packages/yaml/__init__.py", line 72, in load
    return loader.get_single_data()
  File "/home/turing/.local/lib/python3.5/site-packages/yaml/constructor.py", line 35, in get_single_data
    node = self.get_single_node()
  File "/home/turing/.local/lib/python3.5/site-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/home/turing/.local/lib/python3.5/site-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/home/turing/.local/lib/python3.5/site-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/home/turing/.local/lib/python3.5/site-packages/yaml/composer.py", line 127, in compose_mapping_node
    while not self.check_event(MappingEndEvent):
  File "/home/turing/.local/lib/python3.5/site-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/home/turing/.local/lib/python3.5/site-packages/yaml/parser.py", line 428, in parse_block_mapping_key
    if self.check_token(KeyToken):
  File "/home/turing/.local/lib/python3.5/site-packages/yaml/scanner.py", line 116, in check_token
    self.fetch_more_tokens()
  File "/home/turing/.local/lib/python3.5/site-packages/yaml/scanner.py", line 159, in fetch_more_tokens
    self.stale_possible_simple_keys()
  File "/home/turing/.local/lib/python3.5/site-packages/yaml/scanner.py", line 289, in stale_possible_simple_keys
    "could not find expected ':'", self.get_mark())
yaml.scanner.ScannerError: while scanning a simple key
  in "./config.yml", line 4, column 1
could not find expected ':'
  in "./config.yml", line 5, column 3

from lichess-bot.

gbtami avatar gbtami commented on August 17, 2024

Is there any reason using yaml instead of python built in configparser module?

from lichess-bot.

ShailChoksi avatar ShailChoksi commented on August 17, 2024

@gbtami No reason. I wasn't aware of configparser and have used yamls before.

from lichess-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.