[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread SilentGhost
SilentGhost added the comment: The error you're seeing stems from this bit of code: random.randint(1, 0) With zero resulting from `taskid % 5` operation for values of taskid divisible by 5. Obviously, when you comment out this line you're not seeing the error. -- nosy: +SilentGhost

[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread 孑影
孑影 added the comment: My python version info: Python 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516] on linux2 Python 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516] on linux -- ___ Python tracker

[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread 孑影
Change by 孑影 : Added file: https://bugs.python.org/file48256/demo.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread 孑影
Change by 孑影 : Removed file: https://bugs.python.org/file48255/demo.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread 孑影
Change by 孑影 : Removed file: https://bugs.python.org/file48254/demo.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread 孑影
Change by 孑影 : Added file: https://bugs.python.org/file48255/demo.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread 孑影
Change by 孑影 : Added file: https://bugs.python.org/file48254/demo.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread 孑影
Change by 孑影 : Removed file: https://bugs.python.org/file48253/demo.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36578] multiprocessing pool + subprocess ValueError: empty range for randrange

2019-04-09 Thread 孑影
New submission from 孑影 : == output == python2 /tmp/demo.py 31749 task#1 result:(False, 'ls: cannot access alksdfjalkdsfadsfk: No such file or directoryn') 31751 task#2 result:(False, 'ls: cannot access alksdfjalkdsfadsfk: No such file or directoryn') 31752 task#3 result:(False, '3n') 31750