-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Spyder runs into infinite loop when using multiprocessing #3367
Comments
We can't try your example until you provide some values for Also, how are you running you code in spyder ? in a dedicated console ? Python or IPython ? |
Yes, please provide a reproducible example :-) |
Closing because we can't run this code. |
I'm having the same problem. And I also am able to run a multi-processing session from command-line but not from Spyder. I have a Win 10 machine. I have Anaconda installed. And one other point is that I recently installed the tifffile package within Anaconda. "Python 2.7.14 |Anaconda, Inc.| (default, Nov 8 2017, 13:40:45) [MSC v.1500 64 bit (AMD64)] IPython 5.4.1 -- An enhanced Interactive Python." I am able to generate an infinite loop using the code: import multiprocessing as mp log=mp.log_to_stderr() def foo_pool(x): if name == "main":
|
Spyder freezes when following code is run with big arrays (>100k entries each).
Code:
Running the above code brings the described problem.
If the map-function is commented and called independetly, I get the expected result, if run in Spyder.
As the script is supposed to work automatically, I found out that it can be executed correctly from the command line " python ..script.py" and from IPython.
Versions and main components
*scipy Version: 0.17.1
Dependencies
IPython >=1.0 : 4.0.3 (OK)
jedi >=0.8.1;<0.9.0: 0.9.0 (NOK)
matplotlib >=1.0 : 1.5.1 (OK)
pandas >=0.13.1 : 0.17.1 (OK)
pep8 >=0.6 : 1.7.0 (OK)
pyflakes >=0.6.0 : 1.0.0 (OK)
pygments >=1.6 : 2.1 (OK)
pylint >=0.25 : None (NOK)
qtconsole >=4.0 : 4.1.1 (OK)
rope >=0.9.2 : 0.9.4-1 (OK)
sphinx >=0.6.6 : 1.3.1 (OK)
sympy >=0.7.3 : 0.7.6.1 (OK)
zmq >=2.1.11 : 15.2.0 (OK)
The text was updated successfully, but these errors were encountered: