Mayya Sharipova created LUCENE-10006:
----------------------------------------

             Summary: poll_mirrors.py release script doesn't work processes 
properly on Mac
                 Key: LUCENE-10006
                 URL: https://issues.apache.org/jira/browse/LUCENE-10006
             Project: Lucene - Core
          Issue Type: Bug
            Reporter: Mayya Sharipova


On my Mac machine with Python 3.9.5 running:

{{python3 -u dev-tools/scripts/poll-mirrors.py -version 8.9.0 -o}}

 

results in following recursive errors, unless manually forced to stop:

 


{code:java}
"/~/.lucene-releases/8.9.0/lucene-solr/dev-tools/scripts/poll-mirrors.py", line 
158, in <module>
 with Pool(processes=5) as pool:
 File 
"/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py",
 line 119, in Pool
 return Pool(processes, initializer, initargs, maxtasksperchild,
 File 
....
 File 
"/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/spawn.py",
 line 134, in _check_not_importing_main
 raise RuntimeError('''
 RuntimeError:
 An attempt has been made to start a new process before the
 current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
 child processes and you have forgotten to use the proper idiom
 in the main module:
if _name_ == '_main_':
 freeze_support()
 ...
The "freeze_support()" line can be omitted if the program
 is not going to be frozen to produce an executable.
{code}

  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to