An open API service indexing awesome lists of open source software.

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

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__'.