Skip to main content
Topic: Problems to run Pychess. [solved] (Read 781 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Problems to run Pychess. [solved]

Hi,

I installed pychess from pamac. I'm not able to run it, it can't be opened.

Re-installing pychess from the terminal as root:

 
Code: [Select]
[kaos keos]# pacman -Sy pychess
:: Sincronizando las bases de datos de los paquetes...
 system está actualizado
 world está actualizado
 galaxy está actualizado
 extra                   1659.6 KiB   748K/s 00:02 [######################] 100%
 community                  4.2 MiB   345K/s 00:12 [######################] 100%
advertencia: pychess-0.99.0-1 está actualizado -- reinstalándolo
resolviendo dependencias...
buscando conflictos entre paquetes...

Paquetes (1) pychess-0.99.0-1

Tamaño total de la instalación:  12.39 MiB
Tamaño neto tras actualizar:     0.00 MiB

:: ¿Continuar con la instalación? [S/n] s
(1/1) comprobando las claves del depósito          [######################] 100%
(1/1) verificando la integridad de los paquetes    [######################] 100%
(1/1) cargando los archivos de los paquetes        [######################] 100%
(1/1) comprobando conflictos entre archivos        [######################] 100%
(1/1) comprobando el espacio disponible en el ...  [######################] 100%
:: Procesando los cambios de los paquetes...
(1/1) reinstalando pychess                         [######################] 100%
:: Ejecutando los «hooks» de posinstalación...
(1/3) Updating icon theme caches...
(2/3) Updating the desktop file MIME type cache...
(3/3) Updating the MIME type database...
[kaos keos]#

Traying to open pychess from the terminal:
 
Code: [Select]
[[email protected] ~]$ su
Contraseña:
[kaos keos]# pychess
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/pychess/Savers/pgn.py", line 15, in <module>
    import pexpect
ModuleNotFoundError: No module named 'pexpect'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/pychess", line 188, in <module>
    from pychess.Main import PyChess
  File "/usr/lib/python3.6/site-packages/pychess/Main.py", line 21, in <module>
    from pychess.System.debug import print_obj_referrers, print_muppy_sumary
  File "/usr/lib/python3.6/site-packages/pychess/System/debug.py", line 17, in <module>
    from pychess.widgets.gamewidget import GameWidget
  File "/usr/lib/python3.6/site-packages/pychess/widgets/gamewidget.py", line 13, in <module>
    from pychess.Savers import pgn, fen
  File "/usr/lib/python3.6/site-packages/pychess/Savers/pgn.py", line 17, in <module>
    from pychess.external import pexpect
  File "/usr/lib/python3.6/site-packages/pychess/external/pexpect/__init__.py", line 75, in <module>
    from .pty_spawn import spawn, spawnu
  File "/usr/lib/python3.6/site-packages/pychess/external/pexpect/pty_spawn.py", line 10, in <module>
    import ptyprocess
ModuleNotFoundError: No module named 'ptyprocess'
[kaos keos]#

I don't know what I'm doing wrong.

All dependencies are installed:

Code: [Select]
    gst-plugins-base
    gtksourceview3
    python-cairo
    python-gobject
    python-sqlalchemy
Mate
Desktop: xfce

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Re: Problems to run Pychess.

Reply #1
Try this:
Code: [Select]
# pacman -S python-pexpect
It looks like the package is missing that dependency.
Chris Cromer

Re: Problems to run Pychess.

Reply #2
thanks cromer, it works now!.

Do you know how to navegate in PCManFM till the file where is pychess? i don't see the file, i need to reinstall pychess and  erase all previus configuration i'm having problems with  the download of the chess-engines, they are not coming now, probably because i install pychess before the engines.
Mate
Desktop: xfce

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Re: Problems to run Pychess.

Reply #3
I found it!.

Just one last problem, i'm not able to install this chess program: Protector (protector-svn) in Artix nor from the pacma-GUI neither from the root terminal and there is this commentary on the terminal that i don't understand:

It is compatible with PyChess. Just add "/usr/bin/protector" to engines menu and enjoy!

Code: [Select]
[kaos keos]# yaourt -Sy protector-svn
:: Sincronizando las bases de datos de los paquetes...
 system está actualizado
 world está actualizado
 galaxy está actualizado
 extra está actualizado
 community está actualizado

==> Descargando PKGBUILD para protector-svn desde el AUR...
x .SRCINFO
x PKGBUILD
ozgursarier commented on 2016-03-09 21:03
It is compatible with PyChess. Just add "/usr/bin/protector" to engines menu and enjoy!

protector-svn 1.9.0.r1134-1  (2016-08-24 10:54)
(Paquete sin soporte: ¡podría ser peligroso!)
==> ¿Quiere editar PKGBUILD? [S/n] («A» para anular)
==> ------------------------------------------------
==> n

==> ERROR: Ejecutar makepkg como superusuario no está permitido ya que puede causar daños
permanentes y catastróficos a su sistema.
==> ERROR: An unknown error has occurred. Exiting...
No se puede leer PKGBUILD
[kaos keos]#
Mate
Desktop: xfce

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Re: Problems to run Pychess.

Reply #4
Tienes que hacerlo en una cuenta que no sea "root" y sin sudo. makepkg tiene esta protección para no dejar tu sistema con problemas.
Chris Cromer

Re: Problems to run Pychess.

Reply #5
Gracias cromer pero no resulto. Aunque ya lo tengo!.

This Artix is more complicated that Manjaro. After to much guessing i found that in order to install Protector we have to install surversion first -- any way, i got it!.

Thanks!!
Mate
Desktop: xfce

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Re: Problems to run Pychess. [solved]

Reply #6
@keos it is recommended to post things in English when you want help from others on internet.
Easy way how to force program to use default language (mostly English) is to start it from terminal and set variable LANG=C
Example:
Code: [Select]
LANG=C man
Man is as good as his tools.

Re: Problems to run Pychess. [solved]

Reply #7
I don't understand what you said here.

How can i force the results in spanish at the terminal and translate it into english?

If you are indicating to do someting at the terminal ... this is what i got:

Code: [Select]
[[email protected] ~]$ LANG=C man
What manual page do you want?
[[email protected] ~]$

Mate
Desktop: xfce

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]