Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux. Problems with launching the program. #136

Open
tuchanemo opened this issue Mar 19, 2024 · 24 comments
Open

Linux. Problems with launching the program. #136

tuchanemo opened this issue Mar 19, 2024 · 24 comments

Comments

@tuchanemo
Copy link

tuchanemo commented Mar 19, 2024

Hi, I have Debian 12 installed with kernel 6.6.13.
The latest version I can install and run is LucasChessR2_10a_LINUX_WAYLAND.sh

I don't have the program versions working:
LucasChessR2_11g_LINUX.sh
LucasChessR2_12c_LINUX.sh
When trying to play without installation gives an error.
lucaschessR2 12c_play

@lukasmonk
Copy link
Owner

You can try renaming the ~/LucasChessR directory to ~/LucasChessR.old.
And then try to install the R2.12c version again.

@tuchanemo
Copy link
Author

tuchanemo commented Mar 19, 2024

I renamed the old folder and ran the install. The installation went through, I pressed the "Close" key, the installer window closed. On the console I see the following message and nothing else happens, the program window does not open.
lucaschessК2 12c console

@lukasmonk
Copy link
Owner

I have no idea.
There is an alternative: https://lucaschess.blogspot.com/2024/03/installing-lucas-chess-on-linux-from.html

@tuchanemo
Copy link
Author

tuchanemo commented Mar 19, 2024

I did everything according to the link provided. The installer also installed miniconda3. I go to the ~/lucaschess folder and run the script LucasR.sh. Something happens for a while, then the command line prompt appears and that's it. The program window does not open. Ran the script in x11 and wayland session. The result is the same, the program window does not open.

@lukasmonk
Copy link
Owner

lukasmonk commented Mar 19, 2024

There is a file = bug.log (LucasChessR/bin folder), maybe it will show what's going on, if it contains more than one line, please write a message showing it.
If it only has one line, you can edit Lucas.sh and delete the line:
export XDG_SESSION_TYPE=xcb

@tuchanemo
Copy link
Author

tuchanemo commented Mar 19, 2024

Here's the file bug.log
Version R 2.12c
Traceback (most recent call last):
File "LucasR.py", line 18, in
Code.Base.Init.init()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Base/Init.py", line 18, in init
resp = LucasChessGui.run_gui(main_procesador)
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/MainWindow/LucasChessGui.py", line 90, in run_gui
procesador.start_with_user(user)
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Procesador.py", line 124, in start_with_user
self.configuration.start()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Config/Configuration.py", line 400, in start
self.relee_engines()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Config/Configuration.py", line 343, in relee_engines
self.dic_engines = OSEngines.read_engines(Code.folder_engines)
File "/home/xxx/lucaschess/lucaschessR2/bin/OS/linux/OSEngines.py", line 92, in read_engines
mas("ct800", "Rasmus Althoff", "1.45", "https://www.ct800.net/", "CT800-1.45", 2380, nodes_compatible=True)
File "/home/xxx/lucaschess/lucaschessR2/bin/OS/linux/OSEngines.py", line 16, in mas
engine.set_uci_option("Log", "false")
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Engines/Engines.py", line 109, in set_uci_option
li_uci_options = self.li_uci_options()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Engines/Engines.py", line 235, in li_uci_options
self.read_uci_options()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Engines/Engines.py", line 191, in read_uci_options
engine = EngineRunDirect.DirectEngine("-", self.path_exe, args=self.args)
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Engines/EngineRunDirect.py", line 75, in init
self.ucinewgame()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Engines/EngineRunDirect.py", line 146, in ucinewgame
self.put_line("ucinewgame")
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Engines/EngineRunDirect.py", line 82, in put_line
self.stdin.flush()
BrokenPipeError: [Errno 32] Channel break

@lukasmonk
Copy link
Owner

The problem seems to be in the ct800 engine version.
Copy the attached file unzipped in the programme folder. /bin/OS/linux/Engines/ct800/
CT800-1.45.uci_options.zip

@tuchanemo
Copy link
Author

tuchanemo commented Mar 19, 2024

I copied the CT800-1.45.uci_options file to the specified folder
Nothing's changed.

