[Python] Using 32-bit Python 2.7 extension with Windows 10 64bit

Discussão em 'Python' iniciado por Stack, Setembro 10, 2025.

  1. Stack

    Stack Membro Participativo

    I'm attempting to use a 32-bit Python 2.7 extension called PicoScript on a modern setup. I have to use this extension because the hardware I'm connecting to requires it.

    Since most of this stack has been deprecated by now, it's been a bit of an uphill battle, and I'm currently having some errors with DLLs not being found.

    This is the code I'm trying to run: import picoscript

    And this is the output I'm getting: ImportError: DLL load failed: %1 is not a valid Win32 application.

    I ran the extension file (which is packed as a .pyd) through Dependencies, and got the following output: [​IMG]

    I assume the issue is with a mismatched C++ installation, but I can't figure out how to resolve it. I tracked down a copy of Visual C++ Redist 2008, which I think is appropriate for this context, but it hasn't changed anything.

    Has anyone encountered this issue before? Let me know if you have any ideas.

    Thanks. Nate

    Continue reading...

Compartilhe esta Página