I want to make a simple program using a website, based on this code::
GitHub
but pressing 'run' without modifying anything of the code I get this error:
from PyQt5.QtWebEngineWidgets import *
ImportError: DLL load failed while importing QtWebEngineWidgets: The specified module could not be found.
I have already installed:
Related
I have this error when I executing my code. this error from library automatic-speech-recognition 1.0.4 . Help, please
ImportError: cannot import name 'experimental' from 'keras.mixed_precision' i tried to search in google, but no results
Working on a Windows 10
Trying to set up pose2pose, which needs PyOpenPose and OpenPose to run
keep running into the issue in the code below:
I'v added every combination of every variable to my paths, and my PYTHONPATH and even made python37.pth and directed it to my module and still nothing.
Edit: when building PyOpenPose built with Cmake and then in visual studio 2019, the config propertys were set to .dll but no .dll was made, instead i have a .lib, .exe, and .pyd in C:\Users\conta\Documents\GithubRepos\pyopenpose\build\PyOpenPoseLib\Release
Traceback (most recent call last):
File "generate_train_data.py", line 5, in <module>
import PyOpenPose as OP
ImportError: DLL load failed: The specified module could not be found.
I'm trying to setup Ghost.py and I need PyQt4 for it.
I've downloaded PyQt-x11-gpl-4.11.3 version and used configure-ng.py with Python-3.4.2, of course did make and make install.
Sadly, I'm getting an error ImportError: No module named 'PyQt4.QtWebKit' while trying to from ghost import Ghost.
Can't figure out how do I build QtWebKit.
Thank you for any useful input!
I ran the windows 64bit installer for PyQt4 pointing it to the python34 folder. Python is not in default location, so I added PYTHONPATH with D:\Program Files\Python34\Lib\site-packages\PyQt4
Added the import statement to my module: "from PyQt4 import QtGui". I execute and get: "from PyQt4 import QtGui ImportError: DLL load failed: The specified module could not be found."
I noticed that if I simply put import PyQt4 and use intellisense in IDLE there are only a few private methods visible.
Since I ran the installer, must I still perform a make? Readme references windows instruction that do not seem to be present on my machine.
I build one code and then created a exe from .py using py2exe .
Now i want to create a self expracted for the same so i used Iexpress to do that . I am able to create the exe from Iexpress but when i try to extract my application from the exe created i get following error :
Traceback (most recent call last):
File "C.py", line 44, in <module>
File "A.pyc", line 4, in <module>
File "PyQt4\QtGui.pyc", line 12, in <module>
File "PyQt4\QtGui.pyc", line 10, in __load
ImportError: DLL load failed: The specified module could not be found.
It seems , error is all coming in line :
from PyQt4 import QtCore, QtGui
I saw some ways to fix this on internet but couldnt succeed to fix this . Anyone have any ideas ?
I tried to reproduce this here, but it seems to work fine. Here's what I did:
Created a file hello-pyqt.py using this question:
How to implement a simple button in PyQt
Created a setup.py:
from distutils.core import setup
import py2exe
setup(console=['hello-pyqt.py'],
options={'py2exe': {'bundle_files': 1,
'dll_excludes': ['w9xpopen.exe', 'MSVCP90.dll'],
'includes': ['sip']}}
)
The dll_excludes and includes tricks came from an answer on py2exe fails to generate an executable and this Py2exeAndPyQt page, respectively.
Executed setup.py:
python setup.py py2exe
Tested the output before using IExpress:
dist\hello-pyqt.exe
Bundled it with IExpress in the usual way:
Added both hello-pyqt.exe and library.zip.
Set the Install Command to hello-pyqt.exe.
Enabled Long File Name support.
Compare your process with the one I'm using (above) and see if there's anything that might help. Failing that, I'd use Process Monitor to see which DLL it's failing to load and where it's looking.
The DLLs that are bundled in my library.zip are: QtCore4.dll and QtGui4.dll. You might want to check your library.zip to make sure those files are there.