Traceback (most recent call last):
File "LucasR.py", line 18, in
Code.Base.Init.init()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Base/Init.py", line 18, in init
resp = LucasChessGui.run_gui(main_procesador)
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/MainWindow/LucasChessGui.py", line 90, in run_gui
procesador.start_with_user(user)
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Procesador.py", line 124, in start_with_user
self.configuration.start()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Config/Configuration.py", line 400, in start
self.relee_engines()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Config/Configuration.py", line 343, in relee_engines
self.dic_engines = OSEngines.read_engines(Code.folder_engines)
File "/home/xxx/lucaschess/lucaschessR2/bin/OS/linux/OSEngines.py", line 143, in read_engines
mas("igel", "Volodymyr Shcherbyna", "3.0.0", "https://github.com/vshcherbyna/igel/", "Igel-3.0.10", 3402,
File "/home/xxx/lucaschess/lucaschessR2/bin/OS/linux/OSEngines.py", line 16, in mas
engine.set_uci_option("Log", "false")
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Engines/Engines.py", line 109, in set_uci_option
li_uci_options = self.li_uci_options()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Engines/Engines.py", line 235, in li_uci_options
self.read_uci_options()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Engines/Engines.py", line 191, in read_uci_options
engine = EngineRunDirect.DirectEngine("-", self.path_exe, args=self.args)
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Engines/EngineRunDirect.py", line 75, in init
self.ucinewgame()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Engines/EngineRunDirect.py", line 146, in ucinewgame
self.put_line("ucinewgame")
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Engines/EngineRunDirect.py", line 82, in put_line
self.stdin.flush()
BrokenPipeError: [Errno 32] Channel break

@lukasmonk
Copy link
Owner

Now is Igel.
In attach a zip file to unzip in . /bin/OS/linux:
Engines.zip

@tuchanemo
Copy link
Author

Traceback (most recent call last):
File "LucasR.py", line 18, in
Code.Base.Init.init()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Base/Init.py", line 18, in init
resp = LucasChessGui.run_gui(main_procesador)
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/MainWindow/LucasChessGui.py", line 90, in run_gui
procesador.start_with_user(user)
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Procesador.py", line 126, in start_with_user
Code.runSound.read_sounds()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Sound/Sound.py", line 104, in read_sounds
self.write_sounds()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Sound/Sound.py", line 82, in write_sounds
wav = self.relations[key]["WAV_KEY"] + ".wav"
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Sound/Sound.py", line 139, in relations
add("MC", _("Beep after move"), "BEEP")
TypeError: 'NoneType' object is not callable

@lukasmonk
Copy link
Owner

lukasmonk commented Mar 19, 2024

My hypothesis, it is possible that the problem is that the user folder has characters that make some files unreachable.
To check this, one possibility would be to create a folder in Home, with a name with ascci characters, for example alex, and with full permissions for your user, and copy the lucaschess folder into that folder.

@tuchanemo
Copy link
Author

tuchanemo commented Mar 19, 2024

my home folder name is made entirely of ascii characters.
I would like to remind you that LucasChessR2_10a_LINUX_WAYLAND.sh
works on my system

@lukasmonk
Copy link
Owner

lukasmonk commented Mar 19, 2024

Sorry, I had seen some messages in bug.log with non-ascii characters, and I have not checked.

@lukasmonk
Copy link
Owner

Where did you make the last attempt, in the version that installs miniconda?

@tuchanemo
Copy link
Author

tuchanemo commented Mar 19, 2024

I didn't understand the question.
I downloaded the installation file from the link https://github.com/lukasmonk/lucaschessR2/releases/download/R2.12c/LinuxInstaller.sh

After installing it, I ran the script
cd ~/lucaschess

./LucasR.sh

@lukasmonk
Copy link
Owner

lukasmonk commented Mar 19, 2024

That is correct, and should work.
I attach a new file to unzip in UserData folder (it creates the Sounds folder).
Sounds.zip

The problem is that I don't know why it doesn't work. Maybe there is some incompatibility with some engines, like ct800 and igel, which I would fix by recompiling them. Now it doesn't read the resources. This file pops the last error, to see if the next error gives me some clue to understand the problem. Tomorrow I'll make a comparison between the wayland versions and this one, maybe I'll find something.
More tomorrow.

@tuchanemo
Copy link
Author

tuchanemo commented Mar 19, 2024

Traceback (most recent call last):
File "LucasR.py", line 18, in
Code.Base.Init.init()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Base/Init.py", line 18, in init
resp = LucasChessGui.run_gui(main_procesador)
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/MainWindow/LucasChessGui.py", line 123, in run_gui
procesador.iniciar_gui()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/Procesador.py", line 180, in iniciar_gui
self.main_window = MainWindow.MainWindow(self)
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/MainWindow/MainWindow.py", line 28, in init
self.base = WBase.WBase(self, manager)
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/MainWindow/WBase.py", line 84, in init
self.create_toolbar()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/MainWindow/WBase.py", line 124, in create_toolbar
dic_opciones = self.dic_opciones_tb()
File "/home/xxx/lucaschess/lucaschessR2/bin/Code/MainWindow/WBase.py", line 153, in dic_opciones_tb
TB_PLAY: (_("Play"), Iconos.Libre()),
TypeError: 'NoneType' object is not callable

Bye, see you tomorrow.

@lukasmonk
Copy link
Owner

lukasmonk commented Mar 20, 2024

Please download the 12c installer again and try to install with it.
https://github.com/lukasmonk/lucaschessR2/releases/download/R2.12c/LucasChessR2_12c_LINUX.sh

I finally managed to replicate the problem in a virtual machine. I had to downgrade a library (psutil), and after recompiling everything again it worked in that virtual machine.

@tuchanemo
Copy link
Author

tuchanemo commented Mar 20, 2024

I replaced the file LucasR.py and ran the script LucasR.sh The program window did not open.
Here is the log
Traceback (most recent call last):
File "LucasR.py", line 24, in
Code.Base.Init.init()
File "/home/xxxx/lucaschess/lucaschessR2/bin/Code/Base/Init.py", line 18, in init
resp = LucasChessGui.run_gui(main_procesador)
File "/home/xxxx/lucaschess/lucaschessR2/bin/Code/MainWindow/LucasChessGui.py", line 123, in run_gui
procesador.iniciar_gui()
File "/home/xxxx/lucaschess/lucaschessR2/bin/Code/Procesador.py", line 180, in iniciar_gui
self.main_window = MainWindow.MainWindow(self)
File "/home/xxxx/lucaschess/lucaschessR2/bin/Code/MainWindow/MainWindow.py", line 28, in init
self.base = WBase.WBase(self, manager)
File "/home/xxxx/lucaschess/lucaschessR2/bin/Code/MainWindow/WBase.py", line 84, in init
self.create_toolbar()
File "/home/xxxx/lucaschess/lucaschessR2/bin/Code/MainWindow/WBase.py", line 124, in create_toolbar
dic_opciones = self.dic_opciones_tb()
File "/home/xxxx/lucaschess/lucaschessR2/bin/Code/MainWindow/WBase.py", line 153, in dic_opciones_tb
TB_PLAY: (_("Play"), Iconos.Libre()),
TypeError: 'NoneType' object is not callable

Version LucasChessR2_12c1_LINUX_WAYLAND.sh
Everything works.
lucaschessК2 12c1 console
lucaschessК2 12c1 console_1

Play without installation works. Installing the program works. Uninstalling the program works. Thank you.

@tuchanemo
Copy link
Author

New version of LucasChessR2_12c_LINUX.sh.
does not work. Here is the log.
Version R 2.12c
Traceback (most recent call last):
File "Launcher.py", line 53, in
File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/LucasR.py", line 18, in
File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Base/Init.py", line 18, in init
File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/MainWindow/LucasChessGui.py", line 90, in run_gui
File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Procesador.py", line 124, in start_with_user
File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Config/Configuration.py", line 400, in start
File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Config/Configuration.py", line 343, in relee_engines
File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/OS/linux/OSEngines.py", line 92, in read_engines
File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/OS/linux/OSEngines.py", line 16, in mas
File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Engines/Engines.py", line 109, in set_uci_option
File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Engines/Engines.py", line 235, in li_uci_options
File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Engines/Engines.py", line 191, in read_uci_options
File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Engines/EngineRunDirect.py", line 75, in init
File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Engines/EngineRunDirect.py", line 146, in ucinewgame
File "/home/lucas/pyLCR2/genlinux/LucasChessR/bin/Code/Engines/EngineRunDirect.py", line 82, in put_line
BrokenPipeError: [Errno 32] Обрыв канала

@lukasmonk
Copy link
Owner

I forgot that there are some engines that do not work on all pcs.
I've redone the installer to take this into account.

@tuchanemo
Copy link
Author

tuchanemo commented Mar 20, 2024

Yes, it works on my computer.
lucaschessК2 12c console_1

@lukasmonk
Copy link
Owner

Great!
I will try to find out what is going on with ct800 and igel.
Thank you very much for your help and patience.

@tuchanemo
Copy link
Author

tuchanemo commented Mar 20, 2024

Thank you for this program.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants