Commit 09bc14a
committed
Fix: Move run_with_env() before freeze_support() for PyInstaller compatibility
The run_with_env() function must be defined before multiprocessing.freeze_support()
to ensure proper pickling in frozen executables. When defined after freeze_support(),
PyInstaller cannot properly register the function for multiprocessing, causing
"Can't get attribute 'run_with_env'" errors in worker processes.
This fixes the issue where isolated process computations hang in frozen builds
while working correctly in standard Python distributions.
Fixes isolated process execution in PyInstaller-built DataLab v1.0.2+1 parent d32e5fa commit 09bc14a
1 file changed
+17
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
198 | 215 | | |
199 | 216 | | |
200 | 217 | | |
| |||
221 | 238 | | |
222 | 239 | | |
223 | 240 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| |||
0 commit comments