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

New TypeError issue [BUG] #3179

Closed
gideonsimpson opened this issue Dec 5, 2020 · 8 comments
Closed

New TypeError issue [BUG] #3179

gideonsimpson opened this issue Dec 5, 2020 · 8 comments

Comments

@gideonsimpson
Copy link

Details

I just upgraded to the latest Plots.jl, and I'm now getting the following error:

julia> using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
ERROR: LoadError: TypeError: in Type{...} expression, expected UnionAll, got Type{ColorSchemes.ColorScheme}
Stacktrace:
 [1] _precompile_() at /Users/grs53/.julia/packages/PlotUtils/3Ttrk/src/precompile.jl:5
 [2] top-level scope at /Users/grs53/.julia/packages/PlotUtils/3Ttrk/src/PlotUtils.jl:44
 [3] include(::Function, ::Module, ::String) at ./Base.jl:380
 [4] include(::Module, ::String) at ./Base.jl:368
 [5] top-level scope at none:2
 [6] eval at ./boot.jl:331 [inlined]
 [7] eval(::Expr) at ./client.jl:467
 [8] top-level scope at ./none:3
in expression starting at /Users/grs53/.julia/packages/PlotUtils/3Ttrk/src/PlotUtils.jl:42
ERROR: LoadError: Failed to precompile PlotUtils [995b91a9-d308-5afd-9ec6-746e21dbc043] to /Users/grs53/.julia/compiled/v1.5/PlotUtils/YveHG_vi2gq.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:467
 [11] top-level scope at ./none:3
in expression starting at /Users/grs53/.julia/packages/Plots/E3MWZ/src/Plots.jl:20
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /Users/grs53/.julia/compiled/v1.5/Plots/ld3vC_vi2gq.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) X
pyplot
plotly
plotlyjs
pgfplotsx
inspectdr

Versions

Plots.jl version: [91a5bcdd] Plots v1.4.3
Backend version (]st -m): [28b8d3ca] GR v0.50.1
Output of 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-8557U CPU @ 1.70GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
@jonathan-laurent
Copy link

I got the same error after updating the dependencies of one of my packages.
For some reason, Pkg.update downgraded Plots.jl to 1.4.3, causing this bug. My fix was to set Plots.jl to the right version manually:

I have no idea why Pkg behaves this way here. This is especially surprising since setting Plots to version 1.9.1 did not force downgrading any other package on my project.

@lincolnq
Copy link

lincolnq commented Dec 6, 2020

Hmm, this is happening for me as well on 1.9.1. I did not have any version of Plots previously installed. ]add [email protected] does not solve the problem on my machine.

@ma010
Copy link

ma010 commented Dec 7, 2020

somehow installing LsqFit resolved the issue for me.

@pluser
Copy link

pluser commented Dec 7, 2020

I solved the problem as update ColorSchemes package manually.

Dependency might be broken?

@cultpenguin
Copy link

I downgraded StaticArrays, which solved the issue for me.
Seems to be related to #3173

@BeastyBlacksmith
Copy link
Member

Should be fixed by JuliaPlots/PlotUtils.jl#104

@Riik
Copy link

Riik commented Dec 7, 2020

Updating ColorSchemes fixed it for me too, thanks @pluser

@ckorkpoe
Copy link

I tried every solution here to no avail. In the end I updated Plots ie Pkg.update("Plots") and it worked.

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

9 participants