JunoLab / Juno.jl

MIT License
144 stars 23 forks source link

[BUG] MySQL.jl Is Not Installing #554

Closed burchds closed 4 years ago

burchds commented 4 years ago

I only get this error in JuliaPro. I do not get the error in the regular Julia console 1.0.5.

Details

Steps to reproduce

  1. ]
  2. add MySQL
  3. read error

Error:


(v1.0) pkg> add MySQL
 Resolving package versions...
ERROR: Error when installing package LibSSH2_jll:
HTTP.ExceptionRequest.StatusError(404, HTTP.Messages.Response:
"""
HTTP/1.1 404 Not Found
Server: openresty/1.15.8.2
Date: Wed, 15 Apr 2020 08:46:49 GMT
Content-Type: text/html
Content-Length: 159
Connection: keep-alive

""")
Stacktrace:
 [1] #request#1 at C:\Users\julia\AppData\Local\Julia-1.0.5\share\julia\stdlib\v1.0\HTTnRequest.jl:22 [inlined]
 [2] (::getfield(HTTP, Symbol("#kw##request")))(::NamedTuple{(:iofunction,),Tuple{getfisHandler, Symbol("##1#3")){String}}}, ::typeof(HTTP.request), ::Type{HTTP.ExceptionRequayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer}}}, ::HT:HTTP.Messages.Request, ::Nothing) at .\none:0
 [3] (::getfield(Base, Symbol("###44#45#46")){ExponentialBackOff,getfield(HTTP.RetryReq##2#3")){Bool,HTTP.Messages.Request},typeof(HTTP.request)})(::Base.Iterators.Pairs{SymbedentialsHandler, Symbol("##1#3")){String},Tuple{Symbol},NamedTuple{(:iofunction,),TupldentialsHandler, Symbol("##1#3")){String}}}}, ::Function, ::Type, ::Vararg{Any,N} where.jl:203
 [4] ##44#47 at .\none:0 [inlined]
 [5] #request#1 at C:\Users\julia\AppData\Local\Julia-1.0.5\share\julia\stdlib\v1.0\HTTuest.jl:44 [inlined]
 [6] (::getfield(HTTP, Symbol("#kw##request")))(::NamedTuple{(:iofunction,),Tuple{getfisHandler, Symbol("##1#3")){String}}}, ::typeof(HTTP.request), ::Type{HTTP.RetryRequest.P.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamLayer}}}}, ::HTTP.URIs.URI, ::HTTP.Messages.Request, ::Nothing) at .\none:0
 [7] #request#1(::VersionNumber, ::String, ::Nothing, ::Function, ::Base.Iterators.Pairn{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Type{HTTP.MessageRequest.MessageLayequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.Connection.StreamRequest.StreamLayer}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{StriString}},1}, ::Nothing) at C:\Users\julia\AppData\Local\Julia-1.0.5\share\julia\stdlib\MessageRequest.jl:47
 [8] (::getfield(HTTP, Symbol("#kw##request")))(::NamedTuple{(:iofunction,),Tuple{getfisHandler, Symbol("##1#3")){String}}}, ::typeof(HTTP.request), ::Type{HTTP.MessageReques{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequeoolLayer{HTTP.StreamRequest.StreamLayer}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{Sg},SubString{String}},1}, ::Nothing) at .\none:0
 [9] #request#1(::Int64, ::Bool, ::Base.Iterators.Pairs{Symbol,getfield(CredentialsHand#1#3")){String},Tuple{Symbol},NamedTuple{(:iofunction,),Tuple{getfield(CredentialsHandl1#3")){String}}}}, ::Function, ::Type{HTTP.RedirectRequest.RedirectLayer{HTTP.MessageReayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRionPoolLayer{HTTP.StreamRequest.StreamLayer}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{PString},SubString{String}},1}, ::Nothing) at C:\Users\julia\AppData\Local\Julia-1.0.5\slib\v1.0\HTTP\src\RedirectRequest.jl:24
 [10] (::getfield(HTTP, Symbol("#kw##request")))(::NamedTuple{(:iofunction,),Tuple{getflsHandler, Symbol("##1#3")){String}}}, ::typeof(HTTP.request), ::Type{HTTP.RedirectRequyer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequestr{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer}}}}}}, ::StRIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::Nothing) at .\none:0
 [11] #request#5(::Base.Iterators.Pairs{Symbol,getfield(CredentialsHandler, Symbol("##1Tuple{Symbol},NamedTuple{(:iofunction,),Tuple{getfield(CredentialsHandler, Symbol("##1#}, ::Function, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{Strihing) at C:\Users\julia\AppData\Local\Julia-1.0.5\share\julia\stdlib\v1.0\HTTP\src\HTTP
 [12] #request at .\none:0 [inlined]
 [13] #request#6 at C:\Users\julia\AppData\Local\Julia-1.0.5\share\julia\stdlib\v1.0\HT:314 [inlined]
 [14] #request at .\none:0 [inlined]
 [15] #open#7 at C:\Users\julia\AppData\Local\Julia-1.0.5\share\julia\stdlib\v1.0\HTTP\9 [inlined]
 [16] open at C:\Users\julia\AppData\Local\Julia-1.0.5\share\julia\stdlib\v1.0\HTTP\srcinlined]
 [17] download(::String, ::String, ::CredentialsHandler.Token) at C:\Users\julia\AppDat1.0.5\share\julia\stdlib\v1.0\CredentialsHandler\src\CredentialsHandler.jl:95
 [18] download(::String, ::String) at C:\Users\julia\AppData\Local\Julia-1.0.5\share\ju0\CredentialsHandler\src\CredentialsHandler.jl:89
 [19] (::getfield(BinaryProvider.JuliaTeam, Symbol("##1#2")){getfield(BinaryProvider, S")){getfield(BinaryProvider, Symbol("##51#80")){Cmd,String}}})(::String, ::String) at CAppData\Local\Julia-1.0.5\share\julia\stdlib\v1.0\BinaryProvider\src\JuliaTeam.jl:18
 [20] #download#106(::Bool, ::Function, ::String, ::String) at C:\Users\julia\AppData\L.5\share\julia\stdlib\v1.0\BinaryProvider\src\PlatformEngines.jl:608
 [21] download at C:\Users\julia\AppData\Local\Julia-1.0.5\share\julia\stdlib\v1.0\Bina\PlatformEngines.jl:607 [inlined]
 [22] install_archive(::Array{String,1}, ::Base.SHA1, ::Base.UUID, ::String) at C:\Usera\Local\Julia-1.0.5\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:517
 [23] macro expansion at C:\Users\julia\AppData\Local\Julia-1.0.5\share\julia\stdlib\v1rations.jl:659 [inlined]
 [24] (::getfield(Pkg.Operations, Symbol("##26#29")){Symbol,Pkg.Types.Context,Dict{Base1},Dict{Base.UUID,Array{String,1}},Channel{Any},Channel{Any}})() at .\task.jl:259

(v1.0) pkg> 
aviatesk commented 4 years ago

This is not Juno-related issue, check your connection validity and if it doesn't help ask for help at e.g. Discorse or somewhere

burchds commented 4 years ago

I am disappointed with this result. Did you at least try installing MySQL.jl in JuliaPro? If you also are unable to install MySQL.jl in JuliaPro, then doesn't that confirm the issue? The package installs in the regular Julia instance, but not JuliaPro. I am able to install many other packages without issue.

I have already asked about this on https://discourse.julialang.org/t/mysql-jl-not-installing/37622

I only have received a comment from someone else facing the same issue.

Are JuliaPro and Juno.jl the same thing? Or is there somewhere else to report issues with JuliaPro?

aviatesk commented 4 years ago

yep, I can install MySQL.jl in Juno:

(@v1.4) pkg> add MySQL
   Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Resolving package versions...
  Installed MySQL ──────────── v0.7.1
  Installed SpecialFunctions ─ v0.9.0
  Installed DecFP ──────────── v0.4.10
  Installed BinaryProvider ─── v0.5.8
   Updating `~/.julia/environments/v1.4/Project.toml`
  [39abe10b] + MySQL v0.7.1
   Updating `~/.julia/environments/v1.4/Manifest.toml`
  [b99e7846] + BinaryProvider v0.5.8
  [e66e0078] + CompilerSupportLibraries_jll v0.3.3+0
  [55939f99] + DecFP v0.4.10
  [39abe10b] + MySQL v0.7.1
  [efe28fd5] + OpenSpecFun_jll v0.5.3+3
  [276daf66] + SpecialFunctions v0.9.0
   Building DecFP → `~/.julia/packages/DecFP/quvcm/deps/build.log`
   Building MySQL → `~/.julia/packages/MySQL/R2gKS/deps/build.log`

(@v1.4) pkg> 

Are JuliaPro and Juno.jl the same thing ?

mostly, but I don't know much about JuliaPro. Well, as far as I can tell from the error log, it doesn't seem to relate to Juno, but relate to your Internet connection. Maybe you know the possible reasons, @pfitzseb ? Existing issues or something, like https://discourse.julialang.org/t/http-404-error-on-adding-package-by-dependency-diffrules/25034, may help.

burchds commented 4 years ago

Thank you for for checking. Maybe version 1.4 will work for me. I am using the long-term support version 1.0.5.