PlotlyJS.jl
PlotlyJS.jl copied to clipboard
cannot output static images using savefig: ERROR: Transform failed with error code 1: Failed to serialize document: Uncaught
Describe the bug Whenever I tried to create a PNG or JPG using PlotlyJS.savefig, it gives me the following error:
julia> PlotlyJS.savefig(io, random_line(); format="png");
ERROR: Transform failed with error code 1: Failed to serialize document: Uncaught
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] savefig(::Plot{Array{GenericTrace{Dict{Symbol,Any}},1},Layout{Dict{Symbol,Any}},Array{PlotlyFrame,1}}; width::Nothing, height::Nothing, scale::Nothing, format::String) at /Users/gong/.julia/packages/PlotlyBase/gUAer/src/kaleido.jl:100
[3] savefig(::IOStream, ::Plot{Array{GenericTrace{Dict{Symbol,Any}},1},Layout{Dict{Symbol,Any}},Array{PlotlyFrame,1}}; width::Nothing, height::Nothing, scale::Nothing, format::String) at /Users/gong/.julia/packages/PlotlyBase/gUAer/src/kaleido.jl:139
[4] savefig(::IOStream, ::PlotlyJS.SyncPlot; k::Base.Iterators.Pairs{Symbol,String,Tuple{Symbol},NamedTuple{(:format,),Tuple{String}}}) at /Users/gong/.julia/packages/PlotlyJS/m2Lzd/src/PlotlyJS.jl:49
[5] top-level scope at REPL[109]:1
Version info
julia> versioninfo()
Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.7.0)
CPU: Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 4
julia> Pkg.status()
Status `~/.julia/environments/v1.5/Project.toml`
[537997a7] AbstractPlotting v0.11.2
[c9ce4bd3] ArchGDAL v0.5.2
[fbb218c0] BSON v0.2.6
[6e4b80f9] BenchmarkTools v0.5.0
[ad839575] Blink v0.12.3
[179af706] CFTime v0.1.0
[336ed68f] CSV v0.8.0
[be33ccc6] CUDAnative v3.2.0
[aaaa29a8] Clustering v0.13.5
[35d6a980] ColorSchemes v3.10.1
[5ae59095] Colors v0.12.4
[8f4d0f93] Conda v1.5.0
[3a865a2d] CuArrays v2.2.2
[717857b8] DSP v0.6.8
[1b08a953] Dash v0.1.3
[1b08a953] DashCoreComponents v1.12.0
[1b08a953] DashHtmlComponents v1.1.1
[1b08a953] DashTable v4.10.1
[a93c6f00] DataFrames v0.21.8
[31a5f54b] Debugger v0.6.6
[7806a523] DecisionTree v0.10.10
[0c46a032] DifferentialEquations v6.15.0
[b4f34e82] Distances v0.8.2
[31c24e10] Distributions v0.22.6
[61744808] DynamicalSystems v1.4.0
[5789e2e9] FileIO v1.4.4
[59287772] Formatting v0.4.1
[add2ef01] GDAL v1.1.5
[e9467ef8] GLMakie v0.1.5
[0c68f7d7] GPUArrays v3.4.1
[28b8d3ca] GR v0.53.0
[12ff6b1a] GSW v1.1.0 `https://github.com/kouketsu/GSW.jl#master`
[cc18c42c] GaussianMixtures v0.3.0
[c43c736e] Genie v1.8.0
[ddc7317b] GeoDatasets v0.1.2 `https://github.com/JuliaGeo/GeoDatasets.jl#master`
[61d90e0f] GeoJSON v0.5.1
[db073c08] GeoMakie v0.1.14
[4d00f742] GeometryTypes v0.8.3
[c27321d9] Glob v1.3.0
[f67ccb44] HDF5 v0.13.6
[cd3eb016] HTTP v0.8.19
[7073ff75] IJulia v1.22.0
[6a3955dd] ImageFiltering v0.6.17
[6218d12a] ImageMagick v1.1.6
[916415d5] Images v0.23.1
[c601a237] Interact v0.10.3
[4138dd39] JLD v0.10.0
[033835bb] JLD2 v0.2.4
[0f8b85d8] JSON3 v1.4.0
[2fda8390] LsqFit v0.11.0
[10e44e05] MATLAB v0.7.3
[add582a8] MLJ v0.11.6
[ee78f7c6] Makie v0.11.0
[eff96d63] Measurements v2.3.0
[e1d29d7a] Missings v0.4.4
[85f8d34a] NCDatasets v0.10.4
[77ba4419] NaNMath v0.3.4
[30363a11] NetCDF v0.10.3
[47be7bcc] ORCA v0.5.0
[6fe1bfb0] OffsetArrays v1.3.1
[a15396b6] OnlineStats v1.5.7
[eadc2687] Pandas v1.4.0
[58dd65bb] Plotly v0.3.0
[a03496cd] PlotlyBase v0.4.2
[f0f68f2c] PlotlyJS v0.14.0
[91a5bcdd] Plots v1.9.0
[c3e4b0f8] Pluto v0.12.10
[438e738f] PyCall v1.92.1
[d330b81b] PyPlot v2.9.0
[94ee1d12] Quaternions v0.4.1
[ce6b1742] RDatasets v0.7.1
[295af30f] Revise v3.1.7
[3646fa90] ScikitLearn v0.6.2
[8e980c4a] Shapefile v0.6.2
[f3b207a7] StatsPlots v0.14.17
[bd369af6] Tables v1.2.1
[9e3dc215] TimeSeries v0.20.0
[f218859d] TimeseriesPrediction v0.6.0
[b8865327] UnicodePlots v1.3.0
[276b4fcb] WGLMakie v0.2.6
[29a6e085] Wavelets v0.9.2
[0f1e0344] WebIO v0.8.15
[009559a3] XGBoost v1.1.1
[fdbf4ff8] XLSX v0.7.3
[e88e6eb3] Zygote v0.5.9
[ade2ca70] Dates
[8bb1440f] DelimitedFiles
[37e2e46d] LinearAlgebra
[10745b16] Statistics
I'm getting the same error