You are not logged in.

#1 2021-08-11 05:40:01

magicianofriga
Member
Registered: 2021-08-11
Posts: 4

Ceres (MCTS Chess Engine) not installing

Hello all,
I am a hobby chess player who recently switched to Arch. I have been trying to install the following chess engine - https://github.com/dje-dev/Ceres. It is an MCTS engine that requires the Dot net framework.

I installed the dotnet sdk using yay -S dotnet-sdk. There were no errors for the same.

Next I tried installing the engine itself. I cloned the github repo, went to Ceres/src/Ceres and provided the command : dotnet run --configuration Release

According to the author of the engine, this was supposed to work. However, I got the following errors and the executable wasn't built:

/home/divine/Ceres/src/Ceres.Chess/Ceres.Chess.csproj : warning NU1701: Package 'Google.ProtocolBuffers 2.4.1.555' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net5.0'. This package may not be fully compatible with your project. [/home/divine/Ceres/src/Ceres/Ceres.csproj]                                                                                                             
/home/divine/Ceres/src/Ceres.MCTS/Ceres.MCTS.csproj : warning NU1701: Package 'Google.ProtocolBuffers 2.4.1.555' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net5.0'. This package may not be fully compatible with your project. [/home/divine/Ceres/src/Ceres/Ceres.csproj]                                                                                                               
/home/divine/Ceres/src/Ceres.Features/Ceres.Features.csproj : warning NU1701: Package 'Google.ProtocolBuffers 2.4.1.555' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net5.0'. This package may not be fully compatible with your project. [/home/divine/Ceres/src/Ceres/Ceres.csproj]                                                                                                       
/home/divine/Ceres/src/Ceres/Ceres.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.arch-x64. No packages exist with this id in source(s): nuget.org                   
/home/divine/Ceres/src/Ceres/Ceres.csproj : warning NU1701: Package 'Google.ProtocolBuffers 2.4.1.555' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net5.0'. This package may not be fully compatible with your project.                                                                                                                                                                   
                                                                                                                                                                                               
The build failed. Fix the build errors and run again.

I was told that this was a distro specific problem, hence I have approached this forum. Please help me in rectifying this issue. Thank you!

Offline

#2 2021-08-11 08:04:17

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: Ceres (MCTS Chess Engine) not installing

warning NU1701: Package 'Google.ProtocolBuffers 2.4.1.555' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net5.0'.

I think the dot-net that Ceres needs which is v4.7.1 is incompatible with the AUR dot-net which is 5.0 that's why it doesn't build. I don't have a solution though as I've never dealt with dot-net.
Why not just try other chess engines readily available for linux.

Offline

#3 2021-08-11 13:14:54

magicianofriga
Member
Registered: 2021-08-11
Posts: 4

Re: Ceres (MCTS Chess Engine) not installing

It says in the requirements that it requires dotnet 5.0.0, at least in Windows. I have installed the dotnet framework 5.0.8, might that be an issue? I don't know how to install version 4.x
Regarding using other engines, I use Leela and Stockfish, but Ceres is 2x faster than Leela for my graphics card.

Offline

#4 2021-08-12 11:24:03

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,893

Re: Ceres (MCTS Chess Engine) not installing

magicianofriga wrote:

According to the author of the engine, this was supposed to work.

I was told that this was a distro specific problem

https://github.com/dje-dev/Ceres/blob/main/Setup.md only mentions windows as supported.

We lack information and can only make wild guesses about what goes wrong.
I suggest you ask the author for clarification which linux distros are supported and instructions how to install ceres on one of those.

Once that is clear, maybe we can help to apply that to archlinux (and hopefully create a PKGBUILD for this).


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2021-08-12 21:14:07

Gosi
Member
From: Vienna, Austria
Registered: 2010-02-25
Posts: 103

Re: Ceres (MCTS Chess Engine) not installing

/home/divine/Ceres/src/Ceres/Ceres.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.arch-x64. No packages exist with this id in source(s): nuget.org

This is the error. It tries to find Microsoft.NETCore.App.Host.arch-x64 on nuget.org, but it does not exist.

