Closed Hellogz closed 3 years ago
python 3.6.4, pyinstaller 3.4 windows XP 32bit and windows 10 64bit
This looks like an issue in pyinstaller. See their documentation for a workaround: https://github.com/pyinstaller/pyinstaller/wiki/Recipe-Multiprocessing
Works fine when pyinstaller is not in use,code:
def main(): api = MultiAPI.MultiAPI('NRF52') print("get api done.") os.system("pause")
if name == 'main': main()
But an exception occurs after packaging with pyinstaller,command: pyinstaller file_name.py
if use API.API('NRF52') is normal.
How can I solve this problem?