When I type the following in pycharm console, it comes with os error, but everything is normal under cmd and ipython, I've been struggling with this problem for a long time.
from pathos.multiprocessing import ProcessPool
ProcessPool(2)
<pool ProcessPool(ncpus=2)>
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\Python\lib\site-packages\multiprocess\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "D:\Python\lib\site-packages\multiprocess\spawn.py", line 114, in _main
prepare(preparation_data)
File "D:\Python\lib\site-packages\multiprocess\spawn.py", line 225, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "D:\Python\lib\site-packages\multiprocess\spawn.py", line 277, in _fixup_main_from_path
run_name="__mp_main__")
File "D:\Python\lib\runpy.py", line 261, in run_path
Traceback (most recent call last):
File "<string>", line 1, in <module>
code, fname = _get_code_from_file(run_name, path_name)
File "D:\Python\lib\runpy.py", line 231, in _get_code_from_file
with open(fname, "rb") as f:
OSError: [Errno 22] Invalid argument: 'D:\\myworkspace\\<input>'
My working environment:
python 3.7.7 64bit
windows10 x64
pycharm 2019.3.5 pro
pathos 0.2.6
When I type the following in pycharm console, it comes with os error, but everything is normal under cmd and ipython, I've been struggling with this problem for a long time.
My working environment: python 3.7.7 64bit windows10 x64 pycharm 2019.3.5 pro pathos 0.2.6