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: Unable to automatically install 'MbedTLS' #339

Closed
ghost opened this issue Sep 2, 2020 · 21 comments
Closed

ERROR: Unable to automatically install 'MbedTLS' #339

ghost opened this issue Sep 2, 2020 · 21 comments

Comments

@ghost
Copy link

ghost commented Sep 2, 2020

on a new macOS machine with no previous julia installed
the current version of Julia 1.5.1
throws an error when installing the Pluto Package


(@v1.5) pkg> add pluto
Updating registry at ~/.julia/registries/General
Updating git-repo https://github.com/JuliaRegistries/General.git
ERROR: The following package names could not be resolved:

  • pluto (not found in project, manifest or registry)

I'm looking to see if I can find the 1.5 version

thx kino-tech

@fonsp
Copy link
Owner

fonsp commented Sep 2, 2020

Hi Kino,

The package name is case-sensitive:

pkg> add Pluto

Let me know if it works!

-fonsi

@ghost
Copy link
Author

ghost commented Sep 3, 2020

nope not here
nor using the old method
pkg.add("Pluto")

julia> pkg.add("Pluto")
ERROR: UndefVarError: pkg not defined
Stacktrace:
[1] top-level scope at REPL[5]:1

something is amiss in 1.5.1
and I cant find a copy of 1.5.0

:-(

kino

@ghost
Copy link
Author

ghost commented Sep 3, 2020

just tried again
and now it working
yay

but it does throw an error
ERROR: Unable to automatically install 'MbedTLS' from '/Users/gato/.julia/packages/MbedTLS_jll/txOzO/Artifacts.toml'

?

thanks for the patience..
something up stream was off there for a hour or two

thx

@stillyslalom
Copy link

The package manager has two access points: the module itself (Pkg) and the REPL mode, which provides syntax sugar for common Pkg operations. For the former, use Pkg.add("Pluto") (note the capitalization of Pkg), and for the latter, use ]add Pluto within the REPL. You'll need to provide a more complete reproduction of the steps leading to the MbedTLS installation error.

@fonsp
Copy link
Owner

fonsp commented Sep 3, 2020

You need to do some extra steps to get Julia working on Windows 7:

https://julialang.org/downloads/platform/#windows_7_windows_server_2012_installation_notes

@fonsp
Copy link
Owner

fonsp commented Sep 3, 2020

Sorry you're on MacOS right

@fonsp
Copy link
Owner

fonsp commented Sep 3, 2020

Maybe you need to use another package server:
https://discourse.julialang.org/t/ijulia-install-stops-for-mbedtls-error/37974/11

@fonsp fonsp changed the title julia 1.5.1 does not find pluto in pkg registry ERROR: Unable to automatically install 'MbedTLS' Sep 3, 2020
@ghost
Copy link
Author

ghost commented Sep 3, 2020

good morning
so currently the error is
just from trying to add the package
no extra steps

(@v1.5) pkg> add Pluto
Resolving package versions...
Updating git-repo https://github.com/JuliaBinaryWrappers/MbedTLS_jll.jl.git
Installed MbedTLS_jll ─ v2.16.8+0
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

@ghost
Copy link
Author

ghost commented Sep 3, 2020

humm...
now the package manager is saying I cant remove Pluto
"not resolved" like yesterday
was going to try to remove and add back
....?

(@v1.5) pkg> rm Pluto
ERROR: The following package names could not be resolved:

  • Pluto (not found in project or manifest)

@fonsp
Copy link
Owner

fonsp commented Sep 3, 2020

Then it must be removed already, do pkg> status to see what you have installed

@ghost
Copy link
Author

ghost commented Sep 3, 2020

status gives

(@v1.5) pkg> status
Status ~/.julia/environments/v1.5/Project.toml (empty project)

I've tried a couple of different Package Servers
and all the same error
(see below)

is there a more direct way to install (or build) the MbedTLS ?

I tried
pkg> add MbedTLS

and I get the same error
so it feels like the problem is with that and not Pluto per se

any clues?

(@v1.5) pkg> add Pluto
Resolving package versions...
Updating git-repo https://github.com/JuliaBinaryWrappers/MbedTLS_jll.jl.git
Installed MbedTLS_jll ─ v2.16.8+0
Downloading artifact: MbedTLS

Downloading artifact: MbedTLS

ERROR: Unable to automatically install 'MbedTLS' from '/Users/gato/.julia/packages/MbedTLS_jll/qGMUr/Artifacts.toml'
Stacktrace:

@fonsp
Copy link
Owner

fonsp commented Sep 3, 2020

If it happens when you do add MbedTLS in an empty environment, then we found the root of the problem!

Could you do this:

pkg> activate lkjasflj

pkg> status

pkg> add MbedTLS

pkg> build MbedTLS

and send the full output (including the stack trace, like you posted here: #339 (comment)) to https://github.com/JuliaLang/MbedTLS.jl/issues ?

@fonsp fonsp closed this as completed Sep 3, 2020
@ghost
Copy link
Author

ghost commented Sep 4, 2020

thanks I'll give it a try so far no luck...

and it looks like I'm not alone
https://www.reddit.com/r/Julia/comments/ime8n5/error_while_installing_mbedtls_for_pluto_notebooks/

@fonsp
Copy link
Owner

fonsp commented Sep 4, 2020

(@kino-tech submitted JuliaLang/MbedTLS.jl#225)

@fonsp
Copy link
Owner

fonsp commented Sep 4, 2020

Let's leave it open

@fonsp fonsp reopened this Sep 4, 2020
@ghost
Copy link
Author

ghost commented Sep 5, 2020

hi. ya
still no luck on my end
I've tried a few things

but is there an easy way to regress to an earlier version?

thanks in advance

@fonsp
Copy link
Owner

fonsp commented Sep 5, 2020

Yes, you could install Julia v1.0.5 - https://julialang.org/downloads/#long_term_support_release and try it again. Let me know how it goes!

@ghost
Copy link
Author

ghost commented Sep 5, 2020

Just checked with the JuliaPro 1.5.0
and it works like a charm
installs in a flash and works well

Screen Shot 2020-09-05 at 4 11 06 PM

ok I'm going back to see if I can find a copy of julia.app 1.5.0

kino

@fonsp
Copy link
Owner

fonsp commented Sep 5, 2020

Can you copy that comment to JuliaLang/MbedTLS.jl#225 please? Maybe it's helpful to them

@ghost
Copy link
Author

ghost commented Sep 5, 2020

yes I did add that to the issue

I also found a copy of the 1.5.0. Julia.app (in china at a university)
and it has the same problem
same error....

AND
I just tried to do the install via homebrew
brew cask install julia

which now is 1.5.1
AND THAT WORKS

woowoo

thanks you for your help

it seems like something at the server level was off?

Kino

@fonsp
Copy link
Owner

fonsp commented Sep 9, 2020

This moved here: JuliaLang/MbedTLS.jl#225

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

2 participants