Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved qt5 impossible to execute the code because Qt5WebEngineCore.dll

    General and Desktop
    2
    5
    339
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      CentreFF last edited by

      Hi,

      I just purchased a new laptop Windows 10 64b where I need to transfer my code.

      I developed a PyQT5 GUI with Python 3.7

      My new laptop is Python 3.9 and when I execute the python script, I get now an error message:

      https://prnt.sc/11ytg1d

      Error message is in french. It says "qt5 impossible to execute the code because Qt5WebEngineCore.dll can't be found..."

      So I installed the qt5 framework, mingw-w64, qt5 designer (34 Go). I added path in environment variable.

      I searched for solution on Google. I found only some dll download websites. Nothing serious to explain me the issue.

      I made a pip freeze for you:

      altgraph==0.17
      Appium-Python-Client==1.1.0
      backcall==0.2.0
      cachetools==4.2.1
      certifi==2020.12.5
      cffi==1.14.5
      chardet==4.0.0
      colorama==0.4.4
      configparser==5.0.2
      cookies==2.2.1
      crayons==0.4.0
      cryptography==3.4.7
      decorator==5.0.7
      fake-useragent==0.1.11
      future==0.18.2
      getmac==0.8.2
      gevent==21.1.2
      google-api-core==1.26.3
      google-api-python-client==2.2.0
      google-auth==1.29.0
      google-auth-httplib2==0.1.0
      googleapis-common-protos==1.53.0
      greenlet==1.0.0
      httplib2==0.19.1
      idna==2.10
      ipython==7.22.0
      ipython-genutils==0.2.0
      jedi==0.18.0
      mysql-connector-python==8.0.24
      Nuitka==0.6.14.4
      numpy==1.20.2
      packaging==20.9
      pandas==1.2.4
      parso==0.8.2
      pefile==2019.4.18
      pickleshare==0.7.5
      Pillow==8.2.0
      progress==1.5
      prompt-toolkit==3.0.18
      protobuf==3.15.8
      psutil==5.8.0
      pyasn1==0.4.8
      pyasn1-modules==0.2.8
      pycairo==1.20.0
      pycparser==2.20
      pycryptodome==3.10.1
      pycryptodomex==3.10.1
      Pygments==2.8.1
      pyinstaller==4.3
      pyinstaller-hooks-contrib==2021.1
      pyparsing==2.4.7
      PyQt5==5.15.4
      PyQt5-Qt5==5.15.2
      PyQt5-sip==12.8.1
      PyQtWebEngine==5.15.4
      PyQtWebEngine-Qt5==5.15.2
      pytesseract==0.3.7
      python-dateutil==2.8.1
      pytz==2021.1
      pywin32==300
      pywin32-ctypes==0.2.0
      requests==2.25.1
      rsa==4.7.2
      selenium==3.141.0
      six==1.15.0
      traitlets==5.0.5
      Unidecode==1.2.0
      uritemplate==3.0.1
      urllib3==1.26.4
      wcwidth==0.2.5
      webdriver-manager==3.4.0
      wget==3.2
      zope.event==4.5.0
      zope.interface==5.4.0
      

      Here are the folders of necessary software:
      aea7a823-a2c8-4394-84f0-53681fb420f6-image.png

      9560f8a1-8c41-47f3-be32-5ff2fef4ffb6-image.png

      Does anyone can help me to run my Python script properly. It runs fine on my old laptop, but not on new ones.

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @CentreFF last edited by

        @CentreFF said in qt5 impossible to execute the code because Qt5WebEngineCore.dll:

        PyQT5

        Since you're using PyQt you need to make sure your PyQt installation contains Qt5WebEngineCore. Installing Qt framework has no effect on your PyQt installation.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        C 1 Reply Last reply Reply Quote 0
        • C
          CentreFF @jsulm last edited by

          @jsulm Thank you for helping. the problem is when I run python in terminal and import QtWebEngineCore, I don't get any error message.

          9e2cd628-5906-4539-8607-616842d6f0c7-image.png

          When I run the script from PyCHarm, I don't get the "Cannot find dll" error.

          jsulm 1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion @CentreFF last edited by

            @CentreFF Then are you sure you use the correct Python interpreter when you start your PyQt app?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 1
            • C
              CentreFF last edited by

              I installed Python 3.9 from WIndows Store.
              I uninstalled it.
              Download the 3.7 from python.org.
              Now it works! :-)

              Thanks for your help

              1 Reply Last reply Reply Quote 0
              • First post
                Last post