Julia Dependencies for PYSR

Precompiling project…
✗ SpecialFunctions
✗ LoopVectorization → SpecialFunctionsExt
✗ ForwardDiff
✗ NLSolversBase
✗ LineSearches
✗ Optim
✗ SymbolicRegression
0 dependencies successfully precompiled in 25 seconds. 75 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

SymbolicRegression [8254be44-1295-4e6a-a16d-46603ac705cb]

Failed to precompile SymbolicRegression [8254be44-1295-4e6a-a16d-46603ac705cb] to “C:\Users\81080758\.julia\compiled\v1.10\SymbolicRegression\jl_CCF2.tmp”.
ERROR: LoadError: InitError: could not load library “C:\Users\81080758.julia\artifacts\3e683ec5ca945a5aca74c49e8cccdf37c19b84a3\bin\libopenspecfun.dll”
Access is denied.
Stacktrace:
[1] dlopen(s::String, flags::UInt32; throw_error::Bool)
@ Base.Libc.Libdl .\libdl.jl:117
[2] dlopen(s::String, flags::UInt32)
@ Base.Libc.Libdl .\libdl.jl:116
[3] macro expansion
@ C:\Users\81080758.julia\packages\JLLWrappers\pG9bm\src\products\library_generators.jl:63 [inlined]
[4] init()
@ OpenSpecFun_jll C:\Users\81080758.julia\packages\OpenSpecFun_jll\1Zaof\src\wrappers\x86_64-w64-mingw32-libgfortran5.jl:9
[5] run_module_init(mod::Module, i::Int64)
@ Base .\loading.jl:1128
[6] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1116
[7] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any})
@ Base .\loading.jl:1061
[8] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
@ Base .\loading.jl:1575
[9] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1932
[10] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1806
[11] #invoke_in_world#3
@ Base .\essentials.jl:921 [inlined]
[12] invoke_in_world
@ Base .\essentials.jl:918 [inlined]
[13] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1797
[14] macro expansion
@ Base .\loading.jl:1784 [inlined]
[15] macro expansion
@ Base .\lock.jl:267 [inlined]
[16] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:1747
[17] #invoke_in_world#3
@ Base .\essentials.jl:921 [inlined]
[18] invoke_in_world
@ Base .\essentials.jl:918 [inlined]
[19] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1740
[20] include
@ Base .\Base.jl:495 [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, UInt128}}, source::String)
@ Base .\loading.jl:2216
[22] top-level scope
@ stdin:3
during initialization of module OpenSpecFun_jll
in expression starting at C:\Users\81080758.julia\packages\SpecialFunctions\QH8rV\src\SpecialFunctions.jl:1
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile SpecialFunctions [276daf66-3868-5448-9aa4-cd146d93841b] to “C:\Users\81080758\.julia\compiled\v1.10\SpecialFunctions\jl_D723.tmp”.
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:2462
[3] compilecache
@ Base .\loading.jl:2334 [inlined]
[4] (::Base.var"#968#969"{Base.PkgId})()
@ Base .\loading.jl:1968
[5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93
[6] #mkpidlock#6
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]
[7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111
[8] #invokelatest#2
@ Base .\essentials.jl:889 [inlined]
[9] invokelatest
@ Base .\essentials.jl:884 [inlined]
[10] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
@ Base .\loading.jl:2977
[11] maybe_cachefile_lock
@ Base .\loading.jl:2974 [inlined]
[12] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1964
[13] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1806
[14] #invoke_in_world#3
@ Base .\essentials.jl:921 [inlined]
[15] invoke_in_world
@ Base .\essentials.jl:918 [inlined]
[16] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1797
[17] macro expansion
@ Base .\loading.jl:1784 [inlined]
[18] macro expansion
@ Base .\lock.jl:267 [inlined]
[19] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:1747
[20] #invoke_in_world#3
@ Base .\essentials.jl:921 [inlined]
[21] invoke_in_world
@ Base .\essentials.jl:918 [inlined]
[22] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1740
[23] include
@ Base .\Base.jl:495 [inlined]
[24] 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::String)
@ Base .\loading.jl:2216
[25] top-level scope
@ stdin:3
in expression starting at C:\Users\81080758.julia\packages\ForwardDiff\PcZ48\src\ForwardDiff.jl:1
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] to “C:\Users\81080758\.julia\compiled\v1.10\ForwardDiff\jl_D54E.tmp”.
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:2462
[3] compilecache
@ Base .\loading.jl:2334 [inlined]
[4] (::Base.var"#968#969"{Base.PkgId})()
@ Base .\loading.jl:1968
[5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93
[6] #mkpidlock#6
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]
[7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111
[8] #invokelatest#2
@ Base .\essentials.jl:889 [inlined]
[9] invokelatest
@ Base .\essentials.jl:884 [inlined]
[10] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
@ Base .\loading.jl:2977
[11] maybe_cachefile_lock
@ Base .\loading.jl:2974 [inlined]
[12] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1964
[13] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1806
[14] #invoke_in_world#3
@ Base .\essentials.jl:921 [inlined]
[15] invoke_in_world
@ Base .\essentials.jl:918 [inlined]
[16] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1797
[17] macro expansion
@ Base .\loading.jl:1784 [inlined]
[18] macro expansion
@ Base .\lock.jl:267 [inlined]
[19] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:1747
[20] #invoke_in_world#3
@ Base .\essentials.jl:921 [inlined]
[21] invoke_in_world
@ Base .\essentials.jl:918 [inlined]
[22] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1740
[23] include
@ Base .\Base.jl:495 [inlined]
[24] 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::String)
@ Base .\loading.jl:2216
[25] top-level scope
@ stdin:3
in expression starting at C:\Users\81080758.julia\packages\NLSolversBase\kavn7\src\NLSolversBase.jl:3
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile NLSolversBase [d41bc354-129a-5804-8e4c-c37616107c6c] to “C:\Users\81080758\.julia\compiled\v1.10\NLSolversBase\jl_D2FC.tmp”.
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:2462
[3] compilecache
@ Base .\loading.jl:2334 [inlined]
[4] (::Base.var"#968#969"{Base.PkgId})()
@ Base .\loading.jl:1968
[5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93
[6] #mkpidlock#6
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]
[7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111
[8] #invokelatest#2
@ Base .\essentials.jl:889 [inlined]
[9] invokelatest
@ Base .\essentials.jl:884 [inlined]
[10] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
@ Base .\loading.jl:2977
[11] maybe_cachefile_lock
@ Base .\loading.jl:2974 [inlined]
[12] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1964
[13] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1806
[14] #invoke_in_world#3
@ Base .\essentials.jl:921 [inlined]
[15] invoke_in_world
@ Base .\essentials.jl:918 [inlined]
[16] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1797
[17] macro expansion
@ Base .\loading.jl:1784 [inlined]
[18] macro expansion
@ Base .\lock.jl:267 [inlined]
[19] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:1747
[20] #invoke_in_world#3
@ Base .\essentials.jl:921 [inlined]
[21] invoke_in_world
@ Base .\essentials.jl:918 [inlined]
[22] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1740
[23] include
@ Base .\Base.jl:495 [inlined]
[24] 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::String)
@ Base .\loading.jl:2216
[25] top-level scope
@ stdin:3
in expression starting at C:\Users\81080758.julia\packages\Optim\dBGGV\src\Optim.jl:1
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile Optim [429524aa-4258-5aef-a3af-852621145aeb] to “C:\Users\81080758\.julia\compiled\v1.10\Optim\jl_D222.tmp”.
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:2462
[3] compilecache
@ Base .\loading.jl:2334 [inlined]
[4] (::Base.var"#968#969"{Base.PkgId})()
@ Base .\loading.jl:1968
[5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93
[6] #mkpidlock#6
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]
[7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
@ FileWatching.Pidfile C:\Users\81080758\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111
[8] #invokelatest#2
@ Base .\essentials.jl:889 [inlined]
[9] invokelatest
@ Base .\essentials.jl:884 [inlined]
[10] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
@ Base .\loading.jl:2977
[11] maybe_cachefile_lock
@ Base .\loading.jl:2974 [inlined]
[12] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1964
[13] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1806
[14] #invoke_in_world#3
@ Base .\essentials.jl:921 [inlined]
[15] invoke_in_world
@ Base .\essentials.jl:918 [inlined]
[16] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1797
[17] macro expansion
@ Base .\loading.jl:1784 [inlined]
[18] macro expansion
@ Base .\lock.jl:267 [inlined]
[19] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:1747
[20] #invoke_in_world#3
@ Base .\essentials.jl:921 [inlined]
[21] invoke_in_world
@ Base .\essentials.jl:918 [inlined]
[22] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1740
[23] include(mod::Module, _path::String)
@ Base .\Base.jl:495
[24] include(x::String)
@ SymbolicRegression.CoreModule C:\Users\81080758.julia\packages\SymbolicRegression\NCIOt\src\Core.jl:1
[25] top-level scope
@ C:\Users\81080758.julia\packages\SymbolicRegression\NCIOt\src\Core.jl:6
[26] include(mod::Module, _path::String)
@ Base .\Base.jl:495
[27] include(x::String)
@ SymbolicRegression C:\Users\81080758.julia\packages\SymbolicRegression\NCIOt\src\SymbolicRegression.jl:1
[28] top-level scope
@ C:\Users\81080758.julia\packages\SymbolicRegression\NCIOt\src\SymbolicRegression.jl:142
[29] include
@ Base .\Base.jl:495 [inlined]
[30] 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:2216
[31] top-level scope
@ stdin:3
in expression starting at C:\Users\81080758.julia\packages\SymbolicRegression\NCIOt\src\OptionsStruct.jl:1
in expression starting at C:\Users\81080758.julia\packages\SymbolicRegression\NCIOt\src\Core.jl:1
in expression starting at C:\Users\81080758.julia\packages\SymbolicRegression\NCIOt\src\SymbolicRegression.jl:1
in expression starting at stdin:

I installed Julia using the Windows Installer

That line is particularly confusing. Can you access that location?

Are there any any particularly tight security restrictions on this computer?

I suppose we could try to download the artifact again. It may involve renaming this folder.

“C:\Users\81080758.julia\artifacts\3e683ec5ca945a5aca74c49e8cccdf37c19b84a3”

You could also rename the .julia folder and try to install everything again.

would you recommend uninstalling Julia and trying to reinstall? are there any specific steps that you would recommend for the installation? thank you

@Maria_Pintos One option is to try the new PythonCall.jl version of PySR which automatically installs julia and all the dependencies.

It’s not released yet but you install the current version with:

pip install -U git+https://github.com/MilesCranmer/PySR.git@06aebb6b587f8c811723710f8193a5086778b3ad

then just

import pysr

will automatically set up everything.

But I would also concur that the permission issues you are seeing are probably best solved by uninstalling Julia.

  1. Uninstall Julia completely.
  2. Try installing the development version of pysr I pasted above. It will automatically install a compatible Julia for you.

I’m not sure what uninstalling Julia would do since the access issue is in the .julia folder. Renaming the .julia folder should be effectively starting again as far as the error that we see.

If you only reinstalled Julia, it probably would not help the proximal issue.

If you do reinstall Julia, do so from the Microsoft Store if possible.

I successfully uninstalled Julia, and pip installed the current version of PythonCall.jl succesfully as well. Once this was done, I tried to run import pysr and got

Installing known registries into C:\Users\81080758\.julia
Cloning git-repo https://github.com/MilesCranmer/SymbolicRegression.jl
ERROR: failed to clone from GitHub - MilesCranmer/SymbolicRegression.jl: Distributed High-Performance Symbolic Regression in Julia, error: GitError(Code:ERROR, Class:SSL, Your Julia is built with a SSL/TLS engine that libgit2 doesn’t know how to configure to use a file or directory of
certificate authority roots, but your environment specifies one via the SSL_CERT_FILE variable. If you believe your system’s root certificates are safe to use, you can export JULIA_SSL_CA_ROOTS_PATH="" in your environment to use those
instead.)
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\Types.jl:70
[2] clone(io::Base.TTY, url::String, source_path::String; header::Nothing, credentials::Nothing, kwargs::@Kwargs{isbare::Bool})
@ Pkg.GitTools C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\GitTools.jl:132
[3] clone
@ Pkg.GitTools C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\GitTools.jl:88 [inlined]
[4] #ensure_clone#2
@ Pkg.GitTools C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\GitTools.jl:74 [inlined]
[5] handle_repo_add!(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec)
@ Pkg.Types C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\Types.jl:782
[6] handle_repos_add!(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.Types C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\Types.jl:852
[7] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@Kwargs{io::Base.TTY})
@ Pkg.API C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\API.jl:258
[8] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{})
@ Pkg.API C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\API.jl:159
[9] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\API.jl:148
[10] top-level scope
@ none:1

caused by: GitError(Code:ERROR, Class:SSL, Your Julia is built with a SSL/TLS engine that libgit2 doesn’t know how to configure to use a file or directory of certificate authority roots, but your environment specifies one via the SSL_CERT_FILE variable. If you believe your system’s root certificates are safe to use, you can export JULIA_SSL_CA_ROOTS_PATH="" in your environment to use those instead.)
Stacktrace:
[1] set_ssl_cert_locations(cert_loc::String)
@ LibGit2 C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\LibGit2.jl:1025
[2] initialize()
@ LibGit2 C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\LibGit2.jl:991
[3] (::LibGit2.var"#161#162")()
@ LibGit2 C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\LibGit2.jl:977
[4] lock(f::LibGit2.var"#161#162", l::ReentrantLock)
@ Base .\lock.jl:229
[5] ensure_initialized
@ LibGit2 C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\LibGit2.jl:973 [inlined]
[6] LibGit2.GitConfig(level::LibGit2.Consts.GIT_CONFIG)
@ LibGit2 C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\config.jl:50
[7] GitConfig
@ LibGit2 C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\config.jl:50 [inlined]
[8] CredentialPayload
@ LibGit2 C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\types.jl:1367 [inlined]
[9] #CredentialPayload#23
@ LibGit2 C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\types.jl:1385 [inlined]
[10] CredentialPayload
@ LibGit2 C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\types.jl:1384 [inlined]
[11] clone(repo_url::SubString{String}, repo_path::String; branch::String, isbare::Bool, remote_cb::Ptr{Nothing}, credentials::LibGit2.CachedCredentials, callbacks::Dict{Symbol, Tuple{Ptr{Nothing}, Any}})
@ LibGit2 C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\LibGit2.jl:564
[12] clone
@ LibGit2 C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\LibGit2\src\LibGit2.jl:558 [inlined]
[13] clone(io::Base.TTY, url::String, source_path::String; header::Nothing, credentials::Nothing, kwargs::@Kwargs{isbare::Bool})
@ Pkg.GitTools C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\GitTools.jl:121
[14] clone
@ Pkg.GitTools C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\GitTools.jl:88 [inlined]
[15] #ensure_clone#2
@ Pkg.GitTools C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\GitTools.jl:74 [inlined]
[16] handle_repo_add!(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec)
@ Pkg.Types C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\Types.jl:782
[17] handle_repos_add!(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.Types C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\Types.jl:852
[18] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@Kwargs{io::Base.TTY})
@ Pkg.API C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\API.jl:258
[19] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{})
@ Pkg.API C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\API.jl:159
[20] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.10\Pkg\src\API.jl:148
[21] top-level scope
@ none:1
Traceback (most recent call last):
File “c:/Users/81080758/DS-BiasMitigationFramework/symbolic_regression/distillation_sr.py”, line 7, in
import pysr
File “C:\ProgramData\miniconda3\envs\sr_env\lib\site-packages\pysr_init_.py”, line 4, in
from .julia_import import jl # isort:skip
File “C:\ProgramData\miniconda3\envs\sr_env\lib\site-packages\pysr\julia_import.py”, line 32, in
from juliacall import Main as jl # type: ignore
File “C:\ProgramData\miniconda3\envs\sr_env\lib\site-packages\juliacall_init_.py”, line 228, in
init()
File “C:\ProgramData\miniconda3\envs\sr_env\lib\site-packages\juliacall_init_.py”, line 153, in init
CONFIG[‘exepath’] = exepath = juliapkg.executable()
File “C:\ProgramData\miniconda3\envs\sr_env\lib\site-packages\juliapkg\deps.py”, line 303, in executable
resolve()
File “C:\ProgramData\miniconda3\envs\sr_env\lib\site-packages\juliapkg\deps.py”, line 282, in resolve
run([exe, ‘–project=’+project, ‘–startup-file=no’, ‘-e’, '; '.join(script)], check=True, env=env)
File “C:\ProgramData\miniconda3\envs\sr_env\lib\subprocess.py”, line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘[‘C:\ProgramData\miniconda3\envs\sr_env\julia_env\pyjuliapkg\install\bin\julia.exe’, ‘–project=C:\ProgramData\miniconda3\envs\sr_env\julia_env’, ‘–startup-file=no’, ‘-e’, ‘import Pkg; Pkg.add([Pkg.PackageSpec(name=“PythonCall”, uuid=“6099a3de-0909-46bc-b1f4-468b9a2dfc0d”), Pkg.PackageSpec(name=“SymbolicRegression”, uuid=“8254be44-1295-4e6a-a16d-46603ac705cb”, url=raw"GitHub - MilesCranmer/SymbolicRegression.jl: Distributed High-Performance Symbolic Regression in Julia", rev=raw"v0.23.1"), Pkg.PackageSpec(name=“ClusterManagers”, uuid=“34f1f09b-3a8b-5176-ab39-66d58a4d544e”), Pkg.PackageSpec(name=“Serialization”, uuid=“9e88b42a-f829-5b0c-bbe9-9e923198166b”)]); Pkg.resolve(); Pkg.precompile()’]’ returned non-zero exit status 1.

Does this issue help? [BUG] could not load library "libgit2" · Issue #267 · MilesCranmer/PySR · GitHub

If I cannot download Julia from the Microsoft Store, what other installation process would you recommend?

I already tried this

activate @pysr-0.16.3
rm SymbolicRegression ClusterManagers DynamicExpressions
add SymbolicRegression ClusterManagers DynamicExpressions

Hm maybe try the downloadable version? Download Julia

Or is that the one you had originally tried?

Its the one I originally tried…

Oh. Can you do pysr-0.16.9 instead of 0.16.3? I’m assuming you have the latest PySR which is 0.16.9.

0.16.3 was just the most recent version when that GitHub issue was posted.

Btw, did you try the environment variable that was suggested in the error message?

JULIA_SSL_CA_ROOTS_PATH=""

e.g.,

import os
os.environ["JULIA_SSL_CA_ROOTS_PATH"] = ""

import pysr
pysr.install()  # Only for PySR < v0.17
1 Like

Issue seems resolved per [BUG] could not load library "libgit2" · Issue #267 · MilesCranmer/PySR · GitHub

2 Likes