报错提示:
File "site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 151, in __init__
File "ctypes\__init__.py", line 373, in __init__
FileNotFoundError: Could not find module 'libiconv-2.dll'. Try using the full path with constructor syntax.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "site-packages\pyzbar\zbar_library.py", line 58, in load
File "site-packages\pyzbar\zbar_library.py", line 50, in load_objects
File "site-packages\pyzbar\zbar_library.py", line 51, in <listcomp>
File "ctypes\__init__.py", line 451, in LoadLibrary
File "site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 153, in __init__
__main__.PyInstallerImportError: Failed to load dynlib/dll 'libiconv-2.dll'. Most probably this dynlib/dll was not found when the application was frozen.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 151, in __init__
File "ctypes\__init__.py", line 373, in __init__
FileNotFoundError: Could not find module 'C:\Users\27540\AppData\Local\Temp\_MEI21602\pyzbar\libiconv-2.dll'. Try using the full path with constructor syntax.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "Filename_tool.py", line 1, in <module>
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "c:\users\27540\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\pyzbar\pyzbar.py", line 7, in <module>
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "c:\users\27540\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\pyzbar\wrapper.py", line 139, in <module>
File "site-packages\pyzbar\wrapper.py", line 136, in zbar_function
File "site-packages\pyzbar\wrapper.py", line 115, in load_libzbar
File "site-packages\pyzbar\zbar_library.py", line 60, in load
File "site-packages\pyzbar\zbar_library.py", line 50, in load_objects
File "site-packages\pyzbar\zbar_library.py", line 51, in <listcomp>
File "ctypes\__init__.py", line 451, in LoadLibrary
File "site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 153, in __init__
__main__.PyInstallerImportError: Failed to load dynlib/dll 'C:\\Users\\27540\\AppData\\Local\\Temp\\_MEI21602\\pyzbar\\libiconv-2.dll'. Most probably this dynlib/dll was not found when the application was frozen.
[14912] Failed to execute script Filename_tool
/(ㄒoㄒ)/~~