You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def _set_multiprocessing_start_method() -> None:
# this is currently required because the latest litestar uses a QueueListener logging handler
if platform.system() in {"Darwin", "Windows"}:
multiprocessing.set_start_method("fork", force=True)
Hello.
I have encountered the following error on windows,
Fork (or forkserver) is not available on windows, https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods
The issue if from the following line
72bc089#diff-b3b1f4cc344f3013a1b743b1876cb3e6e9848d15aab3ffbb48067978419a1a1aR446-R451
If I change the following line to
or even if I ignore the line completely (on Windows),
it works fine.
Minimal example:
Versions:
P.S.
Regarding the comment,
I indeed had this problem after the commit e1f1485 and I had set this to
True
in my code, but I see this was changed back toTrue
as a default.Thank you.
Best wishes.
The text was updated successfully, but these errors were encountered: