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

PyPlot breaking parallel computing #166

Closed
axsk opened this issue Sep 16, 2015 · 2 comments
Closed

PyPlot breaking parallel computing #166

axsk opened this issue Sep 16, 2015 · 2 comments

Comments

@axsk
Copy link

axsk commented Sep 16, 2015

@everywhere using PyPlot with julia -p 4 returns

LoadError: On worker 3:
LoadError("/home/mi/asik/.julia/v0.4/PyPlot/src/PyPlot.jl",10,UndefVarError(:PyObject))
 in include_string at loading.jl:233
 in include_from_node1 at ./loading.jl:274
 in require at ./loading.jl:210
 in eval at ./sysimg.jl:14
 in anonymous at multi.jl:1350
 in anonymous at multi.jl:892
 in run_work_thunk at multi.jl:645
 [inlined code] from multi.jl:892
 in anonymous at task.jl:68
 in remotecall_fetch at multi.jl:731
 in remotecall_fetch at multi.jl:734
 in anonymous at multi.jl:1352

...and 2 other exceptions.

while loading In[1], in expression starting on line 1

 in sync_end at ./task.jl:414
 in anonymous at multi.jl:1361
@stevengj
Copy link
Member

Maybe try:

import PyPlot  # this already imports it everywhere
@everywhere using PyPlot

in case you are running into JuliaLang/julia#12381

Also, it's not going to work if you don't have Python installed in the same path on all the nodes.

@axsk
Copy link
Author

axsk commented Sep 17, 2015

I updated PyCall and PyPlot to master and can't reproduce. Thanks anyhow.

@axsk axsk closed this as completed Sep 17, 2015
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

2 participants