-
Notifications
You must be signed in to change notification settings - Fork 50
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 install in Julia 1.5.1 #225
Comments
I've heard reports about this from 5 more students in our class https://github.com/mitmath/18S191 One of them has Windows 10, one has MacOS, others I don't know. |
What should I tell students to do when this error happens? Reinstall Julia? Clear the |
Difficult to tell with no information. Perhaps try https://github.com/giordano/DebugArtifacts.jl, e.g.
and then
and report back? |
@kino-tech Could you try that? The commands are: Open a new Julia REPL julia> import Pkg; Pkg.activate(mktempdir());
julia> Pkg.add(Pkg.PackageSpec(url="https://github.com/giordano/DebugArtifacts.jl.git"))
julia> import DebugArtifacts; DebugArtifacts.debug_artifact("MbedTLS") |
OK - the last line didnt work julia> import Pkg; Pkg.activate(mktempdir()); julia> Pkg.add(Pkg.PackageSpec(url="https://github.com/giordano/DebugArtifacts.jl.git")) julia> import DebugArtifacts; DebugArtifacts.debug_artifact("MbedTLS") [ Info: Downloading Artifacts.toml to /var/folders/hg/66twqszn69b48jm1z9y5d5gh0000gn/T/jl_dJ5LkJ/Artifacts.toml... curl: (7) Couldn't connect to server Stacktrace: julia> -- Kino |
Quoting from the README of the package:
It sounds like you have a misconfigured network |
@kino-tech Can you open the link https://raw.githubusercontent.com/JuliaBinaryWrappers/MbedTLS_jll.jl/master/Artifacts.toml |
The direct link opens fine looks like 👍 [[MbedTLS]]
[[MbedTLS]]
[[MbedTLS]] |
@giordano So it's not a misconfigured network, right? |
https://superuser.com/a/489418 suggests it's a network issue |
But it worked in the browser i mean. Maybe just a flaky connection? |
@kino-tech can you run
in the command line, outside of Julia? |
@giordano the URL loads fine in multiple browsers I have tried my networks (clean direct - no proxies) and external networks (different networks) I did just find a work around |
I thought that Julia 1.5.0 and up will use julia's own package server to proxy artifacts? The curl error shows that it used raw.githubusercontext.com. @kino-tech mentioned that they run this from a network in China, does that explain the network issues? (sorry for the basic questions) |
Ok, that can explain many things, but I don't see any mention to that here. The failure to download a file from raw.githubusercontext.com might be a red herring if the download happens from China, I've seen similar errors before. |
Sorry, I meant to link to the Pluto issue: fonsp/Pluto.jl#339 (comment) |
@kino-tech can you show the output of the following:
That should result in an As an example, here's what mine says: curl output
|
hello There seems to be a small confusion 👍 The workaround to be able to install the package correctly was to use the Julia-Pro 1.5.1 install So now I have a working Pluto set up thanks executing that curl instruction gives me
|
@kino-tech it looks like it worked just fine, but I am kind of confused that it autodetected your location as in the US; are you perhaps using a VPN? |
Hİ, I have also the same problem and I still didnt understand how the solution is? Can you please help me. When I try to add IJulia, ERROR: Unable to automatically install ‘MbedTLS’ from ‘/Users/ctk/.julia/packages/MbedTLS_jll/hP8le/Artifacts.toml’ is happened. I use windows 10, and the last version of Julia, Julia 1.5.2(Sept 23,2020). Can you please help me how did you fixed your problem? |
Did you solve it? |
I just came across this issue trying to resolve the "Unable to automatically install ..." error. It was only occurring on Debian/Ubuntu-based Docker images. I installed the |
That looks like the same error as JuliaLinearAlgebra/MKL.jl#61 (comment) |
I had this error
Anyone knows how to fix this??? |
Can you please post the output of |
I installed julia in termux (android) Here's how:
The julia got installed successfully, after that i tried to install telegram using pkg>add Telegram
|
Sadly Julia isn't supported on Android 🙂 |
MbedTLS version : 1.1.0
workaound
|
Hi all, I'm using Comonicon (which uses PackageCompiler) to make a command line tool. However, the final build sees the same error. @cke0devel 's solution fixed it. Who is supposed to make sure that |
trying to add MbedTLS.jl package
not having any luck
any workarounds?
julia> versioninfo()
Julia Version 1.5.1
Commit 697e782ab8 (2020-08-25 20:08 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin19.5.0)
CPU: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
(@v1.5) pkg> add MbedTLS
Resolving package versions...
Downloading artifact: MbedTLS
Downloading artifact: MbedTLS
ERROR: Unable to automatically install 'MbedTLS' from '/Users/gato/.julia/packages/MbedTLS_jll/qGMUr/Artifacts.toml'
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] ensure_artifact_installed(::String, ::Dict{String,Any}, ::String; platform::Pkg.BinaryPlatforms.Platform, verbose::Bool, quiet_download::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Artifacts.jl:898
[3] ensure_all_artifacts_installed(::String; platform::Pkg.BinaryPlatforms.Platform, pkg_uuid::Nothing, include_lazy::Bool, verbose::Bool, quiet_download::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Artifacts.jl:962
[4] download_artifacts(::Pkg.Types.Context, ::Array{String,1}; platform::Pkg.BinaryPlatforms.MacOS, verbose::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:663
[5] download_artifacts(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; platform::Pkg.BinaryPlatforms.MacOS, verbose::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:642
[6] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.MacOS) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:1141
[7] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.MacOS, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:189
[8] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:140
[9] #add#21 at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:67 [inlined]
[10] add(::Array{Pkg.Types.PackageSpec,1}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:67
[11] do_cmd!(::Pkg.REPLMode.Command, ::REPL.LineEditREPL) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/REPLMode/REPLMode.jl:404
[12] do_cmd(::REPL.LineEditREPL, ::String; do_rethrow::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/REPLMode/REPLMode.jl:382
[13] do_cmd at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/REPLMode/REPLMode.jl:377 [inlined]
[14] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/REPLMode/REPLMode.jl:546
[15] #invokelatest#1 at ./essentials.jl:710 [inlined]
[16] invokelatest at ./essentials.jl:709 [inlined]
[17] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/REPL/src/LineEdit.jl:2355
[18] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:1144
[19] (::REPL.var"#38#42"{REPL.LineEditREPL,REPL.REPLBackendRef})() at ./task.jl:356
(@v1.5) pkg>
The text was updated successfully, but these errors were encountered: