Error while initializing pysr 1.3.1 #803
-
Environment Details:
My Problem:Hello, I'm encountering an error when using the new PySR version. The initialization is failing. >Python 3.12.8 | packaged by Anaconda, Inc. | (main, Dec 11 2024, 16:48:34) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
import pysr
[juliapkg] Found dependencies: c:\users\ari5\appdata\local\miniconda3\lib\site-packages\juliacall\juliapkg.json
[juliapkg] Found dependencies: c:\users\Clemrmd\appdata\local\miniconda3\lib\site-packages\juliapkg\juliapkg.json
[juliapkg] Found dependencies: c:\users\Clemrmd\appdata\local\miniconda3\lib\site-packages\pysr\juliapkg.json
[juliapkg] Locating Julia =1.10.0, ^1.10.3
[juliapkg] Querying Julia versions from https://julialang-s3.julialang.org/bin/versions.json
[juliapkg] Using Julia 1.11.2 at C:\Users\Clemrmd\AppData\Local\miniconda3\julia_env\pyjuliapkg\install\bin\julia.exe
[juliapkg] Using Julia project at C:\Users\Clemrmd\AppData\Local\miniconda3\julia_env
[juliapkg] Installing packages:
julia> import Pkg
julia> Pkg.Registry.update()
julia> Pkg.add([Pkg.PackageSpec(name="PythonCall", uuid="6099a3de-0909-46bc-b1f4-468b9a2dfc0d"), Pkg.PackageSpec(name="SymbolicRegression", uuid="8254be44-1295-4e6a-a16d-46603ac705cb"), Pkg.PackageSpec(name="Serialization", uuid="9e88b42a-f829-5b0c-bbe9-9e923198166b")])
julia> Pkg.resolve()
julia> Pkg.precompile()
┌ Warning: could not download https://pkg.julialang.org/registries
│ exception = RequestError: schannel: CertGetCertificateChain trust error CERT_TRUST_IS_UNTRUSTED_ROOT while requesting https://pkg.julialang.org/registries
└ @ Pkg.Registry C:\Users\Clemrmd\AppData\Local\miniconda3\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.11\Pkg\src\Registry\Registry.jl:77
Updating registry at `C:\Users\Clemrmd\.julia\registries\General.toml`
┌ Warning: could not download https://pkg.julialang.org/registries
│ exception = RequestError: schannel: CertGetCertificateChain trust error CERT_TRUST_IS_UNTRUSTED_ROOT while requesting https://pkg.julialang.org/registries
└ @ Pkg.Registry C:\Users\Clemrmd\AppData\Local\miniconda3\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.11\Pkg\src\Registry\Registry.jl:77
Updating registry at `C:\Users\Clemrmd\.julia\registries\General.toml`
Resolving package versions...
**ERROR: Unsatisfiable requirements detected for package SymbolicRegression [8254be44]:
SymbolicRegression [8254be44] log:
├─possible versions are: 0.1.0 - 0.24.5 or uninstalled
└─restricted to versions 1.5.1 by project [f9486424] — no versions left
└─project [f9486424] log:
├─possible versions are: 0.0.0 or uninstalled
└─project [f9486424] is fixed to version 0.0.0**
Stacktrace:
[1] check_constraints(graph::Pkg.Resolve.Graph)
@ Pkg.Resolve C:\Users\Clemrmd\AppData\Local\miniconda3\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.11\Pkg\src\Resolve\graphtype.jl:998
[2] Pkg.Resolve.Graph(compat::Dict{Base.UUID, Dict{VersionNumber, Dict{Base.UUID, Pkg.Versions.VersionSpec}}}, compat_weak::Dict{Base.UUID, Dict{VersionNumber, Set{Base.UUID}}}, uuid_to_name::Dict{Base.UUID, String}, reqs::Dict{Base.UUID, Pkg.Versions.VersionSpec}, fixed::Dict{Base.UUID, Pkg.Resolve.Fixed}, verbose::Bool, julia_version::VersionNumber)
@ Pkg.Resolve C:\Users\Clemrmd\AppData\Local\miniconda3\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.11\Pkg\src\Resolve\graphtype.jl:345
[3] deps_graph(env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, uuid_to_name::Dict{Base.UUID, String}, reqs::Dict{Base.UUID, Pkg.Versions.VersionSpec}, fixed::Dict{Base.UUID, Pkg.Resolve.Fixed}, julia_version::VersionNumber, installed_only::Bool)
@ Pkg.Operations C:\Users\Clemrmd\AppData\Local\miniconda3\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:609
[4] resolve_versions!(env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, pkgs::Vector{Pkg.Types.PackageSpec}, julia_version::VersionNumber, installed_only::Bool)
@ Pkg.Operations C:\Users\Clemrmd\AppData\Local\miniconda3\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:429
[5] targeted_resolve(env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, pkgs::Vector{Pkg.Types.PackageSpec}, preserve::Pkg.Types.PreserveLevel, julia_version::VersionNumber)
@ Pkg.Operations C:\Users\Clemrmd\AppData\Local\miniconda3\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:1391
[6] tiered_resolve(env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, pkgs::Vector{Pkg.Types.PackageSpec}, julia_version::VersionNumber, try_all_installed::Bool)
@ Pkg.Operations C:\Users\Clemrmd\AppData\Local\miniconda3\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:1380
[7] _resolve(io::IOContext{IO}, env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, pkgs::Vector{Pkg.Types.PackageSpec}, preserve::Pkg.Types.PreserveLevel, julia_version::VersionNumber)
@ Pkg.Operations C:\Users\Clemrmd\AppData\Local\miniconda3\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:1401
[8] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{Base.UUID}; allow_autoprecomp::Bool, preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, target::Symbol)
@ Pkg.Operations C:\Users\Clemrmd\AppData\Local\miniconda3\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:1435
[9] add
@ C:\Users\Clemrmd\AppData\Local\miniconda3\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:1407 [inlined]
[10] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, target::Symbol, allow_autoprecomp::Bool, kwargs::@Kwargs{io::IOContext{IO}})
@ Pkg.API C:\Users\Clemrmd\AppData\Local\miniconda3\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.11\Pkg\src\API.jl:306
[11] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOContext{IO}, kwargs::@Kwargs{})
@ Pkg.API C:\Users\Clemrmd\AppData\Local\miniconda3\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.11\Pkg\src\API.jl:159
[12] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API C:\Users\Clemrmd\AppData\Local\miniconda3\julia_env\pyjuliapkg\install\share\julia\stdlib\v1.11\Pkg\src\API.jl:148
[13] top-level scope
@ none:1
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Clemrmd\AppData\Local\miniconda3\Lib\site-packages\pysr\__init__.py", line 11, in <module>
from .julia_import import jl, SymbolicRegression # isort:skip
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Clemrmd\AppData\Local\miniconda3\Lib\site-packages\pysr\julia_import.py", line 52, in <module>
try_with_registry_fallback(_import_juliacall)
File "C:\Users\Clemrmd\AppData\Local\miniconda3\Lib\site-packages\pysr\julia_registry_helpers.py", line 27, in try_with_registry_fallback
raise initial_error
File "C:\Users\Clemrmd\AppData\Local\miniconda3\Lib\site-packages\pysr\julia_registry_helpers.py", line 21, in try_with_registry_fallback
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "C:\Users\Clemrmd\AppData\Local\miniconda3\Lib\site-packages\pysr\julia_import.py", line 49, in _import_juliacall
import juliacall # type: ignore
^^^^^^^^^^^^^^^^
File "C:\Users\Clemrmd\AppData\Local\miniconda3\Lib\site-packages\juliacall\__init__.py", line 287, in <module>
init()
File "C:\Users\Clemrmd\AppData\Local\miniconda3\Lib\site-packages\juliacall\__init__.py", line 159, in init
CONFIG['exepath'] = exepath = juliapkg.executable()
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Clemrmd\AppData\Local\miniconda3\Lib\site-packages\juliapkg\deps.py", line 381, in executable
resolve()
File "C:\Users\Clemrmd\AppData\Local\miniconda3\Lib\site-packages\juliapkg\deps.py", line 350, in resolve
run(
File "C:\Users\Clemrmd\AppData\Local\miniconda3\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Users\\Clemrmd\\AppData\\Local\\miniconda3\\julia_env\\pyjuliapkg\\install\\bin\\julia.exe', '--project=C:\\Users\\Clemrmd\\AppData\\Local\\miniconda3\\julia_env', '--startup-file=no', '-e', 'import Pkg; Pkg.Registry.update(); Pkg.add([Pkg.PackageSpec(name="PythonCall", uuid="6099a3de-0909-46bc-b1f4-468b9a2dfc0d"), Pkg.PackageSpec(name="SymbolicRegression", uuid="8254be44-1295-4e6a-a16d-46603ac705cb"), Pkg.PackageSpec(name="Serialization", uuid="9e88b42a-f829-5b0c-bbe9-9e923198166b")]); Pkg.resolve(); Pkg.precompile()']' returned non-zero exit status 1. |
Beta Was this translation helpful? Give feedback.
Answered by
MilesCranmer
Jan 9, 2025
Replies: 2 comments 2 replies
-
Looks like there is a cert issue:
Can you download from command line normally for other stuff? Is there any firewall in place? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Can you start
(avoiding the double backslash) And then run |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Clemrmd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you start
(avoiding the double backslash)
And then run
using Pkg; Pkg.update()
?