Skip to content

Can no longer save VegaLite.VLSpec objects as images #449

@jo-fleck

Description

@jo-fleck

I just updated Julia (to 1.11.2) and Vegalite (to v3.3.0) and can no longer save VegaLite.VLSpec objects as images:

Errors encountered while save FileIO.File{FileIO.DataFormat{:PDF}, String}(DIRFILENAME).
All errors:
===========================================
ArgumentError: Package ImageMagick [6218d12a-5da1-5696-b52f-db25d2ecc6d1] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.

===========================================
IOError: could not spawn setenv(USERINFO): Unknown system error -86 (Unknown system error -86)
===========================================

Fatal error:
ERROR: ArgumentError: Package ImageMagick [6218d12a-5da1-5696-b52f-db25d2ecc6d1] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.

After installing ImageMagick I get:

┌ Warning: Mapping to the storage type failed; perhaps your data had out-of-range values?
│ Try `map(clamp01nan, img)` to clamp values to a valid range.
└ @ ImageMagick ~/.julia/packages/ImageMagick/b8swT/src/ImageMagick.jl:180
Errors encountered while save FileIO.File{FileIO.DataFormat{:PDF}, String}(DIRFILENAME).
All errors:
===========================================
MethodError: no method matching length(::VegaLite.VLSpec)
The function `length` exists, but no method is defined for this combination of argument types.

Closest candidates are:
 length(::DataFrames.Index)
  @ DataFrames ~/.julia/packages/DataFrames/kcA9R/src/other/index.jl:33
 length(::DataStructures.SparseIntSet)
  @ DataStructures ~/.julia/packages/DataStructures/95DJa/src/sparse_int_set.jl:61
 length(::Profile.HeapSnapshot.Edges)
  @ Profile /Applications/Julia-1.11.app/Contents/Resources/julia/share/julia/stdlib/v1.11/Profile/src/heapsnapshot_reassemble.jl:24
 ...

===========================================
IOError: could not spawn setenv(USERINFO): Unknown system error -86 (Unknown system error -86)
===========================================

Fatal error:
ERROR: MethodError: no method matching length(::VegaLite.VLSpec)
The function `length` exists, but no method is defined for this combination of argument types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions