uqfoundation / pathos

parallel graph management and execution in heterogeneous computing
http://pathos.rtfd.io
Other
1.38k stars 89 forks source link

Rpy2 troubles #157

Open jlevy44 opened 5 years ago

jlevy44 commented 5 years ago

I'm wrapping a couple R functions into rpy2 inside of a function passed to mp.amap(f,array...). For some reason I am getting this error:

arrays = r.get() .... v = reduce(self.proto) TypeError: can't pickle InstalledSTPackage objects

Can you help me debug?

Thanks!

mmckerns commented 5 years ago

@jlevy44: You'll need to provide some minimal, self-contained code that can reproduce your error. Then if you also provide a traceback, that helps.

In the abstract, from what you report, I can suggest you check and see if your object is serializable. Does it work with a ThreadPool? Does it work with dill.copy and/or dill.check?