I am trying to build my app with --onefile option by pyinstaller. Here is the extract.
import sys from PyQt4 import QtGui, QtCore from modules.login import L
i just had a similar problem, once i ran pyinstaller --onedir main.py, i got that error.
i copied the Qt5core.dll in the same folder as the generated .exe to the \PyQt\bin folder and everything was working well.