Closed PJTraill closed 4 years ago
Please try:
python3 setup.py install --user
Thanks; it looks better, but it does not quite run: it puts up a window (which I think stays empty) for a fraction of a second, but then exits because it cannot find a file.
The installation command with --user
produces much more promising looking output, but ends in an error and trying to run it (.local/bin/katrain
), python says I need (python3-
) kivy
, zipp
, importlib-metadata
, which I was able to install with Yast. Then running produced the second block of messages below, ending with a non-existent temporary file. I reran the setup, which looked good, but running it has almost the same result as before. I then also installed python3-importlib-resources
, having noticed that in the first setup error messages, and ran with --debug
, producing the final output below.
I did not (in most cases) install the related development (-devel
) or debug information packages.
I noticed a number of DEBUG messages about things ignored or unavailable: (img_ffpyplayer ignored)
, Ignored <egl_rpi> (import error)
, Provider: sdl2(['window_egl_rpi'] ignored)
, glShaderBinary is not available
; I take it these are not serious, and I could not find similar sounding packages in my repositories, which include packman
. My Linux is Open Suse Leap 15.1.
First attempt at installation:
pjtraill@linux-czvq:~/Documents/Fun/Go/Programmes/KaTrain/katrain> python3 setup.py install --user
['katrain', 'katrain.KataGo', 'katrain.core', 'katrain.gui', 'katrain.models'] {'': ['*.json', '*.kv'], 'katrain': ['KataGo/OpenCL.dll', 'KataGo/__init__.py', 'KataGo/analysis_config.cfg', 'KataGo/boost_filesystem-vc142-mt-x64-1_72.dll', 'KataGo/katago', 'KataGo/katago-bs52.exe', 'KataGo/katago.exe', 'KataGo/msvcp140.dll', 'KataGo/msvcp140_1.dll', 'KataGo/msvcp140_2.dll', 'KataGo/vcruntime140.dll', 'KataGo/vcruntime140_1.dll', 'KataGo/zlib1.dll', 'models/__init__.py', 'models/b15-1.3.2.txt.gz', 'img/anim_analyze.gif', 'img/anim_pvtop.gif', 'img/anim_teach.gif', 'img/icon.png', 'img/screenshot_analyze.png', 'img/screenshot_play.png', 'img/flaticon/bar.png', 'img/flaticon/gears.png', 'img/flaticon/go-game.png', 'img/flaticon/next.png', 'img/flaticon/next5.png', 'img/flaticon/next999.png', 'img/flaticon/open-folder.png', 'img/flaticon/previous.png', 'img/flaticon/previous5.png', 'img/flaticon/previous999.png', 'img/flaticon/bar.png', 'img/flaticon/gears.png', 'img/flaticon/go-game.png', 'img/flaticon/next.png', 'img/flaticon/next5.png', 'img/flaticon/next999.png', 'img/flaticon/open-folder.png', 'img/flaticon/previous.png', 'img/flaticon/previous5.png', 'img/flaticon/previous999.png'], 'tests': []}
running install
running bdist_egg
running egg_info
creating KaTrain.egg-info
writing KaTrain.egg-info/PKG-INFO
writing dependency_links to KaTrain.egg-info/dependency_links.txt
writing entry points to KaTrain.egg-info/entry_points.txt
writing requirements to KaTrain.egg-info/requires.txt
writing top-level names to KaTrain.egg-info/top_level.txt
writing manifest file 'KaTrain.egg-info/SOURCES.txt'
reading manifest file 'KaTrain.egg-info/SOURCES.txt'
writing manifest file 'KaTrain.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/katrain
copying katrain/__init__.py -> build/lib/katrain
copying katrain/__main__.py -> build/lib/katrain
creating build/lib/katrain/KataGo
copying katrain/KataGo/__init__.py -> build/lib/katrain/KataGo
creating build/lib/katrain/core
copying katrain/core/__init__.py -> build/lib/katrain/core
copying katrain/core/ai.py -> build/lib/katrain/core
copying katrain/core/common.py -> build/lib/katrain/core
copying katrain/core/engine.py -> build/lib/katrain/core
copying katrain/core/game.py -> build/lib/katrain/core
copying katrain/core/game_node.py -> build/lib/katrain/core
copying katrain/core/sgf_parser.py -> build/lib/katrain/core
creating build/lib/katrain/gui
copying katrain/gui/__init__.py -> build/lib/katrain/gui
copying katrain/gui/badukpan.py -> build/lib/katrain/gui
copying katrain/gui/controls.py -> build/lib/katrain/gui
copying katrain/gui/kivyutils.py -> build/lib/katrain/gui
copying katrain/gui/popups.py -> build/lib/katrain/gui
creating build/lib/katrain/models
copying katrain/models/__init__.py -> build/lib/katrain/models
copying katrain/config.json -> build/lib/katrain
copying katrain/gui.kv -> build/lib/katrain
copying katrain/KataGo/OpenCL.dll -> build/lib/katrain/KataGo
copying katrain/KataGo/analysis_config.cfg -> build/lib/katrain/KataGo
copying katrain/KataGo/boost_filesystem-vc142-mt-x64-1_72.dll -> build/lib/katrain/KataGo
copying katrain/KataGo/katago -> build/lib/katrain/KataGo
copying katrain/KataGo/katago-bs52.exe -> build/lib/katrain/KataGo
copying katrain/KataGo/katago.exe -> build/lib/katrain/KataGo
copying katrain/KataGo/msvcp140.dll -> build/lib/katrain/KataGo
copying katrain/KataGo/msvcp140_1.dll -> build/lib/katrain/KataGo
copying katrain/KataGo/msvcp140_2.dll -> build/lib/katrain/KataGo
copying katrain/KataGo/vcruntime140.dll -> build/lib/katrain/KataGo
copying katrain/KataGo/vcruntime140_1.dll -> build/lib/katrain/KataGo
copying katrain/KataGo/zlib1.dll -> build/lib/katrain/KataGo
copying katrain/models/b15-1.3.2.txt.gz -> build/lib/katrain/models
creating build/lib/katrain/img
copying katrain/img/anim_analyze.gif -> build/lib/katrain/img
copying katrain/img/anim_pvtop.gif -> build/lib/katrain/img
copying katrain/img/anim_teach.gif -> build/lib/katrain/img
copying katrain/img/icon.png -> build/lib/katrain/img
copying katrain/img/screenshot_analyze.png -> build/lib/katrain/img
copying katrain/img/screenshot_play.png -> build/lib/katrain/img
creating build/lib/katrain/img/flaticon
copying katrain/img/flaticon/bar.png -> build/lib/katrain/img/flaticon
copying katrain/img/flaticon/gears.png -> build/lib/katrain/img/flaticon
copying katrain/img/flaticon/go-game.png -> build/lib/katrain/img/flaticon
copying katrain/img/flaticon/next.png -> build/lib/katrain/img/flaticon
copying katrain/img/flaticon/next5.png -> build/lib/katrain/img/flaticon
copying katrain/img/flaticon/next999.png -> build/lib/katrain/img/flaticon
copying katrain/img/flaticon/open-folder.png -> build/lib/katrain/img/flaticon
copying katrain/img/flaticon/previous.png -> build/lib/katrain/img/flaticon
copying katrain/img/flaticon/previous5.png -> build/lib/katrain/img/flaticon
copying katrain/img/flaticon/previous999.png -> build/lib/katrain/img/flaticon
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/katrain
copying build/lib/katrain/__init__.py -> build/bdist.linux-x86_64/egg/katrain
copying build/lib/katrain/__main__.py -> build/bdist.linux-x86_64/egg/katrain
creating build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/__init__.py -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/OpenCL.dll -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/analysis_config.cfg -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/boost_filesystem-vc142-mt-x64-1_72.dll -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/katago -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/katago-bs52.exe -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/katago.exe -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/msvcp140.dll -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/msvcp140_1.dll -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/msvcp140_2.dll -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/vcruntime140.dll -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/vcruntime140_1.dll -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/zlib1.dll -> build/bdist.linux-x86_64/egg/katrain/KataGo
creating build/bdist.linux-x86_64/egg/katrain/core
copying build/lib/katrain/core/__init__.py -> build/bdist.linux-x86_64/egg/katrain/core
copying build/lib/katrain/core/ai.py -> build/bdist.linux-x86_64/egg/katrain/core
copying build/lib/katrain/core/common.py -> build/bdist.linux-x86_64/egg/katrain/core
copying build/lib/katrain/core/engine.py -> build/bdist.linux-x86_64/egg/katrain/core
copying build/lib/katrain/core/game.py -> build/bdist.linux-x86_64/egg/katrain/core
copying build/lib/katrain/core/game_node.py -> build/bdist.linux-x86_64/egg/katrain/core
copying build/lib/katrain/core/sgf_parser.py -> build/bdist.linux-x86_64/egg/katrain/core
creating build/bdist.linux-x86_64/egg/katrain/gui
copying build/lib/katrain/gui/__init__.py -> build/bdist.linux-x86_64/egg/katrain/gui
copying build/lib/katrain/gui/badukpan.py -> build/bdist.linux-x86_64/egg/katrain/gui
copying build/lib/katrain/gui/controls.py -> build/bdist.linux-x86_64/egg/katrain/gui
copying build/lib/katrain/gui/kivyutils.py -> build/bdist.linux-x86_64/egg/katrain/gui
copying build/lib/katrain/gui/popups.py -> build/bdist.linux-x86_64/egg/katrain/gui
creating build/bdist.linux-x86_64/egg/katrain/models
copying build/lib/katrain/models/__init__.py -> build/bdist.linux-x86_64/egg/katrain/models
copying build/lib/katrain/models/b15-1.3.2.txt.gz -> build/bdist.linux-x86_64/egg/katrain/models
copying build/lib/katrain/config.json -> build/bdist.linux-x86_64/egg/katrain
copying build/lib/katrain/gui.kv -> build/bdist.linux-x86_64/egg/katrain
creating build/bdist.linux-x86_64/egg/katrain/img
copying build/lib/katrain/img/anim_analyze.gif -> build/bdist.linux-x86_64/egg/katrain/img
copying build/lib/katrain/img/anim_pvtop.gif -> build/bdist.linux-x86_64/egg/katrain/img
copying build/lib/katrain/img/anim_teach.gif -> build/bdist.linux-x86_64/egg/katrain/img
copying build/lib/katrain/img/icon.png -> build/bdist.linux-x86_64/egg/katrain/img
copying build/lib/katrain/img/screenshot_analyze.png -> build/bdist.linux-x86_64/egg/katrain/img
copying build/lib/katrain/img/screenshot_play.png -> build/bdist.linux-x86_64/egg/katrain/img
creating build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/bar.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/gears.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/go-game.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/next.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/next5.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/next999.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/open-folder.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/previous.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/previous5.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/previous999.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
byte-compiling build/bdist.linux-x86_64/egg/katrain/KataGo/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/__main__.py to __main__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/core/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/core/ai.py to ai.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/core/common.py to common.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/core/engine.py to engine.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/core/game.py to game.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/core/game_node.py to game_node.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/core/sgf_parser.py to sgf_parser.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/gui/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/gui/badukpan.py to badukpan.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/gui/controls.py to controls.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/gui/kivyutils.py to kivyutils.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/gui/popups.py to popups.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/models/__init__.py to __init__.cpython-36.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying KaTrain.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying KaTrain.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying KaTrain.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying KaTrain.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying KaTrain.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying KaTrain.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/KaTrain-1.0.5-py3.6.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing KaTrain-1.0.5-py3.6.egg
Copying KaTrain-1.0.5-py3.6.egg to /home/pjtraill/.local/lib/python3.6/site-packages
Adding KaTrain 1.0.5 to easy-install.pth file
Installing katrain script to /home/pjtraill/.local/bin
Installed /home/pjtraill/.local/lib/python3.6/site-packages/KaTrain-1.0.5-py3.6.egg
Processing dependencies for KaTrain==1.0.5
Searching for importlib_resources
Reading https://pypi.org/simple/importlib_resources/
Downloading https://files.pythonhosted.org/packages/7f/2d/88f166bcaadc09d9fdbf1c336ad118e01b7fe1155e15675e125be2ff1899/importlib_resources-1.5.0-py2.py3-none-any.whl#sha256=85dc0b9b325ff78c8bef2e4ff42616094e16b98ebd5e3b50fe7e2f0bbcdcde49
Best match: importlib-resources 1.5.0
Processing importlib_resources-1.5.0-py2.py3-none-any.whl
Installing importlib_resources-1.5.0-py2.py3-none-any.whl to /home/pjtraill/.local/lib/python3.6/site-packages
writing requirements to /home/pjtraill/.local/lib/python3.6/site-packages/importlib_resources-1.5.0-py3.6.egg/EGG-INFO/requires.txt
Adding importlib-resources 1.5.0 to easy-install.pth file
Installed /home/pjtraill/.local/lib/python3.6/site-packages/importlib_resources-1.5.0-py3.6.egg
Searching for kivy
Reading https://pypi.org/simple/kivy/
Downloading https://files.pythonhosted.org/packages/01/57/aae0abdf40f89f3535eeb6f9611a8b6efe86a44a785cec7efa92f60b1d85/Kivy-2.0.0rc2.tar.gz#sha256=750dad044eff22fae83f110fc332e8565fdab8e6daaabd93131438f3bb05deb1
Best match: Kivy 2.0.0rc2
Processing Kivy-2.0.0rc2.tar.gz
Writing /tmp/easy_install-_amgsz4z/Kivy-2.0.0rc2/setup.cfg
Running Kivy-2.0.0rc2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_amgsz4z/Kivy-2.0.0rc2/egg-dist-tmp-6sipl2os
error: SandboxViolation: mkdir('/home/pjtraill/.kivy',) {}
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
Messages from run after installing extra packages:
~/.local/bin/katrain
[WARNING] [Config ] Older configuration version detected (0 instead of 20)
[WARNING] [Config ] Upgrading configuration in progress.
[INFO ] [Logger ] Record log in /home/pjtraill/.kivy/logs/kivy_20-05-15_0.txt
[INFO ] [Kivy ] v1.10.1
[INFO ] [Python ] v3.6.10 (default, Jan 16 2020, 09:12:04) [GCC]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
xclip version 0.13
Copyright (C) 2001-2008 Kim Saunders et al.
Distributed under the terms of the GNU GPL
[INFO ] [Clipboard ] Provider: xclip
[INFO ] [CutBuffer ] cut buffer support enabled
[INFO ] [Text ] Provider: sdl2
[INFO ] [Window ] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] Backend used <gl>
[INFO ] [GL ] OpenGL version <b'3.0 Mesa 18.3.2'>
[INFO ] [GL ] OpenGL vendor <b'Intel Open Source Technology Center'>
[INFO ] [GL ] OpenGL renderer <b'Mesa DRI Intel(R) Haswell Mobile '>
[INFO ] [GL ] OpenGL parsed version: 3, 0
[INFO ] [GL ] Shading version <b'1.30'>
[INFO ] [GL ] Texture max size <16384>
[INFO ] [GL ] Texture max units <32>
[INFO ] [Window ] auto add sdl2 input provider
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
Traceback (most recent call last):
File "/home/pjtraill/.local/bin/katrain", line 11, in <module>
load_entry_point('KaTrain==1.0.5', 'console_scripts', 'katrain')()
File "/home/pjtraill/.local/lib/python3.6/site-packages/KaTrain-1.0.5-py3.6.egg/katrain/__main__.py", line 352, in run_app
File "/usr/lib64/python3.6/site-packages/kivy/lang/builder.py", line 288, in load_file
with open(filename, 'r') as fd:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpg24_v_omgui.kv'
Rerunning the setup command (without doing any sort of cleanup first): etc etc
creating 'dist/KaTrain-1.0.5-py3.6.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing KaTrain-1.0.5-py3.6.egg
Removing /home/pjtraill/.local/lib/python3.6/site-packages/KaTrain-1.0.5-py3.6.egg
Copying KaTrain-1.0.5-py3.6.egg to /home/pjtraill/.local/lib/python3.6/site-packages
KaTrain 1.0.5 is already the active version in easy-install.pth
Installing katrain script to /home/pjtraill/.local/bin
Installed /home/pjtraill/.local/lib/python3.6/site-packages/KaTrain-1.0.5-py3.6.egg
Processing dependencies for KaTrain==1.0.5
Searching for importlib-resources==1.5.0
Best match: importlib-resources 1.5.0
Processing importlib_resources-1.5.0-py3.6.egg
importlib-resources 1.5.0 is already the active version in easy-install.pth
Using /home/pjtraill/.local/lib/python3.6/site-packages/importlib_resources-1.5.0-py3.6.egg
Searching for Kivy==1.10.1
Best match: Kivy 1.10.1
Adding Kivy 1.10.1 to easy-install.pth file
Using /usr/lib64/python3.6/site-packages
Searching for zipp==0.6.0
Best match: zipp 0.6.0
Adding zipp 0.6.0 to easy-install.pth file
Using /usr/lib/python3.6/site-packages
Searching for importlib-metadata==1.5.0
Best match: importlib-metadata 1.5.0
Adding importlib-metadata 1.5.0 to easy-install.pth file
Using /usr/lib/python3.6/site-packages
Searching for more-itertools==4.2.0
Best match: more-itertools 4.2.0
Adding more-itertools 4.2.0 to easy-install.pth file
Using /usr/lib/python3.6/site-packages
Searching for six==1.11.0
Best match: six 1.11.0
Adding six 1.11.0 to easy-install.pth file
Using /usr/lib/python3.6/site-packages
Finished processing dependencies for KaTrain==1.0.5
Running it again with --debug
, much the same results as before:
[INFO ] [Logger ] Record log in /home/pjtraill/.kivy/logs/kivy_20-05-16_0.txt
[INFO ] [Kivy ] v1.10.1
[INFO ] [Python ] v3.6.10 (default, Jan 16 2020, 09:12:04) [GCC]
[INFO ] [Factory ] 194 symbols loaded
[DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout=None
[DEBUG ] [Cache ] register <kv.image> with limit=None, timeout=60
[DEBUG ] [Cache ] register <kv.atlas> with limit=None, timeout=None
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[DEBUG ] [Cache ] register <kv.texture> with limit=1000, timeout=60
[DEBUG ] [Cache ] register <kv.shader> with limit=1000, timeout=3600
xclip version 0.13
Copyright (C) 2001-2008 Kim Saunders et al.
Distributed under the terms of the GNU GPL
[INFO ] [Clipboard ] Provider: xclip
[INFO ] [CutBuffer ] cut buffer support enabled
[INFO ] [Text ] Provider: sdl2
[DEBUG ] [Window ] Ignored <egl_rpi> (import error)
[INFO ] [Window ] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO ] [GL ] Using the "OpenGL" graphics system
[DEBUG ] [GL ] glShaderBinary is not available
[INFO ] [GL ] Backend used <gl>
[INFO ] [GL ] OpenGL version <b'3.0 Mesa 18.3.2'>
[INFO ] [GL ] OpenGL vendor <b'Intel Open Source Technology Center'>
[INFO ] [GL ] OpenGL renderer <b'Mesa DRI Intel(R) Haswell Mobile '>
[INFO ] [GL ] OpenGL parsed version: 3, 0
[INFO ] [GL ] Shading version <b'1.30'>
[INFO ] [GL ] Texture max size <16384>
[INFO ] [GL ] Texture max units <32>
[DEBUG ] [Shader ] Fragment compiled successfully
[DEBUG ] [Shader ] Vertex compiled successfully
[DEBUG ] [ImageSDL2 ] Load </usr/lib64/python3.6/site-packages/kivy/data/glsl/default.png>
[INFO ] [Window ] auto add sdl2 input provider
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
[DEBUG ] [Cache ] register <textinput.label> with limit=None, timeout=60.0
[DEBUG ] [Cache ] register <textinput.width> with limit=None, timeout=60.0
[DEBUG ] [Resource ] add </tmp> in path list
Traceback (most recent call last):
File "/home/pjtraill/.local/bin/katrain", line 11, in <module>
load_entry_point('KaTrain==1.0.5', 'console_scripts', 'katrain')()
File "/home/pjtraill/.local/lib/python3.6/site-packages/KaTrain-1.0.5-py3.6.egg/katrain/__main__.py", line 352, in run_app
File "/usr/lib64/python3.6/site-packages/kivy/lang/builder.py", line 288, in load_file
with open(filename, 'r') as fd:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpl811s8xzgui.kv'
error: SandboxViolation: mkdir('/home/pjtraill/.kivy',) {}
is the error, and I've not seen it before. My entire python installation is in my profile (anaconda based) so it's hard to reproduce. Regardless, I see your kivy version is higher, so initially thought that may be it, will update to specify it in the next version anyway.
Regardless of this you should be able to run katrain using python katrain.py
or python -m katrain
without installing.
Ah I see the second setup does install kivy 1. Curious.
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpg24_v_omgui.kv'
Now there's a strange error! This is related to extracting resources from a package. This particular one can be avoided as a file though, so maybe we can try some things -- do you have a discord I can contact you on?
reproduced now, definitely a problem with egg files, will look more into it tomorrow. pip install / normal run should work fine.
@PJTraill please try
pip3 install .
instead of running setup.py
Thanks for your comments; glad to hear you have it narrowed down. I did not worry much about the first (kivy) error as I had guessed that I needed to install more stuff and that seemed to have helped.
pip3 install .
did not work as it still wanted to update system directories.
--user
option, as below.
suggested command pip install --upgrade pip
(as root
).pip install --upgrade pip
— that could not find a .egg
.python3 setup.py install --user
) — that appeared to run correctly.katrain
— that complained that I had kivy 1.10.1
while the application required 1.11.0
.pip3 install --user .
— that ran fairly well except that it said I had no wheel
, but did not resolve the errors running katrain
.python3-wheel
.pip3 install --user .
Error initializing plugin Google = keyrings.alt.Google.
.
katrain
.This leaves me with these questions:
pip3 20.0
damaged my python installation?
pip3 10.0.1
? If so, how?kivy 1.11.0
(or higher / etc.)? If so, how?pjtraill@linux-czvq:~/Documents/Fun/Go/Programmes/KaTrain/katrain> ls
CONTRIBUTORS INSTALL.md KaTrain.egg-info LICENSE Pipfile Pipfile.lock README.md bots build dist katrain katrain.py setup.py spec tests
pjtraill@linux-czvq:~/Documents/Fun/Go/Programmes/KaTrain/katrain> python katrain.py
Traceback (most recent call last):
File "katrain.py", line 2, in <module>
from katrain.__main__ import run_app
File "/home/pjtraill/Documents/Fun/Go/Programmes/KaTrain/katrain/katrain/__main__.py", line 58
self.controls.set_status(f"KataGo engine starting...")
^
SyntaxError: invalid syntax
pjtraill@linux-czvq:~/Documents/Fun/Go/Programmes/KaTrain/katrain> python -m katrain
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 163, in _run_module_as_main
mod_name, _Error)
File "/usr/lib64/python2.7/runpy.py", line 114, in _get_module_details
return _get_module_details(pkg_main_name)
File "/usr/lib64/python2.7/runpy.py", line 119, in _get_module_details
code = loader.get_code(mod_name)
File "/usr/lib64/python2.7/pkgutil.py", line 283, in get_code
self.code = compile(source, self.filename, 'exec')
File "/home/pjtraill/Documents/Fun/Go/Programmes/KaTrain/katrain/katrain/__main__.py", line 58
self.controls.set_status(f"KataGo engine starting...")
^
SyntaxError: invalid syntax
pjtraill@linux-czvq:~/Documents/Fun/Go/Programmes/KaTrain/katrain> pip3 install .
Processing /home/pjtraill/Documents/Fun/Go/Programmes/KaTrain/katrain
Requirement already satisfied: kivy in /usr/lib64/python3.6/site-packages (from KaTrain==1.0.5) (1.10.1)
Requirement already satisfied: importlib_resources in /home/pjtraill/.local/lib/python3.6/site-packages/importlib_resources-1.5.0-py3.6.egg (from KaTrain==1.0.5) (1.5.0)
Requirement already satisfied: importlib-metadata in /usr/lib/python3.6/site-packages (from importlib_resources->KaTrain==1.0.5) (1.5.0)
Requirement already satisfied: zipp>=0.4 in /usr/lib/python3.6/site-packages (from importlib_resources->KaTrain==1.0.5) (0.6.0)
Requirement already satisfied: more_itertools in /usr/lib/python3.6/site-packages (from zipp>=0.4->importlib_resources->KaTrain==1.0.5) (4.2.0)
Requirement already satisfied: six<2.0.0,>=1.0.0 in /usr/lib/python3.6/site-packages (from more_itertools->zipp>=0.4->importlib_resources->KaTrain==1.0.5) (1.11.0)
Installing collected packages: KaTrain
Found existing installation: KaTrain 1.0.5
Uninstalling KaTrain-1.0.5:
Successfully uninstalled KaTrain-1.0.5
Running setup.py install for KaTrain ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-_ujpo0hw/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-ogkijq5d/install-record.txt --single-version-externally-managed --compile:
['katrain', 'katrain.KataGo', 'katrain.core', 'katrain.gui', 'katrain.models'] {'': ['*.json', '*.kv'], 'katrain': ['KataGo/OpenCL.dll', 'KataGo/__init__.py', 'KataGo/analysis_config.cfg', 'KataGo/boost_filesystem-vc142-mt-x64-1_72.dll', 'KataGo/katago', 'KataGo/katago-bs52.exe', 'KataGo/katago.exe', 'KataGo/msvcp140.dll', 'KataGo/msvcp140_1.dll', 'KataGo/msvcp140_2.dll', 'KataGo/vcruntime140.dll', 'KataGo/vcruntime140_1.dll', 'KataGo/zlib1.dll', 'models/__init__.py', 'models/b15-1.3.2.txt.gz', 'img/anim_analyze.gif', 'img/anim_pvtop.gif', 'img/anim_teach.gif', 'img/icon.png', 'img/screenshot_analyze.png', 'img/screenshot_play.png', 'img/flaticon/bar.png', 'img/flaticon/gears.png', 'img/flaticon/go-game.png', 'img/flaticon/next.png', 'img/flaticon/next5.png', 'img/flaticon/next999.png', 'img/flaticon/open-folder.png', 'img/flaticon/previous.png', 'img/flaticon/previous5.png', 'img/flaticon/previous999.png', 'img/flaticon/bar.png', 'img/flaticon/gears.png', 'img/flaticon/go-game.png', 'img/flaticon/next.png', 'img/flaticon/next5.png', 'img/flaticon/next999.png', 'img/flaticon/open-folder.png', 'img/flaticon/previous.png', 'img/flaticon/previous5.png', 'img/flaticon/previous999.png'], 'tests': []}
running install
running build
running build_py
running install_lib
creating /usr/lib/python3.6/site-packages/katrain
error: could not create '/usr/lib/python3.6/site-packages/katrain': Permission denied
----------------------------------------
Rolling back uninstall of KaTrain
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-_ujpo0hw/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-ogkijq5d/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-req-build-_ujpo0hw/
You are using pip version 10.0.1, however version 20.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
pjtraill@linux-czvq:~/Documents/Fun/Go/Programmes/KaTrain/katrain> pip3 install .
Defaulting to user installation because normal site-packages is not writeable
Processing /home/pjtraill/Documents/Fun/Go/Programmes/KaTrain/katrain
Requirement already satisfied: kivy in /usr/lib64/python3.6/site-packages (from KaTrain==1.0.5) (1.10.1)
Requirement already satisfied: importlib_resources in /home/pjtraill/.local/lib/python3.6/site-packages/importlib_resources-1.5.0-py3.6.egg (from KaTrain==1.0.5) (1.5.0)
Requirement already satisfied: importlib-metadata in /usr/lib/python3.6/site-packages (from importlib_resources->KaTrain==1.0.5) (1.5.0)
Requirement already satisfied: zipp>=0.4 in /usr/lib/python3.6/site-packages (from importlib_resources->KaTrain==1.0.5) (0.6.0)
Requirement already satisfied: more_itertools in /usr/lib/python3.6/site-packages (from zipp>=0.4->importlib_resources->KaTrain==1.0.5) (4.2.0)
Requirement already satisfied: six<2.0.0,>=1.0.0 in /usr/lib/python3.6/site-packages (from more_itertools->zipp>=0.4->importlib_resources->KaTrain==1.0.5) (1.11.0)
Could not build wheels for KaTrain, since package 'wheel' is not installed.
Could not build wheels for kivy, since package 'wheel' is not installed.
Could not build wheels for importlib-resources, since package 'wheel' is not installed.
Could not build wheels for importlib-metadata, since package 'wheel' is not installed.
Could not build wheels for zipp, since package 'wheel' is not installed.
Could not build wheels for more-itertools, since package 'wheel' is not installed.
Could not build wheels for six, since package 'wheel' is not installed.
Installing collected packages: KaTrain
Attempting uninstall: KaTrain
Found existing installation: KaTrain 1.0.5
Uninstalling KaTrain-1.0.5:
Successfully uninstalled KaTrain-1.0.5
Running setup.py install for KaTrain ... done
Successfully installed KaTrain-1.0.5
Traceback (most recent call last):
File "/usr/bin/pip3", line 11, in <module>
sys.exit(main())
File "/usr/lib/python3.6/site-packages/pip/_internal/cli/main.py", line 75, in main
return command.main(cmd_args)
File "/usr/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 114, in main
return self._main(args)
File "/usr/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 226, in _main
self.handle_pip_version_check(options)
File "/usr/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 155, in handle_pip_version_check
timeout=min(5, options.timeout)
File "/usr/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 100, in _build_session
index_urls=self._get_index_urls(options),
File "/usr/lib/python3.6/site-packages/pip/_internal/network/session.py", line 249, in __init__
self.headers["User-Agent"] = user_agent()
File "/usr/lib/python3.6/site-packages/pip/_internal/network/session.py", line 159, in user_agent
setuptools_version = get_installed_version("setuptools")
File "/usr/lib/python3.6/site-packages/pip/_internal/utils/misc.py", line 634, in get_installed_version
working_set = pkg_resources.WorkingSet()
File "/usr/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 567, in __init__
self.add_entry(entry)
File "/usr/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 623, in add_entry
for dist in find_distributions(entry, True):
File "/usr/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1983, in find_eggs_in_zip
if metadata.has_metadata('PKG-INFO'):
File "/usr/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1414, in has_metadata
return self._has(path)
File "/usr/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1854, in _has
return zip_path in self.zipinfo or zip_path in self._index()
File "/usr/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1731, in zipinfo
return self._zip_manifests.load(self.loader.archive)
File "/usr/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1688, in load
mtime = os.stat(path).st_mtime
FileNotFoundError: [Errno 2] No such file or directory: '/home/pjtraill/.local/lib/python3.6/site-packages/KaTrain-1.0.5-py3.6.egg'
pjtraill@linux-czvq:~/Documents/Fun/Go/Programmes/KaTrain/katrain> python3 setup.py install --user
['katrain', 'katrain.KataGo', 'katrain.core', 'katrain.gui', 'katrain.models'] {'': ['*.json', '*.kv'], 'katrain': ['KataGo/OpenCL.dll', 'KataGo/__init__.py', 'KataGo/analysis_config.cfg', 'KataGo/boost_filesystem-vc142-mt-x64-1_72.dll', 'KataGo/katago', 'KataGo/katago-bs52.exe', 'KataGo/katago.exe', 'KataGo/msvcp140.dll', 'KataGo/msvcp140_1.dll', 'KataGo/msvcp140_2.dll', 'KataGo/vcruntime140.dll', 'KataGo/vcruntime140_1.dll', 'KataGo/zlib1.dll', 'models/__init__.py', 'models/b15-1.3.2.txt.gz', 'img/anim_analyze.gif', 'img/anim_pvtop.gif', 'img/anim_teach.gif', 'img/icon.png', 'img/screenshot_analyze.png', 'img/screenshot_play.png', 'img/flaticon/bar.png', 'img/flaticon/gears.png', 'img/flaticon/go-game.png', 'img/flaticon/next.png', 'img/flaticon/next5.png', 'img/flaticon/next999.png', 'img/flaticon/open-folder.png', 'img/flaticon/previous.png', 'img/flaticon/previous5.png', 'img/flaticon/previous999.png', 'img/flaticon/bar.png', 'img/flaticon/gears.png', 'img/flaticon/go-game.png', 'img/flaticon/next.png', 'img/flaticon/next5.png', 'img/flaticon/next999.png', 'img/flaticon/open-folder.png', 'img/flaticon/previous.png', 'img/flaticon/previous5.png', 'img/flaticon/previous999.png'], 'tests': []}
running install
running bdist_egg
running egg_info
writing KaTrain.egg-info/PKG-INFO
writing dependency_links to KaTrain.egg-info/dependency_links.txt
writing entry points to KaTrain.egg-info/entry_points.txt
writing requirements to KaTrain.egg-info/requires.txt
writing top-level names to KaTrain.egg-info/top_level.txt
reading manifest file 'KaTrain.egg-info/SOURCES.txt'
writing manifest file 'KaTrain.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/katrain
copying build/lib/katrain/__init__.py -> build/bdist.linux-x86_64/egg/katrain
copying build/lib/katrain/__main__.py -> build/bdist.linux-x86_64/egg/katrain
creating build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/__init__.py -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/OpenCL.dll -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/analysis_config.cfg -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/boost_filesystem-vc142-mt-x64-1_72.dll -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/katago -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/katago-bs52.exe -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/katago.exe -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/msvcp140.dll -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/msvcp140_1.dll -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/msvcp140_2.dll -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/vcruntime140.dll -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/vcruntime140_1.dll -> build/bdist.linux-x86_64/egg/katrain/KataGo
copying build/lib/katrain/KataGo/zlib1.dll -> build/bdist.linux-x86_64/egg/katrain/KataGo
creating build/bdist.linux-x86_64/egg/katrain/core
copying build/lib/katrain/core/__init__.py -> build/bdist.linux-x86_64/egg/katrain/core
copying build/lib/katrain/core/ai.py -> build/bdist.linux-x86_64/egg/katrain/core
copying build/lib/katrain/core/common.py -> build/bdist.linux-x86_64/egg/katrain/core
copying build/lib/katrain/core/engine.py -> build/bdist.linux-x86_64/egg/katrain/core
copying build/lib/katrain/core/game.py -> build/bdist.linux-x86_64/egg/katrain/core
copying build/lib/katrain/core/game_node.py -> build/bdist.linux-x86_64/egg/katrain/core
copying build/lib/katrain/core/sgf_parser.py -> build/bdist.linux-x86_64/egg/katrain/core
creating build/bdist.linux-x86_64/egg/katrain/gui
copying build/lib/katrain/gui/__init__.py -> build/bdist.linux-x86_64/egg/katrain/gui
copying build/lib/katrain/gui/badukpan.py -> build/bdist.linux-x86_64/egg/katrain/gui
copying build/lib/katrain/gui/controls.py -> build/bdist.linux-x86_64/egg/katrain/gui
copying build/lib/katrain/gui/kivyutils.py -> build/bdist.linux-x86_64/egg/katrain/gui
copying build/lib/katrain/gui/popups.py -> build/bdist.linux-x86_64/egg/katrain/gui
creating build/bdist.linux-x86_64/egg/katrain/models
copying build/lib/katrain/models/__init__.py -> build/bdist.linux-x86_64/egg/katrain/models
copying build/lib/katrain/models/b15-1.3.2.txt.gz -> build/bdist.linux-x86_64/egg/katrain/models
copying build/lib/katrain/config.json -> build/bdist.linux-x86_64/egg/katrain
copying build/lib/katrain/gui.kv -> build/bdist.linux-x86_64/egg/katrain
creating build/bdist.linux-x86_64/egg/katrain/img
copying build/lib/katrain/img/anim_analyze.gif -> build/bdist.linux-x86_64/egg/katrain/img
copying build/lib/katrain/img/anim_pvtop.gif -> build/bdist.linux-x86_64/egg/katrain/img
copying build/lib/katrain/img/anim_teach.gif -> build/bdist.linux-x86_64/egg/katrain/img
copying build/lib/katrain/img/icon.png -> build/bdist.linux-x86_64/egg/katrain/img
copying build/lib/katrain/img/screenshot_analyze.png -> build/bdist.linux-x86_64/egg/katrain/img
copying build/lib/katrain/img/screenshot_play.png -> build/bdist.linux-x86_64/egg/katrain/img
creating build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/bar.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/gears.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/go-game.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/next.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/next5.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/next999.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/open-folder.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/previous.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/previous5.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
copying build/lib/katrain/img/flaticon/previous999.png -> build/bdist.linux-x86_64/egg/katrain/img/flaticon
byte-compiling build/bdist.linux-x86_64/egg/katrain/KataGo/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/__main__.py to __main__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/core/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/core/ai.py to ai.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/core/common.py to common.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/core/engine.py to engine.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/core/game.py to game.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/core/game_node.py to game_node.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/core/sgf_parser.py to sgf_parser.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/gui/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/gui/badukpan.py to badukpan.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/gui/controls.py to controls.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/gui/kivyutils.py to kivyutils.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/gui/popups.py to popups.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/katrain/models/__init__.py to __init__.cpython-36.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying KaTrain.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying KaTrain.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying KaTrain.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying KaTrain.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying KaTrain.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying KaTrain.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
creating 'dist/KaTrain-1.0.5-py3.6.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing KaTrain-1.0.5-py3.6.egg
Copying KaTrain-1.0.5-py3.6.egg to /home/pjtraill/.local/lib/python3.6/site-packages
Adding KaTrain 1.0.5 to easy-install.pth file
Installing katrain script to /home/pjtraill/.local/bin
Installed /home/pjtraill/.local/lib/python3.6/site-packages/KaTrain-1.0.5-py3.6.egg
Processing dependencies for KaTrain==1.0.5
Searching for importlib-resources==1.5.0
Best match: importlib-resources 1.5.0
Processing importlib_resources-1.5.0-py3.6.egg
importlib-resources 1.5.0 is already the active version in easy-install.pth
Using /home/pjtraill/.local/lib/python3.6/site-packages/importlib_resources-1.5.0-py3.6.egg
Searching for Kivy==1.10.1
Best match: Kivy 1.10.1
Adding Kivy 1.10.1 to easy-install.pth file
Using /usr/lib64/python3.6/site-packages
Searching for zipp==0.6.0
Best match: zipp 0.6.0
Adding zipp 0.6.0 to easy-install.pth file
Using /usr/lib/python3.6/site-packages
Searching for importlib-metadata==1.5.0
Best match: importlib-metadata 1.5.0
Adding importlib-metadata 1.5.0 to easy-install.pth file
Using /usr/lib/python3.6/site-packages
Searching for more-itertools==4.2.0
Best match: more-itertools 4.2.0
Adding more-itertools 4.2.0 to easy-install.pth file
Using /usr/lib/python3.6/site-packages
Searching for six==1.11.0
Best match: six 1.11.0
Adding six 1.11.0 to easy-install.pth file
Using /usr/lib/python3.6/site-packages
Finished processing dependencies for KaTrain==1.0.5
pjtraill@linux-czvq:~/Documents/Fun/Go/Programmes/KaTrain/katrain>
pjtraill@linux-czvq:~/Documents/Fun/Go/Programmes/KaTrain/katrain> ~/.local/bin/katrain --debug -w
[INFO ] [Logger ] Record log in /home/pjtraill/.kivy/logs/kivy_20-05-16_4.txt
[INFO ] [Kivy ] v1.10.1
[INFO ] [Python ] v3.6.10 (default, Jan 16 2020, 09:12:04) [GCC]
[INFO ] [Factory ] 194 symbols loaded
[DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout=None
[DEBUG ] [Cache ] register <kv.image> with limit=None, timeout=60
[DEBUG ] [Cache ] register <kv.atlas> with limit=None, timeout=None
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[DEBUG ] [Cache ] register <kv.texture> with limit=1000, timeout=60
[DEBUG ] [Cache ] register <kv.shader> with limit=1000, timeout=3600
xclip version 0.13
Copyright (C) 2001-2008 Kim Saunders et al.
Distributed under the terms of the GNU GPL
[INFO ] [Clipboard ] Provider: xclip
[INFO ] [CutBuffer ] cut buffer support enabled
[INFO ] [Text ] Provider: sdl2
[DEBUG ] [Window ] Ignored <egl_rpi> (import error)
[INFO ] [Window ] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO ] [GL ] Using the "OpenGL" graphics system
[DEBUG ] [GL ] glShaderBinary is not available
[INFO ] [GL ] Backend used <gl>
[INFO ] [GL ] OpenGL version <b'3.0 Mesa 18.3.2'>
[INFO ] [GL ] OpenGL vendor <b'Intel Open Source Technology Center'>
[INFO ] [GL ] OpenGL renderer <b'Mesa DRI Intel(R) Haswell Mobile '>
[INFO ] [GL ] OpenGL parsed version: 3, 0
[INFO ] [GL ] Shading version <b'1.30'>
[INFO ] [GL ] Texture max size <16384>
[INFO ] [GL ] Texture max units <32>
[DEBUG ] [Shader ] Fragment compiled successfully
[DEBUG ] [Shader ] Vertex compiled successfully
[DEBUG ] [ImageSDL2 ] Load </usr/lib64/python3.6/site-packages/kivy/data/glsl/default.png>
[INFO ] [Window ] auto add sdl2 input provider
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
[DEBUG ] [Cache ] register <textinput.label> with limit=None, timeout=60.0
[DEBUG ] [Cache ] register <textinput.width> with limit=None, timeout=60.0
[DEBUG ] [Resource ] add </home/pjtraill/.local/lib/python3.6/site-packages/katrain> in path list
Traceback (most recent call last):
File "/home/pjtraill/.local/bin/katrain", line 11, in <module>
load_entry_point('KaTrain==1.0.5', 'console_scripts', 'katrain')()
File "/home/pjtraill/.local/lib/python3.6/site-packages/katrain/__main__.py", line 352, in run_app
Builder.load_file(kv_file)
File "/usr/lib64/python3.6/site-packages/kivy/lang/builder.py", line 301, in load_file
return self.load_string(data, **kwargs)
File "/usr/lib64/python3.6/site-packages/kivy/lang/builder.py", line 368, in load_string
parser = Parser(content=string, filename=fn)
File "/usr/lib64/python3.6/site-packages/kivy/lang/parser.py", line 392, in __init__
self.parse(content)
File "/usr/lib64/python3.6/site-packages/kivy/lang/parser.py", line 498, in parse
self.execute_directives()
File "/usr/lib64/python3.6/site-packages/kivy/lang/parser.py", line 404, in execute_directives
require(version)
File "/usr/lib64/python3.6/site-packages/kivy/__init__.py", line 146, in require
__version__, version))
Exception: The version of Kivy installed on this system is too old. (You have 1.10.1, but the application requires 1.11.0)
--user
pjtraill@linux-czvq:~/Documents/Fun/Go/Programmes/KaTrain/katrain> pip3 install --user .
Processing /home/pjtraill/Documents/Fun/Go/Programmes/KaTrain/katrain
Requirement already satisfied: kivy in /usr/lib64/python3.6/site-packages (from KaTrain==1.0.5) (1.10.1)
Requirement already satisfied: importlib_resources in /home/pjtraill/.local/lib/python3.6/site-packages/importlib_resources-1.5.0-py3.6.egg (from KaTrain==1.0.5) (1.5.0)
Requirement already satisfied: importlib-metadata in /usr/lib/python3.6/site-packages (from importlib_resources->KaTrain==1.0.5) (1.5.0)
Requirement already satisfied: zipp>=0.4 in /usr/lib/python3.6/site-packages (from importlib_resources->KaTrain==1.0.5) (0.6.0)
Requirement already satisfied: more_itertools in /usr/lib/python3.6/site-packages (from zipp>=0.4->importlib_resources->KaTrain==1.0.5) (4.2.0)
Requirement already satisfied: six<2.0.0,>=1.0.0 in /usr/lib/python3.6/site-packages (from more_itertools->zipp>=0.4->importlib_resources->KaTrain==1.0.5) (1.11.0)
Could not build wheels for KaTrain, since package 'wheel' is not installed.
Could not build wheels for kivy, since package 'wheel' is not installed.
Could not build wheels for importlib-resources, since package 'wheel' is not installed.
Could not build wheels for importlib-metadata, since package 'wheel' is not installed.
Could not build wheels for zipp, since package 'wheel' is not installed.
Could not build wheels for more-itertools, since package 'wheel' is not installed.
Could not build wheels for six, since package 'wheel' is not installed.
Installing collected packages: KaTrain
Attempting uninstall: KaTrain
Found existing installation: KaTrain 1.0.5
Uninstalling KaTrain-1.0.5:
Successfully uninstalled KaTrain-1.0.5
Running setup.py install for KaTrain ... done
Successfully installed KaTrain-1.0.5
wheel
pjtraill@linux-czvq:~/Documents/Fun/Go/Programmes/KaTrain/katrain> pip3 install --user .
Error initializing plugin Google = keyrings.alt.Google.
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/keyring/backend.py", line 171, in _load_plugins
init_func = ep.load()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2343, in load
return self.resolve()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2349, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3.6/site-packages/keyrings/alt/Google.py", line 14, in <module>
import gdata.docs.service
File "/usr/lib/python3.6/site-packages/gdata/__init__.py", line 27, in <module>
import atom
File "/usr/lib/python3.6/site-packages/atom/__init__.py", line 133, in <module>
CreateClassFromXMLString)
File "/usr/lib/python3.6/site-packages/atom/__init__.py", line 97, in mark_deprecated
optional_warn_function.func_name = f.func_name
AttributeError: 'function' object has no attribute 'func_name'
Processing /home/pjtraill/Documents/Fun/Go/Programmes/KaTrain/katrain
Requirement already satisfied: kivy in /usr/lib64/python3.6/site-packages (from KaTrain==1.0.5) (1.10.1)
Requirement already satisfied: importlib_resources in /home/pjtraill/.local/lib/python3.6/site-packages/importlib_resources-1.5.0-py3.6.egg (from KaTrain==1.0.5) (1.5.0)
Requirement already satisfied: importlib-metadata in /usr/lib/python3.6/site-packages (from importlib_resources->KaTrain==1.0.5) (1.5.0)
Requirement already satisfied: zipp>=0.4 in /usr/lib/python3.6/site-packages (from importlib_resources->KaTrain==1.0.5) (0.6.0)
Requirement already satisfied: more_itertools in /usr/lib/python3.6/site-packages (from zipp>=0.4->importlib_resources->KaTrain==1.0.5) (4.2.0)
Requirement already satisfied: six<2.0.0,>=1.0.0 in /usr/lib/python3.6/site-packages (from more_itertools->zipp>=0.4->importlib_resources->KaTrain==1.0.5) (1.11.0)
Building wheels for collected packages: KaTrain
Building wheel for KaTrain (setup.py) ... done
Created wheel for KaTrain: filename=KaTrain-1.0.5-py3-none-any.whl size=56850768 sha256=f226fc3bb13006d73202b5aee19cfa652b8c6e562d45c2dbbe62c548731a99d3
Stored in directory: /tmp/pip-ephem-wheel-cache-20aycblv/wheels/c6/d5/14/3ae6ef114f178dae32ecafefacb19d45b8fe0d65eea7e289ea
Successfully built KaTrain
Installing collected packages: KaTrain
Attempting uninstall: KaTrain
Found existing installation: KaTrain 1.0.5
Uninstalling KaTrain-1.0.5:
Successfully uninstalled KaTrain-1.0.5
WARNING: The script katrain is installed in '/home/pjtraill/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed KaTrain-1.0.5
No, the new pip seeems fine. You can upgrade kivy using
pip3 install kivy -U
(possibly with sudo)
and for the syntax error I think your python
is an outdated 2.7, so try python3
@sanderland I just tried one more thing (installing python3-wheel), as in my updated previous comment (was writing while you posted). Now trying to update kivy, but that also has problems with google so I could try installing e.g. python3-google-api-python-client
— tried, but it did not help :-(.
Specifying python3 to run katrain resolves the syntax error, but now still hits the kivy version problem.
linux-czvq:~ # pip3 install kivy -U
Error initializing plugin Google = keyrings.alt.Google.
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/keyring/backend.py", line 171, in _load_plugins
init_func = ep.load()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2343, in load
return self.resolve()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2349, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3.6/site-packages/keyrings/alt/Google.py", line 14, in <module>
import gdata.docs.service
File "/usr/lib/python3.6/site-packages/gdata/__init__.py", line 27, in <module>
import atom
File "/usr/lib/python3.6/site-packages/atom/__init__.py", line 133, in <module>
CreateClassFromXMLString)
File "/usr/lib/python3.6/site-packages/atom/__init__.py", line 97, in mark_deprecated
optional_warn_function.func_name = f.func_name
AttributeError: 'function' object has no attribute 'func_name'
Gkr-Message: couldn't connect to dbus session bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Collecting kivy
Using cached Kivy-1.11.1-cp36-cp36m-manylinux2010_x86_64.whl (28.3 MB)
Requirement already satisfied, skipping upgrade: Kivy-Garden>=0.1.4 in /usr/lib/python3.6/site-packages (from kivy) (0.1.4)
Requirement already satisfied, skipping upgrade: pygments in /usr/lib/python3.6/site-packages (from kivy) (2.2.0)
Requirement already satisfied, skipping upgrade: docutils in /usr/lib/python3.6/site-packages (from kivy) (0.14)
Requirement already satisfied, skipping upgrade: requests in /usr/lib/python3.6/site-packages (from Kivy-Garden>=0.1.4->kivy) (2.20.1)
Requirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in /usr/lib/python3.6/site-packages (from requests->Kivy-Garden>=0.1.4->kivy) (3.0.4)
Requirement already satisfied, skipping upgrade: idna<2.8,>=2.5 in /usr/lib/python3.6/site-packages (from requests->Kivy-Garden>=0.1.4->kivy) (2.6)
Requirement already satisfied, skipping upgrade: urllib3<1.25,>=1.21.1 in /usr/lib/python3.6/site-packages (from requests->Kivy-Garden>=0.1.4->kivy) (1.24)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /usr/lib/python3.6/site-packages (from requests->Kivy-Garden>=0.1.4->kivy) (2018.1.18)
Installing collected packages: kivy
Attempting uninstall: kivy
Found existing installation: Kivy 1.10.1
ERROR: Cannot uninstall 'Kivy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
ERROR: Cannot uninstall 'Kivy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
oh god this is the OS and pip fighting over who gets to manage packages, forcing outdated packages and pythons on you.
One more thing to try then, open katrain/gui.kv
and edit the first line to say #:kivy 1.10.0
instead of 1.11. Then pip install again.
@sanderland It sounds as though katrain needs kivy 1.11
:
Traceback (most recent call last):
File "/usr/lib64/python3.6/site-packages/kivy/lang/builder.py", line 844, in _build_canvas
setattr(instr, key, value)
AttributeError: 'kivy.graphics.vertex_instructions.Line' object has no attribute 'dashes'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "katrain.py", line 4, in <module>
run_app()
File "/home/pjtraill/Documents/Fun/Go/Programmes/KaTrain/katrain/katrain/__main__.py", line 356, in run_app
app.run()
File "/usr/lib64/python3.6/site-packages/kivy/app.py", line 800, in run
root = self.build()
File "/home/pjtraill/Documents/Fun/Go/Programmes/KaTrain/katrain/katrain/__main__.py", line 323, in build
self.gui = KaTrainGui()
File "/home/pjtraill/Documents/Fun/Go/Programmes/KaTrain/katrain/katrain/__main__.py", line 38, in __init__
super(KaTrainGui, self).__init__(**kwargs)
File "/usr/lib64/python3.6/site-packages/kivy/uix/boxlayout.py", line 131, in __init__
super(BoxLayout, self).__init__(**kwargs)
File "/usr/lib64/python3.6/site-packages/kivy/uix/layout.py", line 76, in __init__
super(Layout, self).__init__(**kwargs)
File "/usr/lib64/python3.6/site-packages/kivy/uix/widget.py", line 348, in __init__
Builder.apply(self, ignored_consts=self._kwargs_applied_init)
File "/usr/lib64/python3.6/site-packages/kivy/lang/builder.py", line 469, in apply
self._apply_rule(widget, rule, rule, ignored_consts=ignored_consts)
File "/usr/lib64/python3.6/site-packages/kivy/lang/builder.py", line 585, in _apply_rule
self._apply_rule(child, crule, rootrule)
File "/usr/lib64/python3.6/site-packages/kivy/lang/builder.py", line 584, in _apply_rule
self.apply(child)
File "/usr/lib64/python3.6/site-packages/kivy/lang/builder.py", line 469, in apply
self._apply_rule(widget, rule, rule, ignored_consts=ignored_consts)
File "/usr/lib64/python3.6/site-packages/kivy/lang/builder.py", line 585, in _apply_rule
self._apply_rule(child, crule, rootrule)
File "/usr/lib64/python3.6/site-packages/kivy/lang/builder.py", line 585, in _apply_rule
self._apply_rule(child, crule, rootrule)
File "/usr/lib64/python3.6/site-packages/kivy/lang/builder.py", line 584, in _apply_rule
self.apply(child)
File "/usr/lib64/python3.6/site-packages/kivy/lang/builder.py", line 469, in apply
self._apply_rule(widget, rule, rule, ignored_consts=ignored_consts)
File "/usr/lib64/python3.6/site-packages/kivy/lang/builder.py", line 520, in _apply_rule
rule.canvas_before, rootrule)
File "/usr/lib64/python3.6/site-packages/kivy/lang/builder.py", line 849, in _build_canvas
'{}: {}'.format(e.__class__.__name__, e), cause=tb)
kivy.lang.builder.BuilderException: Parser: File "/home/pjtraill/Documents/Fun/Go/Programmes/KaTrain/katrain/katrain/gui.kv", line 246:
...
244: points: [root.pos[0]+self.width*root.marginx,root.whalf,root.pos[0]+self.width*(1-root.marginx),root.whalf]
245: width: 1.0
>> 246: dashes: [1,2]
247: Line:
248: points: [root.pos[0]+self.width*root.marginx,root.mid,root.pos[0]+self.width*(1-root.marginx),root.mid]
...
AttributeError: 'kivy.graphics.vertex_instructions.Line' object has no attribute 'dashes'
File "/usr/lib64/python3.6/site-packages/kivy/lang/builder.py", line 844, in _build_canvas
setattr(instr, key, value)
It looks as though I could install kivy 1.11.1 from Suse, though I have no idea what the difference is between these three offers from https://software.opensuse.org/package/python3-Kivy:
not sure, but the second one seems most normal.
and i checked a few versions in a virtual environment (another option to avoid OS errors) and kivy 1.11 and 2.0.0rc2 both work, but 1.10 has too many differences to be made compatible (and is over a year old, so weird that suse is calling it 'experimental')
Great improvement, I now get what looks like a pretty complete UI, but with an error message:
Had a look with Yast (because I thought I might need a python packed, but nothing there).
What I have is libzip.so.5
I guess they just are a bit slow to update the status.
aha, but you had a working katago right? you can just open settings in the bottom right and set engine/katago to that path.
Aha, I shall try that ... @sanderland ... and it seems to be working: I can play moves and it is telling me what KataGo thinks.
Thanks for all the help!
Great, I'll make the necessary updates on the docs and such to improve them!
Good to hear that you are going to update the documentation: I was going to suggest exactly that, and hoping you would not just close the issue and forget about it. I just hope it is not too much work keeping that sort of thing up to date; I suppose you will want to say which versions of which packages are needed, and perhaps it is worth mentioning for which version those were last updated. Or does python have some way of automatically extracting that, to which you could refer people?
The closing is just to note that it's resolved. :)
Yes, setup.py has specifications for the versions, and I've made it so it will force kivy >=1.11 It's not so much the work of keeping it up to date, as the fact that dependency management is something python does not do very well, and I can only test on my own setup.
By the way, could you try this binary and see if it complains about shared libraries as well? https://github.com/sanderland/katrain/blob/v1.0.6/katrain/KataGo/katago
@sanderland: :(
pjtraill@linux-czvq:~/Documents/Fun/Go/Programmes/KaTrain/1.0.6> ./katago --help
./katago: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by ./katago)
pjtraill@linux-czvq:~/Documents/Fun/Go/Programmes/KaTrain/1.0.6> ls -l /lib*/libc[^a-z]*
-rwxr-xr-x 1 root root 2125356 Apr 1 12:35 /lib/libc-2.26.so
lrwxrwxrwx 1 root root 12 Apr 1 12:35 /lib/libc.so.6 -> libc-2.26.so
-rwxr-xr-x 1 root root 2038480 Apr 1 12:24 /lib64/libc-2.26.so
lrwxrwxrwx 1 root root 12 Apr 1 12:23 /lib64/libc.so.6 -> libc-2.26.so
I hope github passed on my mail saying that I was on MSW and would try this later.
I have just noticed this in the output from katrain
:
[WARNING] [MTD ] Unable to open device "/dev/input/event1". Please ensure you have the appropriate permissions.
@sanderland: :(
:( but the binaries lightvector distributes do work? I should check with him then
P.S.
I hope github passed on my mail saying that I was on MSW and would try this later.
Nope, but it's ok :)
[WARNING] [MTD ] Unable to open device "/dev/input/event1". Please ensure you have the appropriate permissions.
This is just a weird kivy warning that doesn't matter.
I do not know about lightvector’s binary, as I build it myself from source; I think, though I forget any details, that is because I had a problem with the zip. But then again, I think that the binary distributed with Lizzie works, though there I also use my own build. I shall check this out.
I am a little surprised github did not pass on the mail, as it said in the notification e-mail “Reply to this email directly, view it on GitHub, or unsubscribe.”. Anyway, we have, I suppose, learnt something!
I cannot find a binary under Lizzie, perhaps that only comes with the MS Windows version, so I know no more than before.
https://github.com/lightvector/KataGo/releases has opencl and cuda binaries for linux. they're extremely big though, so I'm compiling something smaller. In that process I probably missed some static linking for older os'es.
Found an old distributed KataGo, which does not run for me. May be why I built it myself.
⬤> ⬤/katago-v1.3.1-opencl-linux-x64/katago --help
⬤/katago-v1.3.1-opencl-linux-x64/katago: error while loading shared libraries: libzip.so.4: cannot open shared object file: No such file or directory
@sanderland: I hope I can leave this with you now, as katrain is now working for me, but if you need something tested, let me know.
yep, I've confirmed the new binaries work on recent ubuntus etc, so that will do for now. Have fun with katrain! :)
Thanks! I am just getting to know what it can do.
I tried to run the setup and got the output shown below, which says I may need to be
root
. Is it possible to install KaTrain to a user directory instead, or do I indeed need to beroot
? In either case, perhaps you could mention this in the instructions.(N.B. I have a KataGo executable available.)