jonathan-laurent / AlphaZero.jl

A generic, simple and fast implementation of Deepmind's AlphaZero algorithm.

Home Page:https://jonathan-laurent.github.io/AlphaZero.jl/stable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Having trouble using AlphaZero.jl in Google Colab

Snimm opened this issue · comments

So as shown in the Colab file I am having trouble installing AlphaZero in Colab's Julia environment.
I am using Julia version 1.8.2.
Using run(`julia --project -e "import Pkg; Pkg.instantiate()"`) gives

Note: checking out '5bfae659d8a1b1e666d9d15f079de27228accb21'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

┌ Warning: The active manifest file is an older format with no julia version entry. Dependencies may have been resolved with a different julia version.
└ @ /content/AlphaZero.jl/Manifest.toml:0
   Installed JpegTurbo_jll ──────────────── v2.1.0+0
   Installed libfdk_aac_jll ─────────────── v2.0.2+0
   Installed x265_jll ───────────────────── v3.5.0+0
   Installed Preferences ────────────────── v1.2.3
   Installed OffsetArrays ───────────────── v1.10.8
   Installed Libmount_jll ───────────────── v2.35.0+0
   Installed GR_jll ─────────────────────── v0.63.1+0
   Installed StatsFuns ──────────────────── v0.9.15
   Installed LoggingExtras ──────────────── v0.4.7
   Installed Opus_jll ───────────────────── v1.3.2+0
   Installed Xorg_xkbcomp_jll ───────────── v1.4.2+4
   Installed ImageMagick ────────────────── v1.2.1
   Installed NNlib ──────────────────────── v0.7.34
   Installed RelocatableFolders ─────────── v0.1.3
   Installed PDMats ─────────────────────── v0.11.5
   Installed TimerOutputs ───────────────── v0.5.15
   Installed Measures ───────────────────── v0.3.1
   Installed NNlibCUDA ──────────────────── v0.1.11
   Installed Contour ────────────────────── v0.5.7
   Installed StaticArrays ───────────────── v1.3.3
   Installed ZipFile ────────────────────── v0.9.4
   Installed ProgressMeter ──────────────── v1.7.1
   Installed EarCut_jll ─────────────────── v2.2.3+0
   Installed Grisu ──────────────────────── v1.0.2
   Installed Xorg_xcb_util_wm_jll ───────── v0.4.1+1
   Installed Formatting ─────────────────── v0.4.2
   Installed Xorg_xcb_util_image_jll ────── v0.4.0+1
   Installed PlotUtils ──────────────────── v1.1.3
   Installed RecipesPipeline ────────────── v0.5.0
   Installed CEnum ──────────────────────── v0.4.1
   Installed Xorg_libpthread_stubs_jll ──── v0.1.0+3
   Installed Cairo_jll ──────────────────── v1.16.1+1
   Installed FileIO ─────────────────────── v1.12.0
   Installed HTTP ───────────────────────── v0.9.17
   Installed GPUArrays ──────────────────── v8.2.1
   Installed Xorg_xcb_util_jll ──────────── v0.4.0+1
   Installed Fontconfig_jll ─────────────── v2.13.93+0
   Installed Media ──────────────────────── v0.5.0
   Installed Libgpg_error_jll ───────────── v1.42.0+0
   Installed Xorg_libxkbfile_jll ────────── v1.1.0+4
   Installed Xorg_libXinerama_jll ───────── v1.1.4+4
   Installed Xorg_libXau_jll ────────────── v1.0.9+4
   Installed ZygoteRules ────────────────── v0.2.2
   Installed ArgParse ───────────────────── v1.1.4
   Installed Static ─────────────────────── v0.4.1
   Installed Missings ───────────────────── v1.0.2
   Installed JLD2 ───────────────────────── v0.4.19
   Installed GR ─────────────────────────── v0.63.1
   Installed RealDot ────────────────────── v0.1.0
   Installed FFMPEG ─────────────────────── v0.4.1
   Installed LLVM ───────────────────────── v4.7.1
   Installed ColorSchemes ───────────────── v3.16.0
   Installed Showoff ────────────────────── v1.0.3
   Installed IRTools ────────────────────── v0.4.4
   Installed Functors ───────────────────── v0.2.7
   Installed Qt5Base_jll ────────────────── v5.15.3+0
   Installed AutoGrad ───────────────────── v1.2.4
   Installed xkbcommon_jll ──────────────── v0.9.1+5
   Installed Bzip2_jll ──────────────────── v1.0.8+0
   Installed Xorg_xcb_util_keysyms_jll ──── v0.4.0+1
   Installed SpecialFunctions ───────────── v1.8.1
   Installed JSON ───────────────────────── v0.21.2
   Installed HarfBuzz_jll ───────────────── v2.8.1+1
   Installed IfElse ─────────────────────── v0.1.1
   Installed PlotThemes ─────────────────── v2.0.1
   Installed LZO_jll ────────────────────── v2.10.1+0
   Installed NaNMath ────────────────────── v0.3.7
   Installed FriBidi_jll ────────────────── v1.0.10+0
   Installed TranscodingStreams ─────────── v0.9.6
   Installed Zygote ─────────────────────── v0.6.34
   Installed Random123 ──────────────────── v1.4.2
   Installed Rmath_jll ──────────────────── v0.3.0+0
   Installed UnicodeFun ─────────────────── v0.4.1
   Installed GLFW_jll ───────────────────── v3.3.5+1
   Installed x264_jll ───────────────────── v2021.5.5+0
   Installed Graphics ───────────────────── v1.1.1
   Installed MbedTLS ────────────────────── v1.0.3
   Installed CommonSubexpressions ───────── v0.3.0
   Installed ChainRules ─────────────────── v1.25.0
   Installed FreeType2_jll ──────────────── v2.10.4+0
   Installed ImageMagick_jll ────────────── v6.9.12+2
   Installed MappedArrays ───────────────── v0.4.1
   Installed PaddedViews ────────────────── v0.5.11
   Installed Compat ─────────────────────── v3.41.0
   Installed StatsAPI ───────────────────── v1.2.0
   Installed Colors ─────────────────────── v0.12.8
   Installed DataStructures ─────────────── v0.18.11
   Installed CodecZlib ──────────────────── v0.7.0
   Installed MosaicViews ────────────────── v0.3.3
   Installed Xorg_libxcb_jll ────────────── v1.13.0+3
   Installed libpng_jll ─────────────────── v1.6.38+0
   Installed ANSIColoredPrinters ────────── v0.0.1
   Installed StructTypes ────────────────── v1.8.1
   Installed CommonRLInterface ──────────── v0.3.1
   Installed StatsBase ──────────────────── v0.33.14
   Installed Scratch ────────────────────── v1.1.0
   Installed Xorg_libXext_jll ───────────── v1.3.4+4
   Installed ColorTypes ─────────────────── v0.11.0
   Installed DiffRules ──────────────────── v1.9.1
   Installed ImageCore ──────────────────── v0.9.3
   Installed TensorCore ─────────────────── v0.1.1
   Installed JSON3 ──────────────────────── v1.9.2
   Installed Flux ───────────────────────── v0.12.8
   Installed Zstd_jll ───────────────────── v1.5.0+0
   Installed Plots ──────────────────────── v1.25.7
   Installed Expat_jll ──────────────────── v2.2.10+0
   Installed TableTraits ────────────────── v1.0.1
   Installed DiffResults ────────────────── v1.0.3
   Installed Libtiff_jll ────────────────── v4.3.0+0
   Installed Parsers ────────────────────── v2.2.1
   Installed Setfield ───────────────────── v0.8.1
   Installed AbstractFFTs ───────────────── v1.1.0
   Installed PCRE_jll ───────────────────── v8.44.0+0
   Installed DataValueInterfaces ────────── v1.0.0
   Installed Libffi_jll ─────────────────── v3.2.2+1
   Installed LLVMExtra_jll ──────────────── v0.0.13+1
   Installed ColorVectorSpace ───────────── v0.9.8
   Installed ConstructionBase ───────────── v1.3.0
   Installed JLLWrappers ────────────────── v1.4.0
   Installed OrderedCollections ─────────── v1.4.1
   Installed Xorg_libXrender_jll ────────── v0.9.10+4
   Installed XSLT_jll ───────────────────── v1.1.34+0
   Installed Xorg_libXi_jll ─────────────── v1.7.10+4
   Installed Ogg_jll ────────────────────── v1.3.5+1
   Installed AbstractTrees ──────────────── v0.3.4
   Installed ArrayInterface ─────────────── v3.2.2
   Installed ChainRulesCore ─────────────── v1.12.0
   Installed Ghostscript_jll ────────────── v9.55.0+0
   Installed StackViews ─────────────────── v0.1.1
   Installed Libuuid_jll ────────────────── v2.36.0+0
   Installed Xorg_libXcursor_jll ────────── v1.2.0+4
   Installed MacroTools ─────────────────── v0.5.9
   Installed InverseFunctions ───────────── v0.1.2
   Installed LogExpFunctions ────────────── v0.3.6
   Installed DocStringExtensions ────────── v0.8.6
   Installed Wayland_protocols_jll ──────── v1.23.0+0
   Installed Xorg_xcb_util_renderutil_jll ─ v0.3.9+1
   Installed Graphite2_jll ──────────────── v1.3.14+0
   Installed Crayons ────────────────────── v4.1.1
   Installed libass_jll ─────────────────── v0.15.1+0
   Installed Pixman_jll ─────────────────── v0.40.1+0
   Installed Adapt ──────────────────────── v3.3.3
   Installed Rmath ──────────────────────── v0.7.0
   Installed XML2_jll ───────────────────── v2.9.12+0
   Installed Gettext_jll ────────────────── v0.21.0+0
   Installed Wayland_jll ────────────────── v1.19.0+0
   Installed Xorg_xtrans_jll ────────────── v1.4.0+3
   Installed IterTools ──────────────────── v1.4.0
   Installed Latexify ───────────────────── v0.15.9
   Installed OpenSSL_jll ────────────────── v1.1.13+0
   Installed Documenter ─────────────────── v0.27.12
   Installed IOCapture ──────────────────── v0.2.2
   Installed FFMPEG_jll ─────────────────── v4.4.0+0
   Installed Libgcrypt_jll ──────────────── v1.8.7+0
   Installed GPUCompiler ────────────────── v0.13.11
   Installed Tables ─────────────────────── v1.6.1
   Installed GeometryBasics ─────────────── v0.4.1
   Installed Xorg_libXrandr_jll ─────────── v1.5.2+4
   Installed Xorg_xkeyboard_config_jll ──── v2.27.0+4
   Installed LAME_jll ───────────────────── v3.100.1+0
   Installed Xorg_libXfixes_jll ─────────── v5.0.3+4
   Installed DataAPI ────────────────────── v1.9.0
   Installed FixedPointNumbers ──────────── v0.8.4
   Installed RecipesBase ────────────────── v1.2.1
   Installed ThreadPools ────────────────── v2.1.0
   Installed IteratorInterfaceExtensions ── v1.0.0
   Installed Libiconv_jll ───────────────── v1.16.1+1
   Installed LaTeXStrings ───────────────── v1.3.0
   Installed IniFile ────────────────────── v0.5.0
   Installed libvorbis_jll ──────────────── v1.3.7+1
   Installed Glib_jll ───────────────────── v2.68.3+2
   Installed StructArrays ───────────────── v0.6.4
   Installed URIs ───────────────────────── v1.3.0
   Installed Libglvnd_jll ───────────────── v1.3.0+3
   Installed QuadGK ─────────────────────── v2.4.2
   Installed Juno ───────────────────────── v0.8.4
   Installed Xorg_libXdmcp_jll ──────────── v1.1.3+4
   Installed ForwardDiff ────────────────── v0.10.25
   Installed Xorg_libX11_jll ────────────── v1.6.9+4
   Installed FillArrays ─────────────────── v0.11.9
   Installed Distributions ──────────────── v0.24.18
   Installed Unzip ──────────────────────── v0.1.2
   Installed SortingAlgorithms ──────────── v1.0.1
   Installed ChangesOfVariables ─────────── v0.1.2
   Installed TextWrap ───────────────────── v1.0.1
   Installed Knet ───────────────────────── v1.4.9
   Installed CUDA ───────────────────────── v3.8.0
    Building GR ───────→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/4a740db447aae0fbeb3ee730de1afbb14ac798a1/build.log`
    Building Random123 → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/0e8b146557ad1c6deb1367655e052276690e71a3/build.log`
