soravux / scoop

SCOOP (Scalable COncurrent Operations in Python)
https://github.com/soravux/scoop
GNU Lesser General Public License v3.0
634 stars 87 forks source link

ImportError with workers on Python 3.6.0 #61

Closed audreydunn closed 7 years ago

audreydunn commented 7 years ago

I am try to run with a single host and multiple workers on Python 3.6.0. After the program starts, the main worker keeps running and all the other workers have the error shown below:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\ProgramData\Anaconda3\lib\multiprocessing\spawn.py", line 105, in spawn_main
    exitcode = _main(fd)
  File "C:\ProgramData\Anaconda3\lib\multiprocessing\spawn.py", line 114, in _main
    prepare(preparation_data)
  File "C:\ProgramData\Anaconda3\lib\multiprocessing\spawn.py", line 223, in prepare
    _fixup_main_from_name(data['init_main_from_name'])
  File "C:\ProgramData\Anaconda3\lib\multiprocessing\spawn.py", line 249, in _fixup_main_from_name
    alter_sys=True)
  File "C:\ProgramData\Anaconda3\lib\runpy.py", line 201, in run_module
    mod_name, mod_spec, code = _get_module_details(mod_name)
  File "C:\ProgramData\Anaconda3\lib\runpy.py", line 136, in _get_module_details
    raise error("No module named %s" % mod_name)
ImportError: No module named SCOOP_WORKER

When the same code is ran in python 2.7, this ImportError does not appear and the code runs properly.

What is causing this issue to only occur in Python 3.6.0?

What is SCOOP_WORKER?