JuliaPy / PyPlot.jl

Plotting for Julia based on matplotlib.pyplot
https://github.com/JuliaPy/PyPlot.jl
MIT License
475 stars 87 forks source link

"No such file or directory: 'kpsewhich'" #510

Closed MLackner closed 3 years ago

MLackner commented 3 years ago

Edit: Upon further investigation, this seems to be a bug in VSCode. kpsewhich only can't be found via the integrated VSCode Julia REPL.

Hi! After doing some package updates in my big project I suddenly get this error whenever I wand to display a figure using PyPlot:

ERROR: LoadError: PyError ($(Expr(:escape, :(ccall(#= /Users/lackner/.julia/packages/PyCall/BcTLp/src/pyfncall.jl:43 =# @pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, pyargsptr, kw))))) <class 'FileNotFoundError'>
FileNotFoundError(2, "No such file or directory: 'kpsewhich'")
[...]

In my rcParams I've set "text.usetex : True" which is directly causing that error.

The versions of the packages that might be related to that error are:

PyPlot v2.9.0
PyCall v1.92.1
Conda v1.5.0

Julia is at v1.5.0.

If I set up a fresh environment with the above packages at exactly those versions everything works fine though.