Comments (5)
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.
start again from config.yml.default
from lichess-bot.
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.
Is there any reason using yaml instead of python built in configparser module?
from lichess-bot.
@gbtami No reason. I wasn't aware of configparser and have used yamls before.
from lichess-bot.
Related Issues (20)
- info message pv parsing promotions HOT 2
- Engine isn't closed properly on invalid options HOT 1
- Problems creating a leela bot HOT 13
- Add tests for specific functions
- Improving type annotations HOT 2
- In FromPosition challenges: override selected UCI settings depending on the FEN HOT 8
- Question: Can one VM run two bots? HOT 6
- Add support for takeback requests HOT 1
- Endpoint /api/stream/event is rate limited. Waiting 0:01:00 seconds until next request. HOT 6
- OSError: [WinError 193] %1 is not a valid Win32 application HOT 2
- Docker image is broken since 2024.5.3.2 HOT 2
- `lichess_opening_explorer` with `move_quality: "good"` picks up losing opening lines
- how do i run the project HOT 1
- /engines/stockfish/ #file does not exist HOT 17
- Won't play Atomic Game HOT 5
- Avoid having to duplicate `block_list` in challenge and matchmaking sections
- Unexpected `Game drawn by agreement` on move 300 HOT 3
- Custom Engine based on user games HOT 5
- Provide ARM Docker images
- lichess-bot issues new challenges before cancelling old ones, allowing too many concurrent games, which time out HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lichess-bot.