-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
Unable to add unregistered packages on macOS Monterey #2788
Comments
If you use a non-beta version of macOS Monterey, does it still occur? Are there files in |
There is no non-beta version of Monterey (At least until October 25, when the final releases. I'm on the RC).
|
Indeed. :) I meant if you have access to a previous non-beta version on the same machine. But it's okay if you don't, we'll do our best to debug it nevertheless. Okay, so the directory is just empty. My guess is that something is going badly wrong during initial clone, and then we don't clean up state properly. That # Create new temporary depot, guaranteed to be empty
export JULIA_DEPOT_PATH=$(mktemp -d)
# This should error out
julia -e 'import Pkg; Pkg.add(url="https://github.com/JuliaLang/Example.jl")'
# Clean up depot path
rm -rf "${JULIA_DEPOT_PATH}" If it does error out in the same way, then running inside of export JULIA_DEPOT_PATH=$(mktemp -d)
lldb --args julia -e 'import Pkg; Pkg.add(url="https://github.com/JuliaLang/Example.jl")' Once you get the |
Oops seems obvious in hindsight! I don't, unfortunately, though :/
Great, thank you! So, after modifying your command slightly, this is what I got:
Doesn't tell me anything tbh, but I'm hoping it's helpful? |
Can't reproduce the error or 1.7 on release Monterrey, tho I got some curl errors that didn't seem to affect it. (@v1.7) pkg> add https://github.com/JuliaLang/Example.jl
Cloning git-repo `https://github.com/JuliaLang/Example.jl`
Updating git-repo `https://github.com/JuliaLang/Example.jl`
Updating registry at `~/.julia/registries/General.toml`
┌ Error: curl_easy_setopt: 48
└ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:36
┌ Error: curl_easy_setopt: 48
└ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:36
┌ Error: curl_easy_setopt: 48
└ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:36
┌ Error: curl_easy_setopt: 48
└ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:36
┌ Error: curl_easy_setopt: 48
└ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:36
┌ Error: curl_easy_setopt: 48
└ @ Downloads.Curl /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:36
Resolving package versions...
Updating `~/.julia/environments/v1.7/Project.toml`
[7876af07] + Example v0.5.4 `https://github.com/JuliaLang/Example.jl#master`
Updating `~/.julia/environments/v1.7/Manifest.toml`
[7876af07] + Example v0.5.4 `https://github.com/JuliaLang/Example.jl#master`
Precompiling project...
1 dependency successfully precompiled in 2 seconds (25 already precompiled) |
Interesting data point! That means it's something with my particular config I guess. As for the curl errors, see the |
What happens if you run:
|
Same thing as before:
|
Maybe fixed by JuliaLang/julia#42721? |
I just tried on the nightly build and it still doesn't work, unfortunately. EDIT: Ok, this is very interesting: While I get the same error message as before when I |
When you start up the nightly, can you verify, using the dllist() function from the Libdl module, that no libraries are coming from /usr/local/? |
|
Just upgraded to 1.6.4 and this issue seems fixed. Ok nvm :( With |
Could you check #2788 (comment) again? |
Sure! I tried on both 1.6.4 and the current master, but the result hasn't changed: There's no libraries loaded from /usr/local. |
@staticfloat, any idea here? |
No; I haven't been able to reproduce this error on any other machine, unfortunately. :( |
I did a fresh install with 1.7 and it seems to work now! Thanks everybody! |
I see that this is closed, but I'm getting the same on macOS Monterey 1.7.1 as well now. I've done a fresh install to be sure. julia> using Pkg
julia> add https://github.com/JuliaLang/Example.jl
ERROR: syntax: extra token "https" after end of expression
Stacktrace:
[1] top-level scope
@ none:1 Version info Julia Version 1.7.1
Commit ac5cc99908 (2021-12-22 19:35 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin21.2.0)
CPU: Apple M1
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, cyclone) |
You need to enter |
OK, but that doesn't work either. (@v1.7) pkg> add https://github.com/JuliaLang/Example.jl
ERROR: GitError(Code:ENOTFOUND, Class:Repository, could not find repository from '/Users/adamsparks/.julia/clones/15037770950778237535')
Stacktrace:
[1] macro expansion
@ /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/LibGit2/src/error.jl:110 [inlined]
[2] LibGit2.GitRepo(path::String)
@ LibGit2 /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/LibGit2/src/repository.jl:11
[3] #ensure_clone#2
@ /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Pkg/src/GitTools.jl:72 [inlined]
[4] handle_repo_add!(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec)
@ Pkg.Types /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Pkg/src/Types.jl:676
[5] handle_repos_add!(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.Types /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Pkg/src/Types.jl:743
[6] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
@ Pkg.API /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Pkg/src/API.jl:248
[7] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Pkg/src/API.jl:149
[8] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Pkg/src/API.jl:144
[9] do_cmd!(command::Pkg.REPLMode.Command, repl::REPL.LineEditREPL)
@ Pkg.REPLMode /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Pkg/src/REPLMode/REPLMode.jl:407
[10] do_cmd(repl::REPL.LineEditREPL, input::String; do_rethrow::Bool)
@ Pkg.REPLMode /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Pkg/src/REPLMode/REPLMode.jl:385
[11] do_cmd
@ /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Pkg/src/REPLMode/REPLMode.jl:376 [inlined]
[12] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
@ Pkg.REPLMode /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Pkg/src/REPLMode/REPLMode.jl:549
[13] #invokelatest#2
@ ./essentials.jl:716 [inlined]
[14] invokelatest
@ ./essentials.jl:714 [inlined]
[15] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
@ REPL.LineEdit /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/REPL/src/LineEdit.jl:2493
[16] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
@ REPL /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/REPL/src/REPL.jl:1230
[17] (::REPL.var"#49#54"{REPL.LineEditREPL, REPL.REPLBackendRef})()
@ REPL ./task.jl:423
(@v1.7) pkg> |
Hi,
I'm unable to add unregistered packages (registered ones work just fine).
Specifically to test this issue, I started Julia with a new depot (
export JULIA_DEPOT_PATH=/Users/samuel/tmp
) and the first time I try to add an unregistered package, I get the below output followed by Julia crashing.After restarting Julia, the result changes to
and Julia no longer crashes. The same thing happens on master.
Note that I'm on the current dev beta of macOS Monterey (21A558).
The text was updated successfully, but these errors were encountered: