maxpumperla / deep_learning_and_the_game_of_go

Code and other material for the book "Deep Learning and the Game of Go"
https://www.manning.com/books/deep-learning-and-the-game-of-go
987 stars 390 forks source link

error during install #29

Open rwideman opened 5 years ago

rwideman commented 5 years ago

Yes, running in virtualenv.... since I had the error installing tensorflow I manually did a pip install tensorflow which installed the latest version. I then ran the installation manually after removing the tensorflow line in the setup.py, everything installed fine except gomill, it did install but with errors.

Running gomill-0.8.3/setup.py -q bdist_egg --dist-dir /var/folders/bg/qy1p6j6n0p552fskd1n52vqh0000gn/T/easy_install-eov1v_pz/gomill-0.8.3/egg-dist-tmp-ncf8acuf File "build/bdist.macosx-10.14-x86_64/egg/gomill/gtp_proxy.py", line 106 except (GtpChannelError, BadGtpResponse), e: ^ SyntaxError: invalid syntax

File "build/bdist.macosx-10.14-x86_64/egg/gomill/mcts_tuners.py", line 266 def most_visits((child_index, node)): ^ SyntaxError: invalid syntax

File "build/bdist.macosx-10.14-x86_64/egg/gomill/gtp_games.py", line 215 except ValueError, e: ^ SyntaxError: invalid syntax

File "build/bdist.macosx-10.14-x86_64/egg/gomill/ringmaster_command_line.py", line 17 print "running startup checks on all players" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("running startup checks on all players")?

File "build/bdist.macosx-10.14-x86_64/egg/gomill/ringmaster_presenters.py", line 140 print s ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(s)?

File "build/bdist.macosx-10.14-x86_64/egg/gomill/job_manager.py", line 47 except JobFailed, e: ^ SyntaxError: invalid syntax

File "build/bdist.macosx-10.14-x86_64/egg/gomill/tournaments.py", line 119 except ValueError, e: ^ SyntaxError: invalid syntax

File "build/bdist.macosx-10.14-x86_64/egg/gomill/gtp_engine.py", line 72 except ValueError, e: ^ SyntaxError: invalid syntax

File "build/bdist.macosx-10.14-x86_64/egg/gomill/utils.py", line 74 except EnvironmentError, e: ^ SyntaxError: invalid syntax

File "build/bdist.macosx-10.14-x86_64/egg/gomill/settings.py", line 146 except ValueError, e: ^ SyntaxError: invalid syntax

File "build/bdist.macosx-10.14-x86_64/egg/gomill/ringmasters.py", line 46 exec code in result ^ SyntaxError: Missing parentheses in call to 'exec'

File "build/bdist.macosx-10.14-x86_64/egg/gomill/gtp_controller.py", line 408 except EnvironmentError, e: ^ SyntaxError: invalid syntax

File "build/bdist.macosx-10.14-x86_64/egg/gomill/allplayalls.py", line 100 except ValueError, e: ^ SyntaxError: invalid syntax

File "build/bdist.macosx-10.14-x86_64/egg/gomill/gtp_states.py", line 476 except ValueError, e: ^ SyntaxError: invalid syntax

File "build/bdist.macosx-10.14-x86_64/egg/gomill/cem_tuners.py", line 202 except ValueError, e: ^ SyntaxError: invalid syntax

File "build/bdist.macosx-10.14-x86_64/egg/gomill/playoffs.py", line 65 except ValueError, e: ^ SyntaxError: invalid syntax

File "build/bdist.macosx-10.14-x86_64/egg/gomill/sgf_grammar.py", line 256 except ValueError, e: ^ SyntaxError: invalid syntax

File "build/bdist.macosx-10.14-x86_64/egg/gomill/game_jobs.py", line 238 except ValueError, e: ^ SyntaxError: invalid syntax

File "build/bdist.macosx-10.14-x86_64/egg/gomill/competitions.py", line 200 except ValueError, e: ^ SyntaxError: invalid syntax

zip_safe flag not set; analyzing archive contents... Copying gomill-0.8.3-py3.7.egg to /Users/rwideman/Documents/SublimeText3/Python/GoGame/lib/python3.7/site-packages Adding gomill 0.8.3 to easy-install.pth file ... ... ... ... $ pip list Package Version


absl-py 0.7.1 astor 0.7.1 Click 7.0 dlgo 0.2 Flask 1.0.2 Flask-Cors 3.0.7 future 0.17.1 gast 0.2.2 gomill 0.8.3 grpcio 1.20.0 h5py 2.9.0 itsdangerous 1.1.0 Jinja2 2.10.1 Keras 2.2.2 Keras-Applications 1.0.7 Keras-Preprocessing 1.0.9 Markdown 3.1 MarkupSafe 1.1.1 mock 2.0.0 numpy 1.16.3 pbr 5.1.3 pip 19.0.3 protobuf 3.7.1 PyYAML 5.1 scipy 1.2.1 setuptools 41.0.1 six 1.12.0 tensorboard 1.13.1 tensorflow 1.13.1 tensorflow-estimator 1.13.0 termcolor 1.1.0 Werkzeug 0.15.2 wheel 0.33.1

Anything I need to do to fix this or will it work just fine?

maxpumperla commented 5 years ago

@rwideman gomill seems to be python2 only (sorry, I didn't know that), see here: https://github.com/mattheww/gomill

to fix it right away, there's a python3 port here: https://mjw.woodcraft.me.uk/sgfmill/

but, seeing the error messages above it's mostly benign. error messages, print statements. If you're lucky it just works. very strange nobody noticed this before...

rwideman commented 5 years ago

Ok, I will proceed as-is since its is a virtualenv and can rebuild it if needed.

Just bought the book so getting to the book now!!!!