Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. PyQt / Python 32-bit 64-bit mismatch causing dll loading error ("Not a valid Win32 application")
QtWS25 Last Chance

PyQt / Python 32-bit 64-bit mismatch causing dll loading error ("Not a valid Win32 application")

Scheduled Pinned Locked Moved The Lounge
2 Posts 2 Posters 3.2k Views
  • 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.
  • S Offline
    S Offline
    snoop911
    wrote on last edited by
    #1

    I'm running on a Win x64 machine, trying to use LoadLibrary to call a dll function, but I'm getting a '%1 is not a valid Win32 application' error.

    Not sure if the dll is 32-bit or 64-bit, or if __cdecl was used, or anything else about it..

    To make matters worse, I dont know if I have the 32-bit or 64 bit version of PyQt5 / Python3.4 installed. Is it even possible to mix & match a 64bit PyQt with a 32-bit Python, or vice versa?

    Is there a way to see what bit versions of PyQt and Python I'm running? I'm hoping that they match, and that switching to the other bit version will resolve the dll error.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      No you can't mix different architectures. You can use Dependency Walker to get more information about the dlls and executables

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved