https://github.com/sonhm3029/python-error-experience
This is about some errors when working with python project and have solve
https://github.com/sonhm3029/python-error-experience
Last synced: 3 months ago
JSON representation
This is about some errors when working with python project and have solve
- Host: GitHub
- URL: https://github.com/sonhm3029/python-error-experience
- Owner: sonhm3029
- Created: 2022-10-01T14:23:29.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-01T14:29:31.000Z (over 2 years ago)
- Last Synced: 2025-01-17T01:24:40.443Z (5 months ago)
- Homepage:
- Size: 0 Bytes
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python-error-experience
# Table of contents
- [Python-error-experience](#python-error-experience)
- [1. Lỗi `RuntimeError` khi chạy multiprocessing ngoài vòng `main`:](#1-li-runtimeerror-khi-chy-multiprocessing-ngoi-vng-main)## 1. Lỗi `RuntimeError` khi chạy multiprocessing ngoài vòng `main`
Stackovervlow: [https://stackoverflow.com/questions/18204782/runtimeerror-on-windows-trying-python-multiprocessing](https://stackoverflow.com/questions/18204782/runtimeerror-on-windows-trying-python-multiprocessing)
**Nguyên nhân:** Do trên windows, `subprocesses` import main module khi chạy project => cần phải đặt các task multiprocessing vào trong `if __name__ == '__main__'.