picochess
picochess copied to clipboard
Manual Installation problem
Hi picochess developers,
I try to install picochess manualy. Therefore I setup a Dockerfile
FROM ubuntu:18.04
RUN apt-get update && apt-get -y install \
git \
vim \
curl \
python3 \
avahi-daemon \
avahi-discover \
libnss-mdns \
espeak \
festival \
vorbis-tools \
sox \
python3-dev \
python3-pip \
libffi-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt
RUN git clone --branch master https://github.com/jromang/picochess.git
WORKDIR /opt/picochess
The first problem, if I try (without sudo, because I am root on Docker)
pip3 install --upgrade -r requirements.txt
I get the following error
Collecting ConfigArgParse==0.12.0 (from -r requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/17/8d/4a41f11b0971017c7001f118be8003da8f7b96b010c66cd792b76658d1e1/ConfigArgParse-0.12.0.tar.gz
Collecting Flask==0.12.2 (from -r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/77/32/e3597cb19ffffe724ad4bf0beca4153419910
Collecting paramiko==2.4.0 (from -r requirements.txt (line 3))
Using cached https://files.pythonhosted.org/packages/be/9f/2b899b028aec1f3973253c0cf8dda6fbff65f4930f7ebedc43033e9f1b18/paramiko-2.4.0-py2.py3-none-any.whl
Collecting pyserial==3.4 (from -r requirements.txt (line 4))
Using cached https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb0
Collecting pyserial==3.4 (from -r requirements.txt (line 4))
Using cached https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl
Collecting python-chess==0.22.1 (from -r requirements.txt (line 5))
Using cached https://files.pythonhosted.org/packages/0f/c1/51f7f6e90cb1453d10f5857cab6f32691b7d117e98dc4c53840eb6d0fa02/python-chess-0.22.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-z6x78d3v/python-chess/setup.py", line 84, in <module>
long_description=read_description(),
File "/tmp/pip-build-z6x78d3v/python-chess/setup.py", line 33, in read_description
description = open(os.path.join(os.path.dirname(__file__), "README.rst")).read()
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 9759: ordinal not in range(128)
----------------------------------------
As a non python developer I go edit the requirements.txt in the line
python-chess==0.22.1
and change the version from 0.22.1 to 0.23.1. It helps to eliminate this error. It means the command
pip3 install --upgrade -r requirements.txt
runs without an error.
Successfully installed ConfigArgParse-0.12.0 Flask-0.12.2 Jinja2-2.10 MarkupSafe-1.1.0 Werkzeug-0.14.1 bcrypt-3.1.4 certifi-2018.11.29 cffi-1.11.5 chardet-3.0.4 click-7.0 configobj-5.0.6 cryptography-2.4.2 itsdangerous-1.1.0 paramiko-2.4.0 pyOpenSSL-17.5.0 pyasn1-0.4.4 pycparser-2.19 pynacl-1.3.0 pyserial-3.4 python-chess-0.23.1 requests-2.18.4 spur-0.3.20 tornado-4.5.1 urllib3-1.22
The command
python3 ./build/engines.py
gets the following error
a-stock8
b-texel7
c-arasan
d-rodnt3
Exception in thread Thread-5:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.6/dist-packages/chess/engine.py", line 151, in _receiving_thread_target
line = self.process.stdout.readline()
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc8 in position 50: ordinal not in range(128)
Please help to solve this problem. :)