You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I would like to know which modification should I do to the following piece of code in order to make PythonCall compatible with Distributed.jl. The problem arises when I have more than one process.
@everywhere begin
pyimport("sys")."path".append("")
# pushfirst!(pyconvert(Vector{String}, pyimport("sys")."path"), "")
importLib = pyimport("importlib")
stream = pyimport("stream")
potentials = pyimport("potential_classes")
u = pyimport("astropy.units")
# importLib.reload(stream)
# importLib.reload(potentials)
end
The output is: ERROR: Python: Julia: an error occurred while setting an error
I guess I am making something wrong with the first line in the begin block. The second (commmented) line works with PyCall. If I avoid both lines, then the program doen't recognize the Python packages "stream".
Thank you very much.
Best
The text was updated successfully, but these errors were encountered:
Hello, thank for your answer. I found out that there was an error in the astropy version I was using in the cluster. That is why I thought that it was a problem with distributed or slurm.
The line pyimport("sys")."path".append("") works well.
Hello,
I would like to know which modification should I do to the following piece of code in order to make PythonCall compatible with Distributed.jl. The problem arises when I have more than one process.
The output is:
ERROR: Python: Julia: an error occurred while setting an error
I guess I am making something wrong with the first line in the begin block. The second (commmented) line works with PyCall. If I avoid both lines, then the program doen't recognize the Python packages "stream".
Thank you very much.
Best
The text was updated successfully, but these errors were encountered: