Closed ma-sadeghi closed 4 months ago
This is now fixed on main - the underlying issue being that PyArray
was not serializable. Though unless you really do need it to be a PyArray
I'd recommend just converting it to Array
as you had done.
Great, thanks! Just a quick question: Do you see #424 being worked on in the forseeable future? Thanks!
I have no particular plans to do it - there are other more pressing issues for PythonCall. But would be quite simple if you want to give it a go.
Sure, I'd be happy to take a crack at it. Any pointers where to look/start?
Take a look at serialization.jl
. Pretty much you'd need to add a setting to PythonCall, and if that setting is set you'd import dill
instead of pickle
.
Affects: JuliaCall
Describe the bug I'm trying to call a Julia function (from Python) that returns a vector of objects generated via
pmap
on multiple workers. (Not sure if thepmap
is even relevant, just in case)Reproduce the bug
More context The issue is related to passing
numpy
arrays (no error when passing saya = 1
). If the input is explicitly converted toArray
, it runs fine (uncomment# a = Array
). See #454 for the original issue.Error message
Your system Please provide detailed information about your system: