Skip to content

running anova_all(…) with multiple cores results in error #187

@howard-lightfoot

Description

@howard-lightfoot

I suspect this is related to use of easydev.

For example:

"

results.anova_all(multicore=4)
[ 0% ] 0 of 911 complete in 0.0 secTraceback (most recent call last):
File "", line 1, in
File ".../GDSCtools/env/lib/python3.9/site-packages/gdsctools-1.1.0-py3.9.egg/gdsctools/anova.py", line 890, in anova_all
multicore_analysis(self, drug_names, multicore)
File ".../GDSCtools/env/lib/python3.9/site-packages/gdsctools-1.1.0-py3.9.egg/gdsctools/anova.py", line 1018, in multicore_analysis
t.run()
File ".../GDSCtools/env/lib/python3.9/site-packages/easydev-0.12.0-py3.9.egg/easydev/multicore.py", line 113, in run
self.pool = Pool(self.maxcpu, init_worker)
...
File ".../python@3.9/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 47, in _launch
reduction.dump(process_obj, fp)
File ".../python@3.9/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'MultiProcessing.run..init_worker'
"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions