GithubHelp home page GithubHelp logo

Comments (6)

xaizek avatar xaizek commented on June 12, 2024 1

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.

xaizek avatar xaizek commented on June 12, 2024 1

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.

xaizek avatar xaizek commented on June 12, 2024 1

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.

rchastain avatar rchastain commented on June 12, 2024

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.

rchastain avatar rchastain commented on June 12, 2024

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.

rchastain avatar rchastain commented on June 12, 2024

Great! It works with pip2. Now I can start Lucas Chess. Thank you for your help.

from lucaschess.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.