Precompiling project...
  ✓ LaTeXStrings
  ✓ StructTypes
  ✓ PDMats
  ✓ IteratorInterfaceExtensions
  ✓ RecipesBase
  ✓ TensorCore
  ✓ StatsAPI
  ✓ CEnum
  ✓ ANSIColoredPrinters
  ✓ FillArrays
  ✓ Measures
  ✓ FixedPointNumbers
  ✓ InverseFunctions
  ✓ IterTools
  ✓ Grisu
  ✓ Preferences
  ✓ MacroTools
  ✓ Compat
  ✓ OrderedCollections
  ✓ TextWrap
  ✓ StaticArrays
  ✓ DataValueInterfaces
  ✓ RealDot
  ✓ Unzip
  ✓ IniFile
  ✓ DocStringExtensions
  ✓ AbstractTrees
  ✓ URIs
  ✓ Parsers
  ✓ Formatting
  ✓ ProgressMeter
  ✓ UnicodeFun
  ✓ NaNMath
  ✓ TranscodingStreams
  ✓ ConstructionBase
  ✓ IfElse
  ✓ DataAPI
  ✓ Adapt
  ✓ Scratch
  ✓ TimerOutputs
  ✓ LoggingExtras
  ✓ Functors
  ✓ Crayons
  ✓ MappedArrays
  ✓ IOCapture
  ✓ ZipFile
  ✓ MbedTLS
  ✓ TableTraits
  ✓ Random123
  ✓ FileIO
  ✓ ThreadPools
  ✓ Showoff
  ✓ JLLWrappers
  ✓ CommonSubexpressions
  ✓ Media
  ✓ CommonRLInterface
  ✓ ZygoteRules
  ✓ IRTools
  ✓ ChainRulesCore
  ✓ ArgParse
  ✓ DataStructures
  ✓ DiffResults
  ✓ Contour
  ✓ JSON3
  ✓ JSON
  ✓ ColorTypes
  ✓ CodecZlib
  ✓ Static
  ✓ Setfield
  ✓ Latexify
  ✓ Missings
  ✓ RelocatableFolders
  ✓ OffsetArrays
  ✓ Tables
  ✓ OpenSSL_jll
  ✓ Graphite2_jll
  ✓ Libmount_jll
  ✓ Bzip2_jll
  ✓ Ghostscript_jll
  ✓ Rmath_jll
  ✓ Xorg_libXau_jll
  ✓ HTTP
  ✓ libpng_jll
  ✓ libfdk_aac_jll
  ✓ LAME_jll
  ✓ Pixman_jll
  ✓ EarCut_jll
  ✓ JpegTurbo_jll
  ✓ Ogg_jll
  ✓ Xorg_libXdmcp_jll
  ✓ x265_jll
  ✓ x264_jll
  ✓ LLVMExtra_jll
  ✓ Expat_jll
  ✓ Zstd_jll
  ✓ LZO_jll
  ✓ Opus_jll
  ✓ Xorg_xtrans_jll
  ✓ PCRE_jll
  ✓ Libiconv_jll
  ✓ Libgpg_error_jll
  ✓ Libffi_jll
  ✓ Wayland_protocols_jll
  ✓ OpenSpecFun_jll
  ✓ Xorg_libpthread_stubs_jll
  ✓ FriBidi_jll
  ✓ Libuuid_jll
  ✓ Juno
  ✓ ChangesOfVariables
  ✓ AbstractFFTs
  ✓ SortingAlgorithms
  ✓ QuadGK
  ✗ ChainRules
  ✓ NNlib
  ✓ JLD2
  ✓ ArrayInterface
  ✓ StackViews
  ✓ PaddedViews
  ✓ Documenter
  ✓ FreeType2_jll
  ✓ Rmath
  ✓ StructArrays
  ✓ libvorbis_jll
  ✓ Libtiff_jll
  ✓ Colors
  ✓ XML2_jll
  ✓ Libgcrypt_jll
  ✓ MosaicViews
  ✓ Fontconfig_jll
  ✓ LogExpFunctions
  ✓ ImageMagick_jll
  ✓ LLVM
  ✓ Graphics
  ✓ Gettext_jll
  ✓ Wayland_jll
  ✓ XSLT_jll
  ✓ StatsBase
  ✓ ColorSchemes
  ✓ GeometryBasics
  ✓ GPUArrays
  ✓ Glib_jll
  ✓ Xorg_libxcb_jll
  ✓ SpecialFunctions
  ✓ Xorg_xcb_util_jll
  ✓ Xorg_libX11_jll
  ✓ GPUCompiler
  ✓ AutoGrad
  ✓ DiffRules
  ✓ ColorVectorSpace
  ✓ Xorg_xcb_util_image_jll
  ✓ Xorg_xcb_util_keysyms_jll
  ✓ Xorg_xcb_util_renderutil_jll
  ✓ PlotUtils
  ✓ Xorg_xcb_util_wm_jll
  ✓ Xorg_libXrender_jll
  ✓ Xorg_libXext_jll
  ✓ StatsFuns
  ✓ Xorg_libXfixes_jll
  ✓ Xorg_libxkbfile_jll
  ✓ ForwardDiff
  ✓ PlotThemes
  ✓ RecipesPipeline
  ✓ Libglvnd_jll
  ✓ Xorg_libXinerama_jll
  ✓ Xorg_libXrandr_jll
  ✓ Cairo_jll
  ✓ Distributions
  ✓ Xorg_libXcursor_jll
  ✓ Xorg_libXi_jll
  ✓ Xorg_xkbcomp_jll
  ✓ ImageCore
  ✓ HarfBuzz_jll
  ✗ Zygote
  ✗ GLFW_jll
  ✓ Xorg_xkeyboard_config_jll
  ✓ libass_jll
  ✓ xkbcommon_jll
  ✓ FFMPEG_jll
  ✗ Qt5Base_jll
  ✓ FFMPEG
  ✓ ImageMagick
  ✗ GR_jll
  ✓ GR
  ✓ CUDA
  ✓ NNlibCUDA
  ✓ Plots
  ✗ Flux
  ✓ Knet
  ✗ AlphaZero
  182 dependencies successfully precompiled in 251 seconds. 11 already precompiled.
  7 dependencies errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the packages
Process(`julia --project -e 'import Pkg; Pkg.instantiate()'`, ProcessExited(0))
182 dependencies successfully precompiled in 251 seconds. 11 already precompiled.
  7 dependencies errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the packages
Process(`julia --project -e 'import Pkg; Pkg.instantiate()'`, ProcessExited(0))

import Pkg; Pkg.precompile() does not show do anything.
Using
import Pkg; Pkg.add("AlphaZero") gives

  11 dependencies errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the packages

Here Precompile() gives

Precompiling project...
  ✗ GLFW_jll
  ✗ Qt5Base_jll
  ✗ GR_jll
  ✗ Plots
  ✗ AlphaZero
  0 dependencies successfully precompiled in 39 seconds. 213 already precompiled.

The following 1 direct dependency failed to precompile:

AlphaZero [8ed9eb0b-7496-408d-8c8b-2119aeea02cd]

Failed to precompile AlphaZero [8ed9eb0b-7496-408d-8c8b-2119aeea02cd] to /root/.julia/compiled/v1.8/AlphaZero/jl_h3M9lS.
[ Info: Using the Flux implementation of AlphaZero.NetLib.
ERROR: LoadError: InitError: UndefVarError: GR_jll not defined
Stacktrace:
  [1] __init__()
    @ GR.GRPreferences ~/.julia/packages/GR/G2qlN/src/preferences.jl:50
  [2] _include_from_serialized(pkg::Base.PkgId, path::String, depmods::Vector{Any})
    @ Base ./loading.jl:831
  [3] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt64)
    @ Base ./loading.jl:1039
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1315
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [6] macro expansion
    @ ./loading.jl:1180 [inlined]
  [7] macro expansion
    @ ./lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
  [9] top-level scope
    @ ~/.julia/packages/Plots/M4dfL/src/backends.jl:395
 [10] eval
    @ ./boot.jl:368 [inlined]
 [11] _initialize_backend(pkg::Plots.GRBackend)
    @ Plots ~/.julia/packages/Plots/M4dfL/src/backends.jl:394
 [12] backend(pkg::Plots.GRBackend)
    @ Plots ~/.julia/packages/Plots/M4dfL/src/backends.jl:260
 [13] backend(sym::Symbol)
    @ Plots ~/.julia/packages/Plots/M4dfL/src/backends.jl:270
 [14] load_default_backend()
    @ Plots ~/.julia/packages/Plots/M4dfL/src/backends.jl:201
 [15] backend()
    @ Plots ~/.julia/packages/Plots/M4dfL/src/backends.jl:248
 [16] top-level scope
    @ ~/.julia/packages/Plots/M4dfL/src/init.jl:123
 [17] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
 [18] include(x::String)
    @ Plots ~/.julia/packages/Plots/M4dfL/src/Plots.jl:1
 [19] top-level scope
    @ ~/.julia/packages/Plots/M4dfL/src/Plots.jl:176
 [20] include
    @ ./Base.jl:419 [inlined]
 [21] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1554
 [22] top-level scope
    @ stdin:1
