Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while installing invalid value for Enum Code: -30848 #155

Open
aburousan opened this issue Mar 18, 2024 · 2 comments
Open

Error while installing invalid value for Enum Code: -30848 #155

aburousan opened this issue Mar 18, 2024 · 2 comments

Comments

@aburousan
Copy link

I was trying to install this package using Pkg.add(url="https://github.com/cescalara/PartonDensity.jl.git") but it is showing an error,
ERROR: ArgumentError: invalid value for Enum Code: -30848 Stacktrace: [1] enum_argument_error(typename::Symbol, x::Int32) @ Base.Enums ./Enums.jl:93 [2] Code @ LibGit2.Error ./Enums.jl:211 [inlined] [3] LibGit2.Error.GitError(err_code::Int32) @ LibGit2.Error /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/error.jl:100 [4] macro expansion @ LibGit2 /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/error.jl:112 [inlined] [5] clone(repo_url::SubString{String}, repo_path::String, clone_opts::LibGit2.CloneOptions) @ LibGit2 /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/repository.jl:459 [6] clone(repo_url::SubString{…}, repo_path::String; branch::String, isbare::Bool, remote_cb::Ptr{…}, credentials::LibGit2.CachedCredentials, callbacks::Dict{…}) @ LibGit2 /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/LibGit2.jl:585 [7] clone @ LibGit2 /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/LibGit2.jl:558 [inlined] [8] clone(io::Base.TTY, url::String, source_path::String; header::Nothing, credentials::Nothing, kwargs::@Kwargs{…}) @ Pkg.GitTools /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/GitTools.jl:121 [9] clone @ Pkg.GitTools /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/GitTools.jl:88 [inlined] [10] #ensure_clone#2 @ Pkg.GitTools /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/GitTools.jl:74 [inlined] [11] handle_repo_add!(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec) @ Pkg.Types /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/Types.jl:782 [12] handle_repos_add!(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}) @ Pkg.Types /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/Types.jl:852 [13] add(ctx::Pkg.Types.Context, pkgs::Vector{…}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@Kwargs{…}) @ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:258 [14] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{}) @ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:159 [15] add(pkgs::Vector{Pkg.Types.PackageSpec}) @ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:148 [16] add(pkgs::Vector{Pkg.Types.PackageSpec}) @ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:146 [inlined] [17] add(; name::Nothing, uuid::Nothing, version::Nothing, url::String, rev::Nothing, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::@Kwargs{}) @ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:176 [18] top-level scope @ REPL[3]:1 Some type information was truncated. Useshow(err)` to see complete types.

julia> Pkg.add(url="https://github.com/cescalara/PartonDensity.jl.git", rev="v0.2.0")
Cloning git-repo https://github.com/cescalara/PartonDensity.jl.git
ERROR: ArgumentError: invalid value for Enum Code: -30848
Stacktrace:
[1] enum_argument_error(typename::Symbol, x::Int32)
@ Base.Enums ./Enums.jl:93
[2] Code
@ LibGit2.Error ./Enums.jl:211 [inlined]
[3] LibGit2.Error.GitError(err_code::Int32)
@ LibGit2.Error /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/error.jl:100
[4] macro expansion
@ LibGit2 /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/error.jl:112 [inlined]
[5] clone(repo_url::SubString{String}, repo_path::String, clone_opts::LibGit2.CloneOptions)
@ LibGit2 /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/repository.jl:459
[6] clone(repo_url::SubString{…}, repo_path::String; branch::String, isbare::Bool, remote_cb::Ptr{…}, credentials::LibGit2.CachedCredentials, callbacks::Dict{…})
@ LibGit2 /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/LibGit2.jl:585
[7] clone
@ LibGit2 /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/LibGit2.jl:558 [inlined]
[8] clone(io::Base.TTY, url::String, source_path::String; header::Nothing, credentials::Nothing, kwargs::@kwargs{…})
@ Pkg.GitTools /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/GitTools.jl:121
[9] clone
@ Pkg.GitTools /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/GitTools.jl:88 [inlined]
[10] #ensure_clone#2
@ Pkg.GitTools /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/GitTools.jl:74 [inlined]
[11] handle_repo_add!(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec)
@ Pkg.Types /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/Types.jl:782
[12] handle_repos_add!(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.Types /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/Types.jl:852
[13] add(ctx::Pkg.Types.Context, pkgs::Vector{…}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@kwargs{…})
@ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:258
[14] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@kwargs{})
@ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:159
[15] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:148
[16] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:146 [inlined]
[17] add(; name::Nothing, uuid::Nothing, version::Nothing, url::String, rev::String, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::@kwargs{})
@ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:176
[18] top-level scope
@ REPL[4]:1
Some type information was truncated. Use show(err) to see complete types.
`
My system is: Ubuntu 22.04.4 LTS
Julia version: 1.10.0
Any help will be appreciated

@cescalara
Copy link
Owner

Hey @aburousan,

I didn't manage to reproduce your error when testing on Julia 1.10.2 or 1.7.3 also on Ubuntu 22.02.4 LTS. It looks like it might have something to do with Pkg and its git interface. Can you install other Julia packages via git without issues? E.g. Pkg.add(url="https://github.com/JuliaPlots/Plots.jl.git", rev="v1.40.2")

@vtjnash
Copy link

vtjnash commented Dec 9, 2024

This is MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants