Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: MemoryLoadLibrary failed loading PyQt5\QtWidgets.pyd: The specified module could not be found. (126) #206

Open
shahzebali457 opened this issue Mar 31, 2024 · 0 comments

Comments

@shahzebali457
Copy link

hi i am having a similar issue with PyQt5
I tested it on both Python 3.9 and 3.11

ImportError: MemoryLoadLibrary failed loading PyQt5\QtWidgets.pyd: The specified module could not be found. (126)
Traceback (most recent call last):
File "zipextimporter.pyc", line 96, in load_module
File "", line 241, in load_module
File "", line 721, in _get_module_code
zipimport.ZipImportError: can't find module 'PyQt5.QtWidgets'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "roof_Cost_Estimation.py", line 3, in
File "zipextimporter.pyc", line 120, in load_module
ImportError: MemoryLoadLibrary failed loading PyQt5\QtWidgets.pyd: The specified module could not be found. (126)

The error is copied from log file

setup.py

from distutils.core import setup
import py2exe
import sys

data_files = ['paddleocr', 'yolov8upd', 'en_PP-OCRv3_det_infer', 'models']
includes=['PyQt5','pyqt5_plugins','pyqt5_tools','PyQt5.QtCore','PyQt5.QtXml', 'PyQt5.QtWidgets']
sys.argv.append('py2exe')

setup(
options={'py2exe': {'bundle_files': 1, 'compressed': True,'includes':includes}},
windows=[{'script': 'roof_Cost_Estimation.py'}],
packages=data_files,
zipfile=None,
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant