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

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

Open
jo-fleck opened this issue Feb 5, 2025 · 0 comments
Open

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

jo-fleck opened this issue Feb 5, 2025 · 0 comments

Comments

@jo-fleck
Copy link

jo-fleck commented Feb 5, 2025

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.
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

1 participant