The error message is:
PyInstallerImportError: Failed to load dynlib/dll 'C:\\Users\\PETERM~1\\AppData\\Local\\Temp\\_MEI143202\\pyzbar\\libico
nv-2.dll'. Most probably this dynlib/dll was not found when the application was frozen.
Seems like it was answered by r92546024 on GitHub: link
Excerpt:
if you have MSVCR120.dll missing when execute the exe, you need to install C++ package
https://www.microsoft.com/en-ph/download/confirmation.aspx?id=40784You can put the libiconv.dll & libzbar-64.dll in the exe work folder.
The exe file will use the dll in the same folder by first
Note:
You can get the two dll from C:\Python35\Lib\site-packages\pyzbar and then copy to the exe folder
You can try to add the dll directly to the executable file's directory and also use the --add binary when using pyinstaller to build the executable. You can find the 2 dll from C:\Users\user\PycharmProjects\pythonProject\venv\Lib\site-packages\pyzbar if you are using pycharm
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.