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

Using Pathos in Multiple Classes ? #199

Open
thakurritesh19 opened this issue Sep 10, 2020 · 0 comments
Open

Using Pathos in Multiple Classes ? #199

thakurritesh19 opened this issue Sep 10, 2020 · 0 comments

Comments

@thakurritesh19
Copy link

For the problem described here: https://stackoverflow.com/questions/63832794/pathos-multiprocessing-failing-for-class-objects I am getting this error:

python3.6/lib/python3.6/site-packages/pathos/parallel.py:234: in map
return list(self.imap(f, *args))
python3.6/lib/python3.6/site-packages/pathos/parallel.py:247: in imap
return (subproc() for subproc in list(builtins.map(submit, *args)))
python3.6/lib/python3.6/site-packages/pathos/parallel.py:243: in submit
return _pool.submit(f, argz, globals=globals())
python3.6/lib/python3.6/site-packages/pp/_pp.py:500: in submit
sargs = pickle.dumps(args, self.__pickle_proto)
python3.6/lib/python3.6/site-packages/dill/_dill.py:265: in dumps
dump(obj, file, protocol, byref, fmode, recurse, **kwds)#, strictio)
python3.6/lib/python3.6/site-packages/dill/_dill.py:259: in dump
Pickler(file, protocol, **_kwds).dump(obj)
python3.6/lib/python3.6/site-packages/dill/_dill.py:446: in dump
StockPickler.dump(self, obj)
python3.6/lib/python3.6/pickle.py:409: in dump
self.save(obj)
python3.6/lib/python3.6/pickle.py:476: in save
f(self, obj) # Call unbound method with explicit self
python3.6/lib/python3.6/pickle.py:736: in save_tuple
save(element)
python3.6/lib/python3.6/pickle.py:521: in save
self.save_reduce(obj=obj, *rv)
python3.6/lib/python3.6/pickle.py:634: in save_reduce
save(state)
python3.6/lib/python3.6/pickle.py:476: in save
f(self, obj) # Call unbound method with explicit self
python3.6/lib/python3.6/site-packages/dill/_dill.py:933: in save_module_dict
StockPickler.save_dict(pickler, obj)
python3.6/lib/python3.6/pickle.py:821: in save_dict
self._batch_setitems(obj.items())
python3.6/lib/python3.6/pickle.py:852: in _batch_setitems
save(v)
python3.6/lib/python3.6/pickle.py:521: in save
self.save_reduce(obj=obj, *rv)
python3.6/lib/python3.6/pickle.py:634: in save_reduce
save(state)
python3.6/lib/python3.6/pickle.py:476: in save
f(self, obj) # Call unbound method with explicit self
python3.6/lib/python3.6/site-packages/dill/_dill.py:933: in save_module_dict
StockPickler.save_dict(pickler, obj)
python3.6/lib/python3.6/pickle.py:821: in save_dict
self._batch_setitems(obj.items())
python3.6/lib/python3.6/pickle.py:847: in _batch_setitems
save(v)
python3.6/lib/python3.6/pickle.py:521: in save
self.save_reduce(obj=obj, *rv)
python3.6/lib/python3.6/pickle.py:634: in save_reduce
save(state)
python3.6/lib/python3.6/pickle.py:476: in save
f(self, obj) # Call unbound method with explicit self
python3.6/lib/python3.6/site-packages/dill/_dill.py:933: in save_module_dict
StockPickler.save_dict(pickler, obj)
python3.6/lib/python3.6/pickle.py:821: in save_dict
self._batch_setitems(obj.items())
python3.6/lib/python3.6/pickle.py:847: in _batch_setitems
save(v)
python3.6/lib/python3.6/pickle.py:496: in save
rv = reduce(self.proto)
E TypeError: 'bool' object is not callable

Can some one assist me please ?

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

1 participant