during initialization of module GRPreferences
in expression starting at /root/.julia/packages/Plots/M4dfL/src/init.jl:123
in expression starting at /root/.julia/packages/Plots/M4dfL/src/Plots.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /root/.julia/compiled/v1.8/Plots/jl_hip1YZ.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:1707
  [3] compilecache
    @ ./loading.jl:1651 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [6] macro expansion
    @ ./loading.jl:1180 [inlined]
  [7] macro expansion
    @ ./lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
  [9] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
 [10] include(x::String)
    @ AlphaZero ~/.julia/packages/AlphaZero/p8fyV/src/AlphaZero.jl:6
 [11] top-level scope
    @ ~/.julia/packages/AlphaZero/p8fyV/src/AlphaZero.jl:160
 [12] include
    @ ./Base.jl:419 [inlined]
 [13] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1554
 [14] top-level scope
    @ stdin:1
in expression starting at /root/.julia/packages/AlphaZero/p8fyV/src/ui/ui.jl:1
in expression starting at /root/.julia/packages/AlphaZero/p8fyV/src/AlphaZero.jl:6
in expression starting at stdin:1

Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types /usr/local/share/julia/stdlib/v1.8/Pkg/src/Types.jl:67
 [2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{String}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Pkg.API /usr/local/share/julia/stdlib/v1.8/Pkg/src/API.jl:1432
 [3] precompile
   @ /usr/local/share/julia/stdlib/v1.8/Pkg/src/API.jl:1063 [inlined]
 [4] #precompile#225
   @ /usr/local/share/julia/stdlib/v1.8/Pkg/src/API.jl:1062 [inlined]
 [5] precompile (repeats 2 times)
   @ /usr/local/share/julia/stdlib/v1.8/Pkg/src/API.jl:1062 [inlined]
 [6] top-level scope
   @ In[9]:1

Using AlphaZero gives no error.
Running :
run(julia --project --color=yes scripts/alphazero.jl --game connect-four train) gives

Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:31
 [2] top-level scope
   @ ~/.julia/packages/ChainRulesCore/uxrij/src/rule_definition_tools.jl:383
 [3] include(mod::Module, _path::String)
   @ Base ./Base.jl:419
 [4] include(x::String)
   @ ChainRules ~/.julia/packages/ChainRules/PDTpW/src/ChainRules.jl:1
 [5] top-level scope
   @ ~/.julia/packages/ChainRules/PDTpW/src/ChainRules.jl:23
 [6] include
   @ ./Base.jl:419 [inlined]
 [7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
   @ Base ./loading.jl:1554
 [8] top-level scope
   @ stdin:1
in expression starting at /root/.julia/packages/ChainRules/PDTpW/src/rulesets/Base/nondiff.jl:454
in expression starting at /root/.julia/packages/ChainRules/PDTpW/src/ChainRules.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile ChainRules [082447d4-558c-5d27-93f4-14fc19e9eca2] to /root/.julia/compiled/v1.8/ChainRules/jl_YkjyWN.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:1707
  [3] compilecache
    @ ./loading.jl:1651 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [6] macro expansion
    @ ./loading.jl:1180 [inlined]
  [7] macro expansion
    @ ./lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
  [9] include
    @ ./Base.jl:419 [inlined]
 [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1554
 [11] top-level scope
    @ stdin:1
in expression starting at /root/.julia/packages/Zygote/FPUm3/src/Zygote.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile Zygote [e88e6eb3-aa80-5325-afca-941959d7151f] to /root/.julia/compiled/v1.8/Zygote/jl_DyzNPh.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:1707
  [3] compilecache
    @ ./loading.jl:1651 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [6] macro expansion
    @ ./loading.jl:1180 [inlined]
  [7] macro expansion
    @ ./lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
  [9] include
    @ ./Base.jl:419 [inlined]
 [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1554
 [11] top-level scope
    @ stdin:1
in expression starting at /root/.julia/packages/Flux/BPPNj/src/Flux.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile Flux [587475ba-b771-5e3f-ad9e-33799f191a9c] to /root/.julia/compiled/v1.8/Flux/jl_GdjeYX.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:1707
  [3] compilecache
    @ ./loading.jl:1651 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [6] macro expansion
    @ ./loading.jl:1180 [inlined]
  [7] macro expansion
    @ ./lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
  [9] include
    @ ./Base.jl:419 [inlined]
 [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1554
 [11] top-level scope
    @ stdin:1
in expression starting at /content/AlphaZero.jl/src/AlphaZero.jl:6
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile AlphaZero [8ed9eb0b-7496-408d-8c8b-2119aeea02cd] to /root/.julia/compiled/v1.8/AlphaZero/jl_oUrFnl.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
   @ Base ./loading.jl:1707
 [3] compilecache
   @ ./loading.jl:1651 [inlined]
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1337
 [5] _require_prelocked(uuidkey::Base.PkgId)
   @ Base ./loading.jl:1200
 [6] macro expansion
   @ ./loading.jl:1180 [inlined]
 [7] macro expansion
   @ ./lock.jl:223 [inlined]
 [8] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:1144
in expression starting at /content/AlphaZero.jl/scripts/alphazero.jl:14
failed process: Process(`julia --project --color=yes scripts/alphazero.jl --game connect-four train`, ProcessExited(1)) [1]


Stacktrace:
 [1] pipeline_error
   @ ./process.jl:565 [inlined]
 [2] run(::Cmd; wait::Bool)
   @ Base ./process.jl:480
 [3] run(::Cmd)
   @ Base ./process.jl:477
 [4] top-level scope
   @ In[11]:1

Running

using AlphaZero
experiment = Examples.experiments["connect-four"]
session = Session(experiment, dir="sessions/connect-four")
resume!(session)

gives

UndefVarError: Examples not defined

Stacktrace:
 [1] top-level scope
   @ In[17]:2

Code snippets above are taken from https://jonathan-laurent.github.io/AlphaZero.jl/dev/tutorial/connect_four/

Colab file is
https://colab.research.google.com/drive/1RLc2DAnQ0pRguGasg2-nSmdRbsbLNYeb?usp=sharing#scrollTo=QUxQEMc6V2xj

I am going to need more details if you want some help.
Can you send me a full stacktrace along with your Julia version and the version of all the dependencies you are using?

I am going to need more details if you want some help. Can you send me a full stacktrace along with your Julia version and the version of all the dependencies you are using?

I have updated the issue, with detailed stacktrace of every command. I am using Julia version 1.8.2. Colab is linked if you want to check it.
https://colab.research.google.com/drive/1RLc2DAnQ0pRguGasg2-nSmdRbsbLNYeb?usp=sharing#scrollTo=hW7wZgOEYh2H

I just released a new version (0.5.4) that may fix your issue.

I do get less number of errors however importing AlphaZero still gives the following errors:

[ Info: Using the Flux implementation of AlphaZero.NetLib.
ERROR: LoadError: InitError: UndefVarError: GR_jll not defined
Stacktrace:
  [1] __init__()
    @ GR.GRPreferences ~/.julia/packages/GR/I1aTM/src/preferences.jl:50
  [2] _include_from_serialized(pkg::Base.PkgId, path::String, depmods::Vector{Any})
    @ Base ./loading.jl:831
  [3] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt64)
    @ Base ./loading.jl:1039
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1315
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [6] macro expansion
    @ ./loading.jl:1180 [inlined]
  [7] macro expansion
    @ ./lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
  [9] top-level scope
    @ ~/.julia/packages/Plots/nqFaB/src/backends.jl:395
 [10] eval
    @ ./boot.jl:368 [inlined]
 [11] _initialize_backend(pkg::Plots.GRBackend)
    @ Plots ~/.julia/packages/Plots/nqFaB/src/backends.jl:394
 [12] backend(pkg::Plots.GRBackend)
    @ Plots ~/.julia/packages/Plots/nqFaB/src/backends.jl:260
 [13] backend(sym::Symbol)
    @ Plots ~/.julia/packages/Plots/nqFaB/src/backends.jl:270
 [14] load_default_backend()
    @ Plots ~/.julia/packages/Plots/nqFaB/src/backends.jl:201
 [15] backend()
    @ Plots ~/.julia/packages/Plots/nqFaB/src/backends.jl:248
 [16] top-level scope
    @ ~/.julia/packages/Plots/nqFaB/src/init.jl:123
 [17] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
 [18] include(x::String)
    @ Plots ~/.julia/packages/Plots/nqFaB/src/Plots.jl:1
 [19] top-level scope
    @ ~/.julia/packages/Plots/nqFaB/src/Plots.jl:176
 [20] include
    @ ./Base.jl:419 [inlined]
 [21] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1554
 [22] top-level scope
    @ stdin:1
during initialization of module GRPreferences
in expression starting at /root/.julia/packages/Plots/nqFaB/src/init.jl:123
in expression starting at /root/.julia/packages/Plots/nqFaB/src/Plots.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /root/.julia/compiled/v1.8/Plots/jl_ET7sPQ.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:1707
  [3] compilecache
    @ ./loading.jl:1651 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [6] macro expansion
    @ ./loading.jl:1180 [inlined]
  [7] macro expansion
    @ ./lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
  [9] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
 [10] include(x::String)
    @ AlphaZero /content/AlphaZero.jl/AlphaZero.jl/src/AlphaZero.jl:6
 [11] top-level scope
    @ /content/AlphaZero.jl/AlphaZero.jl/src/AlphaZero.jl:160
 [12] include
    @ ./Base.jl:419 [inlined]
 [13] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1554
 [14] top-level scope
    @ stdin:1
in expression starting at /content/AlphaZero.jl/AlphaZero.jl/src/ui/ui.jl:1
in expression starting at /content/AlphaZero.jl/AlphaZero.jl/src/AlphaZero.jl:6
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile AlphaZero [8ed9eb0b-7496-408d-8c8b-2119aeea02cd] to /root/.julia/compiled/v1.8/AlphaZero/jl_4uDjFW.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
   @ Base ./loading.jl:1707
 [3] compilecache
   @ ./loading.jl:1651 [inlined]
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1337
 [5] _require_prelocked(uuidkey::Base.PkgId)
   @ Base ./loading.jl:1200
 [6] macro expansion
   @ ./loading.jl:1180 [inlined]
 [7] macro expansion
   @ ./lock.jl:223 [inlined]
 [8] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:1144
in expression starting at /content/AlphaZero.jl/AlphaZero.jl/scripts/alphazero.jl:14
failed process: Process(`julia --project --color=yes scripts/alphazero.jl --game connect-four train`, ProcessExited(1)) [1]


Stacktrace:
 [1] pipeline_error
   @ ./process.jl:565 [inlined]
 [2] run(::Cmd; wait::Bool)
   @ Base ./process.jl:480
 [3] run(::Cmd)
   @ Base ./process.jl:477
 [4] top-level scope
   @ In[20]:1

This looks like a GR bug, not an AlphaZero.jl bug.
I know I had some issues when using Plots.jl on machines without an X server, which is why I recommend setting the following environment variable in the README:

export GKSwstype=100  # To avoid an occasional GR bug

Using run(`export GKSwstype=100`) gives me

IOError: could not spawn `export GKSwstype=100`: no such file or directory (ENOENT)

Stacktrace:
 [1] _spawn_primitive(file::String, cmd::Cmd, stdio::Vector{Union{RawFD, IO}})
   @ Base ./process.jl:128
 [2] #725
   @ ./process.jl:139 [inlined]
 [3] setup_stdios(f::Base.var"#725#726"{Cmd}, stdios::Vector{Union{RawFD, IO}})
   @ Base ./process.jl:223
 [4] _spawn
   @ ./process.jl:138 [inlined]
 [5] run(::Cmd; wait::Bool)
   @ Base ./process.jl:479
 [6] run(::Cmd)
   @ Base ./process.jl:477
 [7] top-level scope
   @ In[8]:1

You can look at the same colab file.

Also can I add the same "export GKSwstype=100 # To avoid an occasional GR bug" on your website as well? Do you mind if I make a pull request ?