Skip to content

unable to add wrapper to julia #24

@irvincardoza

Description

@irvincardoza

The same problem exists on mac/windows and linux, as I verified on call platforms.

julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:

OpenSpiel [ceb70bd2-fe3f-44f0-b81f-41608acaf2f2]

Failed to precompile OpenSpiel [ceb70bd2-fe3f-44f0-b81f-41608acaf2f2] to "/home/irvin-cardoza/.julia/compiled/v1.10/OpenSpiel/jl_Uec8UG".
C++ exception while wrapping module OpenSpiel: Type for PlayerAction was not found when mapping it.
ERROR: LoadError: Type for PlayerAction was not found when mapping it.

Stacktrace:
[1] register_julia_module
@ ~/.julia/packages/CxxWrap/5IZvn/src/CxxWrap.jl:393 [inlined]
[2] readmodule(so_path_cb::typeof(OpenSpiel_jll.get_libspieljl_path), funcname::Symbol, m::Module, flags::Nothing)
@ CxxWrap.CxxWrapCore ~/.julia/packages/CxxWrap/5IZvn/src/CxxWrap.jl:751
[3] wrapmodule(so_path_cb::Function, funcname::Symbol, m::Module, flags::Nothing)
@ CxxWrap.CxxWrapCore ~/.julia/packages/CxxWrap/5IZvn/src/CxxWrap.jl:761
[4] top-level scope
@ ~/.julia/packages/OpenSpiel/fymb6/src/OpenSpiel.jl:8
[5] include
@ ./Base.jl:495 [inlined]
[6] 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, UInt128}}, source::Nothing)
@ Base ./loading.jl:2222
[7] top-level scope
@ stdin:3

Steps Taken to add wrapper

  1. Installed Julia
  2. Cloned the OpenSpiel.jl repo (even tried to clone directly from julia pkg)
  3. Tried the command using OpenSpiel , which resulted in the error
  4. Even tried ] add OpenSpiel on linux and the error still existed

I am trying to integrate AlphaZero.jl and build a machine learning project but I am stuck at this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions