Comments (6)
You seem to have non-ASCII characters in the path where LucasChess is located and Python doesn't like it. Move it somewhere else, at least during the build process.
P.S. It's a good idea to post error output in English, usually can be done like this: LC_ALL=C sh ./xcython_linux.sh
.
from lucaschess.
Use pip install python-chess==v0.23.11
(or pip install 'python-chess<0.24'
; both should yield the same result) either with sudo
or add --user
after install
.
from lucaschess.
Try using pip2
instead of pip
. The latter might be resolved to pip3
and install the package only for Python3. Or just check that output of sudo pip --version
mentions python 2.7
.
from lucaschess.
You seem to have non-ASCII characters in the path where LucasChess is located and Python doesn't like it. Move it somewhere else, at least during the build process.
Yes, it solves the problem. Thank you.
P.S. It's a good idea to post error output in English, usually can be done like this:
LC_ALL=C sh ./xcython_linux.sh
.
Thank you. I didn't know that.
Now I have a problem related to Python Chess.
[roland@portable Linux]$ LC_ALL=C sh xlucas.sh
x86_64
Traceback (most recent call last):
File "./Lucas.py", line 44, in <module>
import Code.Init
File "./Code/Init.py", line 5, in <module>
from Code import Procesador
File "./Code/Procesador.py", line 30, in <module>
from Code import GestorRoutes
File "./Code/GestorRoutes.py", line 11, in <module>
from Code import LibChess
File "./Code/LibChess.py", line 4, in <module>
import chess
ImportError: No module named chess
[roland@portable Linux]$
I don't find it in Mageia packages. (I didn't use the command line to install packages, but the Mageia packages manager. The commands from the documentation don't work for me.)
from lucaschess.
Yes, it works but I still get the same error message.
[roland@portable Linux]$ sudo pip install python-chess==v0.23.11
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip install --user` instead.
Collecting python-chess==v0.23.11
Downloading https://files.pythonhosted.org/packages/4e/e5/6747724f52c037b8bbe7c2079501181ad81969b7a30ce2b6f5d01a7f0346/python-chess-0.23.11.tar.gz (140kB)
100% |████████████████████████████████| 143kB 1.5MB/s
Installing collected packages: python-chess
Running setup.py install for python-chess ... done
Successfully installed python-chess-0.23.11
[roland@portable Linux]$ LC_ALL=C sh xlucas.sh
x86_64
Traceback (most recent call last):
File "./Lucas.py", line 44, in <module>
import Code.Init
File "./Code/Init.py", line 5, in <module>
from Code import Procesador
File "./Code/Procesador.py", line 30, in <module>
from Code import GestorRoutes
File "./Code/GestorRoutes.py", line 11, in <module>
from Code import LibChess
File "./Code/LibChess.py", line 4, in <module>
import chess
ImportError: No module named chess
[roland@portable Linux]$
from lucaschess.
Great! It works with pip2
. Now I can start Lucas Chess. Thank you for your help.
from lucaschess.
Related Issues (20)
- Cannot compile on Ubuntu 18.04 HOT 2
- Ubuntu 18.04 installation error. HOT 21
- Lucaschess not starting up : Ubuntu 18.04
- Lucaschess not running after upgrading to ubuntu 20.04 HOT 9
- It is unclear how to undue theme customisations HOT 2
- Please consider gradually transitioning the codebase into English HOT 1
- It's impossible to add external engines on Linux if their filename doesn't end with .exe HOT 1
- Piece styles as TTF HOT 5
- Live analysis output? HOT 3
- How to start the program on linux ? HOT 2
- Tutor regularly telling me my move is not the best move, and then recommends that same move to me. HOT 3
- Options windows, and especially the Initial Moves window, are rather small HOT 5
- The wait pointer shows when I have the tutor enabled and when *it is my move* HOT 1
- Wait pointer shows when it is my move
- pgn text copy error HOT 5
- search or past a position when browsing opening lines HOT 3
- Request options for making bin books with Polyglot book factory HOT 3
- Feature request: have a live analysis feature like in lichess HOT 1
- Setting up a position and then playing it (1) is rather complex, (2) changes the animations speed; more
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lucaschess.