Message336881
The documentation on freeze_support listed on https://docs.python.org/3/library/multiprocessing.html need to be fixed
This mentions:
"Calling freeze_support() has no effect when invoked on any operating system other than Windows. In addition, if the module is being run normally by the Python interpreter on Windows (the program has not been frozen), then freeze_support() has no effect."
This is not true. Sklearn/tensorflow libraries tend to cause an infinite loop when frozen with pyinstaller (tested on python 3.6 on ubuntu 14.04). freeze_support is the only way to get around the situation and should be included before including any other module that includes a multiprocessing library (not just in main). |
|
Date |
User |
Action |
Args |
2019-03-01 00:49:32 | Sridhar Iyer | set | recipients:
+ Sridhar Iyer, docs@python |
2019-03-01 00:49:32 | Sridhar Iyer | set | messageid: <1551401372.79.0.134624139836.issue36153@roundup.psfhosted.org> |
2019-03-01 00:49:32 | Sridhar Iyer | link | issue36153 messages |
2019-03-01 00:49:32 | Sridhar Iyer | create | |
|