Closed mvhulten closed 6 years ago
PyPlot.jl package or Python/matplotlib who is asking for matplotlib.gif?
It's clearly the latter, from the traceback. Could it be a problem in your distro packaging?
Try it from Python. Make sure you are using the same backend (PyPlot.backend
, probably tkagg
) by setting the MPLBACKEND environment variable before running python
.
See also e.g. matplotlib/matplotlib#5388
I installed the latest PyPlot in Julia 0.6.2. Then I found out that I needed matplotlib, which is quite obvious. So I installed python3-matplotlib 2.0.0 (Ubuntu 16.04). Plotting something resulted in a
PyError
:There is no gif file, only
/usr/share/matplotlib/mpl-data/images/matplotlib.{pdf,png,ppm,svg}
. I realise that this is not a standard installation method for a functioningPyPlot
. However, — and this is a quite open question as I don't know how the binding between Python and Julia is done — is it thePyPlot.jl
package or Python/matplotlib
who is asking formatplotlib.gif
? If it is the former, is this part of the glue code and should this actually look for such a file? If it is the latter, it would be a matplotlib bug. I tried to test the latter but that resulted in issues, and I was not really planning running Python with matplotlib.After a
Pkg.update()
and restarting Julia, I tried again:The, after removing
python3-matplotlib
from Ubuntu, and executingaccording to the
README.md
, it still looks for files in/usr/lib/python2.7/dist-packages/matplotlib/
. Strangely, the path still exists after removingpython3-matplotlib
, and also/usr/share/matplotlib/
exists. These are directories only root can write to (and should write to only through the system distributions package manager, dpkg in my case).