Skip to content

Commit f78abd6

Browse files
committed
fixed the venv issue
1 parent a73c497 commit f78abd6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libero/lifelong/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
os.environ["TOKENIZERS_PARALLELISM"] = "false"
44
import sys
55
import json
6+
import multiprocessing
67
import pprint
78
import time
89
from pathlib import Path
@@ -265,4 +266,7 @@ def main(hydra_cfg):
265266

266267

267268
if __name__ == "__main__":
269+
# Set the multiprocessing start method to 'spawn'
270+
if multiprocessing.get_start_method(allow_none=True) != "spawn":
271+
multiprocessing.set_start_method("spawn", force=True)
268272
main()

0 commit comments

Comments
 (0)