dje-dev / Ceres

Ceres - an MCTS chess engine for research and recreation
GNU General Public License v3.0
153 stars 23 forks source link

Problem with new graphing option when Windows user directory includes spaces #71

Closed whelanh closed 2 years ago

whelanh commented 2 years ago

This won't effect many people, but because my user directory has a space in it (i.e., C:\Users\Hugh Whelan\, graphviz can't create (open?) .dot or .svg file. This is the error I get when I type "graph 1" in the command line using Ceres (it does seem to generate a text version of the file in the command terminal):

info depth 12 seldepth 14 time 8064 nodes 862401 score cp 38 tbhits 0 nps 106951 pv h2h3 c6d5 c4d5 f6e8 a2a4 f7f5 a4a5 c8d7 f3g5 e8c7 e2c4 d8e7 b2b4 string M= NaN bestmove h2h3 graph 1 Error: C:\Users\Hugh: syntax error in line 1 near ''' Error: dot: can't open Whelan\AppData\Local\Temp\Ceres_Graph__p1pjae1o.h5u\CeresGraph.dot: No such file or directory Error: dot: can't open Whelan\AppData\Local\Temp\Ceres_Graph__p1pjae1o.h5u\CeresGraph.svg: No such file or directory digraph "title" { nodesep=1.5 ranksep=0.5 bgcolor="whitesmoke" rankdir=LR; fontsize="40" labelloc="t" label="Ceres (0.96) Search Visualization Network=LC0:./Networks/weights_run2_703810.pb.gz (862,401 visits) r1bq1rk1/pp3pbp/n1pp1np1/3Pp3/2P1P3/2N2N2/PP2BPPP/R1BQ1RK1 w - - 1 9 " 1 [shape=none href="https://lichess.org/editor/r1bq1rk1/pp3pbp/n1pp1np1/3Pp3/2P1P3/2N2N2/PP2BPPP/R1BQ1RK1 w - - 1 9" tooltip=" 0 (none) 100.00% N= 862401 Q= 0.241 +/- 0.00 V= 0.23 WDL= 0.46 0.30 0.23 WDLA= 0.47 0.30 0.23 M= 117 NaN 1 h2h3 8.73% N= 665377...