Hello All,
I am using JuliaBox (0.4.6) for a homework assignment and when I call functions from Python like PyPlot, I get an error. Any ideas? I have tried adding Pyplot package and PyCall. I have also downloaded Python 2.7 to my computer. I need to use the clf() function from Pyplot.
Code:
# We'll use the PyPlot (matplotlib) plotting library:
# It works exactly as it would in Python.
using PyPlot
Error:
INFO: Recompiling stale cache file /opt/julia_packages/.julia/lib/v0.4/PyPlot.ji for module PyPlot.
INFO: Recompiling stale cache file /opt/julia_packages/.julia/lib/v0.4/PyCall.ji for module PyCall.
ERROR: LoadError: LoadError: PyCall not properly installed. Please run Pkg.build("PyCall")
[inlined code] from /home/juser/.julia/v0.4/PyCall/src/startup.jl:45
in anonymous at no file:0
in include at ./boot.jl:261
in include_from_node1 at ./loading.jl:320
in include at ./boot.jl:261
in include_from_node1 at ./loading.jl:320
[inlined code] from none:2
in anonymous at no file:0
in process_options at ./client.jl:257
in _start at ./client.jl:378
while loading /home/juser/.julia/v0.4/PyCall/src/startup.jl, in expression starting on line 42
while loading /home/juser/.julia/v0.4/PyCall/src/PyCall.jl, in expression starting on line 37
ERROR: LoadError: Failed to precompile PyCall to /home/juser/.julia/lib/v0.4/PyCall.ji
in error at ./error.jl:21
in compilecache at loading.jl:400
in recompile_stale at loading.jl:476
in _require_from_serialized at loading.jl:83
in _require_from_serialized at ./loading.jl:109
in require at ./loading.jl:235
in include at ./boot.jl:261
in include_from_node1 at ./loading.jl:320
[inlined code] from none:2
in anonymous at no file:0
in process_options at ./client.jl:257
in _start at ./client.jl:378
while loading /home/juser/.julia/v0.4/PyPlot/src/PyPlot.jl, in expression starting on line 5
LoadError: Failed to precompile PyPlot to /home/juser/.julia/lib/v0.4/PyPlot.ji
while loading In[2], in expression starting on line 4
in error at ./error.jl:21
in compilecache at loading.jl:400
in recompile_stale at loading.jl:476
in _require_from_serialized at loading.jl:83
in _require_from_serialized at ./loading.jl:109
in require at ./loading.jl:235