Closed kvoggel closed 4 years ago
This could be related to the change of the default start method on macos : https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods
Changed in version 3.8: On macOS, the spawn start method is now the default. The fork start method should be considered unsafe as it can lead to crashes of the subprocess. See bpo-33725.
But we cannot reproduce this with a Python 3.8.1 from conda on @RolandBacon 's macbook. What is your Python version (3.8.0 ?) and how was it installed ? Could you try with a Python 3.8.1 and/or with conda ?
I just double checked and I have Python version 3.8.1 And yes indeed it seems like the change in default multiprocessing might be the issue. But not sure how I can solve that error.
I installed python straight from the source not with conda on my Mac. I just wondered if it was a 3.8 problem as I had just upgraded from python 2.7 to the 3.8 version and many astro packages I installed had issues with the new 3.8 and were only tested in 3.7. Thanks for looking into it though.
Could you check with conda if you can reproduce the issue? I'm sure if we can do something in the code or if this is an issue related to your installation.
I made a conda environment with python 3.8.1, scipy 1.4.1 and numpy version 1.18 and it successfully zapped a cube. So indeed it must have been something in my installation of python and the packages. Works with python 3.8 indeed. I've had so many packages recently that did not work under 3.8 I assumed it was the same thing with this error but in fact it wasn't.
Great that it works! I'm not sure if your installation has a problem or if conda does something specific for this issue, but anyway it works so let's close this and see if the issue arise again in the future.
Was the zap code already tested with python version 3.8. I am trying to use it and get a persistent error that looks like this :