Crafty does not use the opening book
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
crafty (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: crafty
Hello.
With the latest crafty in lucid I get the following error
Machine is NUMA, 1 nodes (2 cpus/node)
unable to open book file [./book.bin].
book is disabled
unable to open book file [./books.bin].
Crafty v23.1 (1 cpus)
White(1):
Opening books are very crucial for computer chess to work and it is important to have this bug fixed.
ii crafty 23.1-1 state-of-the-art chess engine, compatible wi
ii crafty-books-medium 1.0.debian1-2 Medium size opening books for the crafty che
ProblemType: Bug
Architecture: amd64
Date: Sun Mar 7 13:56:48 2010
DistroRelease: Ubuntu 10.04
InstallationMedia: Error: [Errno 13] Lupa evätty: '/var/log/
Package: crafty 23.1-1
ProcEnviron:
LANG=fi_FI.utf8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: crafty
Uname: Linux 2.6.32-15-generic x86_64
The handling of the opening book is a source of confusion with this package.
I just installed package crafty- books-medium. It appears to have installed the book into /var/lib/crafty. In Karmic, the Ubuntu package defaults the opening book to the current directory. (This shows up under strace.) The search for tablebase files, however, defaults to /usr/lib/crafty/TB so at first blush the book default appears broken and inconsistent.
My book works when I run crafty as follows:
/usr/games/crafty bookpath= /var/lib/ crafty
There is also an environment variable documented on the man page to achieve this effect.
However, when run this way, it complains that my book can not be opening for writing, so learning mode is disabled. Perhaps this is why the default was left at .
Logical, on some level, perhaps. Friendly or predictable, not even close.