py程序里包含有
from pdf2docx import Converter
没有封装之前可以正常运行,但是封装成exe后,运行时闪退。我快速复制下报错的内容。
raise ImportError('ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation.')
ImportError: ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation.
[16120] Failed to execute script 'wpdf_docx' due to unhandled exception!
翻译出来是:
raise ImportError('错误:加载“cv2”二进制扩展时检测到递归。请检查OpenCV安装。')
ImportError:错误:在加载“cv2”二进制扩展时检测到递归。检查OpenCV安装。
[16120]由于未处理的异常,无法执行脚本“wpdf\u docx”!
我在网上找了许多方法,结合自己程序的实际和尝试