kivy-chess
kivy-chess copied to clipboard
libchess module missing on Mac OS X
Hi, I am seeing this error on the Mac OSX. Followed all the steps. Am I missing some steps?
(chess)kivy-chess$ kivy main.py
[INFO ] Kivy v1.8.0
Purge log fired. Analysing...
Purge finished !
[INFO ] [Logger ] Record log in /Users/sainalla/.kivy/logs/kivy_14-10-08_14.txt
[INFO ] [Factory ] 157 symbols loaded
[DEBUG ] [Cache ] register <kv.image> with limit=None, timeout=60s
[DEBUG ] [Cache ] register <kv.atlas> with limit=None, timeout=Nones
[INFO ] [Image ] Providers: img_imageio, img_tex, img_dds, img_pygame, img_gif (img_pil ignored)
[DEBUG ] [Cache ] register <kv.texture> with limit=1000, timeout=60s
[DEBUG ] [Cache ] register <kv.shader> with limit=1000, timeout=3600s
[DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout=Nones
[INFO ] [Text ] Provider: pygame
[DEBUG ] [Window ] Ignored <egl_rpi> (import error)
[INFO ] [Window ] Provider: pygame(['window_egl_rpi'] ignored)
[DEBUG ] [Window ] Display driver Quartz
[DEBUG ] [Window ] Actual window size: 800x600
[DEBUG ] [Window ] Actual color bits r8 g8 b8 a8
[DEBUG ] [Window ] Actual depth bits: 24
[DEBUG ] [Window ] Actual stencil bits: 8
[DEBUG ] [Window ] Actual multisampling samples: 2
[INFO ] [GL ] OpenGL version <2.1 NVIDIA-8.26.28 310.40.55b01>
[INFO ] [GL ] OpenGL vendor <NVIDIA Corporation>
[INFO ] [GL ] OpenGL renderer <NVIDIA GeForce GT 650M OpenGL Engine>
[INFO ] [GL ] OpenGL parsed version: 2, 1
[INFO ] [GL ] Shading version <1.20>
[INFO ] [GL ] Texture max size <16384>
[INFO ] [GL ] Texture max units <16>
[DEBUG ] [Shader ] Fragment compiled successfully
[DEBUG ] [Shader ] Vertex compiled successfully
[DEBUG ] [ImageImageIO] Load </Applications/Kivy.app/Contents/Resources/kivy/kivy/data/glsl/default.png>
[INFO ] [GL ] BGRA texture support is available
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
[DEBUG ] [Cache ] register <kv.loader> with limit=500, timeout=60s
[INFO ] [Loader ] using a thread pool of 2 workers
[DEBUG ] [Cache ] register <textinput.label> with limit=None, timeout=60.0s
[DEBUG ] [Cache ] register <textinput.width> with limit=None, timeout=60.0s
Traceback (most recent call last):
File "main.py", line 61, in
Yes, this issue was specifically covered in step 3 of the build - " If not running on Mac OS X, the libchess.so library needs to be built, go to https://github.com/sshivaji/python-chess, switch to the pgn branch. Then execute "sudo python setup.py install".
At some point I want to automate the steps and have a setup.py that does it all.
But I am running it on Mac OSX (Mavericks)
Typo in instructions, this needs to be run on all platforms. Libchess is not installed by default :) will fix instructions.
Sent from my iPhone
On Oct 9, 2014, at 8:05 AM, Sai Nallapaneni [email protected] wrote:
But I am running it on Mac OSX (Mavericks)
Reply to this email directly or view it on GitHub.
Now updated. The old instructions were a remnant from a while back.
Those days I had committed libchess.so to the source tree for Mac OS X users. Nowadays, due to different Mac OS X versions (e.g. 10.8 vs 10.9), its better to compile that library from scratch.
I've been struggling to install Kivy-Chess on my mac. I downloaded the libchess branch of Kivychess, and I've managed to overcome a number of obstacles, including figuring out how to compile libchess.so library, but still cannot manage to run the program. After ./run.sh, i recieve the following response:
Traceback (most recent call last):
File "main.py", line 99, in
Which makes me think, that I may have compiled the libchess.so library wrong. I needed to change the setup.py file from python-chess, needed to link both the boost-regex and boost-python libraries, to directly point to the directory on my computer. Here are the libraries I specifically used: "/usr/local/Cellar/boost-python/1.68.0/lib/libboost_python27.dylib", "/usr/local/Cellar/boost/1.68.0/lib/libboost_regex.dylib",