PlotlyJS.jl icon indicating copy to clipboard operation
PlotlyJS.jl copied to clipboard

ERROR: Unable to automatically install 'kaleido' from 'Artifacts.toml'

Open TinusChen opened this issue 4 years ago • 6 comments

ERROR: Unable to automatically install 'kaleido' from 'Artifacts.toml'

Hi, I having difficulties in updating packages to add "PlotlyJS" when 'Downloading artifact: kaleido':

julia> import Pkg; Pkg.add("PlotlyJS")
Updating registry at ~/.julia/registries/General
Updating git-repo https://github.com/JuliaRegistries/General.git
Resolving package versions...
Downloading artifact: kaleido
                                                                       0.1%
**ERROR: Unable to automatically install 'kaleido' from '/Users/<path>/.julia/packages/PlotlyBase/y4bmV/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.4/Pkg/src/Artifacts.jl:894
 [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.4/Pkg/src/Artifacts.jl:958
 [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.4/Pkg/src/Operations.jl:616
 [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.4/Pkg/src/Operations.jl:595
 [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.4/Pkg/src/Operations.jl:1091
 [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.4/Pkg/src/API.jl:159
 [8] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:112
 [9] #add#27 at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:109 [inlined]
 [10] add at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:109 [inlined]
 [11] #add#24 at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:107 [inlined]
 [12] add at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:107 [inlined]
 [13] add(::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:106
 [14] add(::String) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:106
 [15] top-level scope at REPL[3]:1

Version info

Julia Version 1.4.2 Commit 44fa15b150* (2020-05-23 18:35 UTC) Platform Info: OS: macOS (x86_64-apple-darwin18.7.0) CPU: Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-8.0.1 (ORCJIT, broadwell)

refer: plotly/plotly.js#5133

TinusChen avatar Sep 09 '20 01:09 TinusChen

Hmm, this is quite strange. I can't see anything really informative in that error message.

I'm pretty new to the Artifacts tooling, perhaps someone like @staticfloat would be able to help us?

sglyon avatar Sep 09 '20 11:09 sglyon

Is this reproducible?

staticfloat avatar Sep 09 '20 23:09 staticfloat

Is this reproducible?

Yes, it is reproducible.

TinusChen avatar Sep 12 '20 01:09 TinusChen

Does the download fail instantly?

I'm having a similar issue with nightly Julia. Every time I try to install PlotlyJS, the download will hang after reaching somewhere between 30-60%. I've tried installing it about 20 times over multiple network connections without success.

robsmith11 avatar Nov 25 '20 18:11 robsmith11

I just tried to install PlotlyJS and received the same error message about kaleido not being found in artifacts.toml

Edit; I tried installing a second time and this time it downloaded kaleido and completed installation.

nwilleyltk avatar Dec 11 '20 13:12 nwilleyltk

On Jilua 1.8 I get error:

ERROR: Unable to automatically download/install artifact 'Kaleido' from sources listed in '/home/olegshtch/.julia/packages/Kaleido_jll/TphFk/Artifacts.toml'.
Sources attempted:
- https://pkg.julialang.org/artifact/bd3689c641088ffac77cbb10f229cae0537d286a
    Error: AssertionError: size == padded_size == 0
- https://github.com/JuliaBinaryWrappers/Kaleido_jll.jl/releases/download/Kaleido-v0.2.1+0/Kaleido.v0.2.1.x86_64-linux-gnu.tar.gz
    Error: AssertionError: size == padded_size == 0

Version of Kaleido_jll is 0.2.1+0 and PlotlyJS is 0.18.10

olegshtch avatar Oct 31 '22 23:10 olegshtch