pyinstaller打包exe文件闪退的解决办法

栏目:影视资讯  时间:2022-10-28
手机版

  Traceback (most recent call last):

  File "libsite-packagesPyInstallerloaderpyiboot01_bootstrap.py", line 149, in __init__

  File "ctypes__init__.py", line 348, in __init__

  OSError: [WinError 126] 找不到指定的模块。

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):

  File "libsite-packagespyzbarzbar_library.py", line 58, in load

  File "libsite-packagespyzbarzbar_library.py", line 52, in load_objects

  File "libsite-packagespyzbarzbar_library.py", line 52, in <listcomp>

  File "ctypes__init__.py", line 426, in LoadLibrary

  File "libsite-packagesPyInstallerloaderpyiboot01_bootstrap.py", line 151, in __init__

  __main__.PyInstallerImportError: Failed to load dynlib/dll 'libiconv.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 "libsite-packagesPyInstallerloaderpyiboot01_bootstrap.py", line 149, in __init__

  File "ctypes__init__.py", line 348, in __init__

  OSError: [WinError 126] 找不到指定的模块。

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):

  File "tel_Fee_Invoice_Info_Extract.py", line 13, in <module>

  import pyzbar.pyzbar as pyzbar

  File "<frozen importlib._bootstrap>", line 971, in _find_and_load

  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked

  File "d:settlement_envvenvlibsite-packagesPyInstallerloaderpyimod03_importers.py", line 627, in exec_module

  exec(bytecode, module.__dict__)

  File "libsite-packagespyzbarpyzbar.py", line 7, in <module>

  File "<frozen importlib._bootstrap>", line 971, in _find_and_load

  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked

  File "d:settlement_envvenvlibsite-packagesPyInstallerloaderpyimod03_importers.py", line 627, in exec_module

  exec(bytecode, module.__dict__)

  File "libsite-packagespyzbarwrapper.py", line 143, in <module>

  File "libsite-packagespyzbarwrapper.py", line 136, in zbar_function

  File "libsite-packagespyzbarwrapper.py", line 115, in load_libzbar

  File "libsite-packagespyzbarzbar_library.py", line 60, in load

  File "libsite-packagespyzbarzbar_library.py", line 52, in load_objects

  File "libsite-packagespyzbarzbar_library.py", line 52, in <listcomp>

  File "ctypes__init__.py", line 426, in LoadLibrary

  File "libsite-packagesPyInstallerloaderpyiboot01_bootstrap.py", line 151, in __init__

  __main__.PyInstallerImportError: Failed to load dynlib/dll 'C:\Users\newjune\AppData\Local\Temp\_MEI164962\pyzbar\libiconv.dll'. Most probably this dynlib/dll was not found when the application was frozen.

  [18280] Failed to execute script tel_Fee_Invoice_Info_Extract

上一篇:局内人2006
下一篇:又一女星宣布离婚!没逃过七年之痒,男方前任还是周迅

最近更新影视资讯