Closed hzovaro closed 1 year ago
OK, so I fixed the problem - on my Mac, the error goes away when the script is within a if __name__ == "__main__"
block.
See here: https://stackoverflow.com/questions/18204782/runtimeerror-on-windows-trying-python-multiprocessing
When running the following on my local machine (either with
python script.py
or%run script.py
in ipython):I get the following output (after interrupting):
but if I copy & paste the code into ipython it works.
Steps to reproduce:
conda create --name spaxelsleuth python=3.10
conda activate spaxelsleuth
pip install -e .
conda install ipython
ipython
%run basic_sami_script.py
:Error occurred.