错误:pyi_rth_qt4plugins返回-1

时间:2015-12-22 04:58:36

标签: python pyqt4 pyinstaller

我正在使用pyinstaller创建可执行文件。 (我已经使用pip安装了pyinstaller和pypiwin32。)

但是当我尝试运行使用pyinstaller创建的可执行文件时,它会出现以下错误:

Traceback (most recent call last):
  File "<string>", line 43, in <module>
  File "c:\python27\Lib\site-packages\PyInstaller\loader\pyimod03_importers.py",
 line 517, in load_module
    module = imp.load_module(fullname, fp, filename, ext_tuple)
ImportError: DLL load failed: The application has failed to start because its side-by-side configuration is incorrect.
Please see the application event log or use the command-line sxstrace.exe tool for more detail.
pyi_rth_qt4plugins returned -1

我正在使用带有pyinstaller命令的--onefile开关。在我的源文件中,我的库导入如下所示

import sys
import os
import ctypes
import time
from win32com import client
from datetime import datetime
from PyQt4 import QtGui, QtCore
from Main_GUI import Ui_MainWindow
from About_GUI import Ui_About

Main_GUI和About_GUI使用pyuic4

从.ui文件转换

我希望这些信息有所帮助。提前谢谢。

0 个答案:

没有答案