pyinstaller: LSOpenURLsWithRole() failed with error -10810

Viewed 345

I used PyInstaller 3.6 to package a PyQt5 program, and the packaging process indicated an error: /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zmq/backend/cffi/pycache/_cffi_ext.c:269:10: fatal error: 'zmq.h' file not found

enter image description here

But still can generate executable file: exam.app, double-click the file, it cannot be opened, it cannot be opened with the terminal, and an error is reported: LSOpenURLsWithRole () failed with error -10810 for the file / Users / wenlong / GitHub / exam_demo / dist /exam.app.

enter image description here

Tried both versions of PyInstaller 3.6 / 3.5, the results are the same. Environment: Python 3.7.6 macOS 10.13.6

Excuse me, how can this problem be solved?

0 Answers
Related