-
Notifications
You must be signed in to change notification settings - Fork 89
Description
PyPlot works fine in the repl, and in a normal jupyter notebook. But in jupyterlab:
using PyPlotgives
┌ Info: Recompiling stale cache file /home/data/.julia/compiled/v1.0/PyPlot/oatAj.ji for PyPlot [d330b81b-6aea-500a-939a-2ce795aea3ee]
└ @ Base loading.jl:1190
┌ Warning: Package PyPlot does not have Sockets in its dependencies:
│ - If you have PyPlot checked out for development and have
│ added Sockets as a dependency but haven't updated your primary
│ environment's manifest file, tryPkg.resolve().
│ - Otherwise you may need to report an issue with PyPlot
└ Loading Sockets into PyPlot from project dependency, future warnings for PyPlot are suppressed.InitError: type PyObject has no field version
during initialization of module PyPlotStacktrace:
[1] getproperty(::Any, ::Symbol) at ./sysimg.jl:18
[2] init() at /home/data/.julia/packages/PyPlot/cdCMF/src/init.jl:170
[3] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:633
[4] _require_from_serialized(::String) at ./loading.jl:684
[5] macro expansion at ./logging.jl:315 [inlined]
[6] _require(::Base.PkgId) at ./loading.jl:947
[7] require(::Base.PkgId) at ./loading.jl:858
[8] macro expansion at ./logging.jl:309 [inlined]
[9] require(::Module, ::Symbol) at ./loading.jl:840
[10] top-level scope at In[2]:1
I can't for the life of me work out why although this might be an IJulia problem. Steps tried so far:
using the miniconda build
ENV["PYTHON"]=""
import Pkg
Pkg.build("Conda")
Pkg.build("PyCall")
using PyPlotusing mpl 2
Conda.add("matplotlib<3")Any ideas? Not urgent as for now I will just use normal notebooks. Also has anyone hit this?
Also LMK if this should be cross-posted at IJulia. The only reason I haven't so far is that this hasn't affected any other packages yet.