If you search on nuget you can find a Microsoft.NETCore.App.Host.linux-x64 which is probably the right one.

Please note that this is as far as I can try to help, because I know nothing about .net or the build system Ceres is using.

Offline

#6 2021-08-15 10:17:25

magicianofriga
Member
Registered: 2021-08-11
Posts: 4

Re: Ceres (MCTS Chess Engine) not installing

Gosi wrote:
/home/divine/Ceres/src/Ceres/Ceres.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.arch-x64. No packages exist with this id in source(s): nuget.org

This is the error. It tries to find Microsoft.NETCore.App.Host.arch-x64 on nuget.org, but it does not exist.

If you search on nuget you can find a Microsoft.NETCore.App.Host.linux-x64 which is probably the right one.

Please note that this is as far as I can try to help, because I know nothing about .net or the build system Ceres is using.

Thank you! I will check this out. If it is solved I will mark as such.

[EDIT]

I got the following error:

[divine@lightofgod Ceres]$ dotnet add package Microsoft.NETCore.App.Host.linux-x64 --version 6.0.0-preview.7.21377.19
  Determining projects to restore...
  Writing /tmp/tmpoWkmvG.tmp
info : Adding PackageReference for package 'Microsoft.NETCore.App.Host.linux-x64' into project '/home/divine/Ceres/src/Ceres/Ceres.csproj'.
info : Restoring packages for /home/divine/Ceres/src/Ceres/Ceres.csproj...                                                                                                                     
info :   GET https://api.nuget.org/v3-flatcontainer/ … index.json                                                                                           
info :   OK https://api.nuget.org/v3-flatcontainer/ … index.json 987ms                                                                                       
info :   GET https://api.nuget.org/v3-flatcontainer/ … 7.19.nupkg
info :   OK https://api.nuget.org/v3-flatcontainer/ … 7.19.nupkg 1127ms
info :   GET https://api.nuget.org/v3-flatcontainer/ … index.json
info :   NotFound https://api.nuget.org/v3-flatcontainer/ … index.json 1041ms
info : Installed Microsoft.NETCore.App.Host.linux-x64 6.0.0-preview.7.21377.19 from https://api.nuget.org/v3/index.json with content hash 00ChaAcuVVqETQkaiijo/nVFlxAbll+ZYoeDLhFWrYJnPubYWTDVNlBIf+UFu+sYhFrjcfN4Mv8WuAnopkUY0Q==.
error: NU1101: Unable to find package Microsoft.NETCore.App.Host.arch-x64. No packages exist with this id in source(s): nuget.org
warn : NU1701: Package 'Google.ProtocolBuffers 2.4.1.555' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net5.0'. This package may not be fully compatible with your project.
error: NU1213: The package Microsoft.NETCore.App.Host.linux-x64 6.0.0-preview.7.21377.19 has a package type DotnetPlatform that is incompatible with this project.
error: Package 'Microsoft.NETCore.App.Host.linux-x64' is incompatible with 'all' frameworks in project '/home/divine/Ceres/src/Ceres/Ceres.csproj'.

Should I upgrade DotNet?

Last edited by magicianofriga (2021-08-15 10:28:47)

Offline

#7 2021-08-15 10:20:12

magicianofriga
Member
Registered: 2021-08-11
Posts: 4

Re: Ceres (MCTS Chess Engine) not installing

Lone_Wolf wrote:
magicianofriga wrote:

According to the author of the engine, this was supposed to work.

I was told that this was a distro specific problem

https://github.com/dje-dev/Ceres/blob/main/Setup.md only mentions windows as supported.

We lack information and can only make wild guesses about what goes wrong.
I suggest you ask the author for clarification which linux distros are supported and instructions how to install ceres on one of those.

Once that is clear, maybe we can help to apply that to archlinux (and hopefully create a PKGBUILD for this).

The Github needs to be updated. Linux is supported from version 0.91. With regards to the distros, he mentioned Ubuntu as one where it worked, but didn't know anything about Arch. I checked the Dotnet pages, and it gave instructions of installations for literally every other OS apart from Arch (not complaining about Arch just for clarity). Hence I was looking for a clarification here.

Offline

Board footer

Powered by FluxBB