[Error 193] %1 is not a valid Win32 application

Post general discussions on using our drivers to write your own software here
Post Reply
ishoro13
Newbie
Posts: 0
Joined: Thu Feb 02, 2017 5:27 pm

[Error 193] %1 is not a valid Win32 application

Post by ishoro13 » Fri Sep 28, 2018 12:45 pm

Dear Technical Support,
I'm want to grab a signal from picoscope6403A using a python script.

I've tried to run following code: https://github.com/picotech/picosdk-pyt ... Example.py

And receiving the following error:

Code: Select all

   raise CannotOpenPicoSDKError("PicoSDK (%s) not compatible (check 32 vs 64-bit): %s" % (self.name, e))

CannotOpenPicoSDKError: PicoSDK (ps6000) not compatible (check 32 vs 64-bit): [Error 193] %1 is not a valid Win32 application
I have tried both SDK 32 bit and 64 bit.
Before installing the 32 bit, I completely uninstalled 64-bit version to avoid any conflicts.

rchopraj
Newbie
Posts: 0
Joined: Fri Oct 05, 2018 2:55 pm

Re: [Error 193] %1 is not a valid Win32 application

Post by rchopraj » Fri Oct 05, 2018 6:00 pm

I recently experienced the exact same error when trying to run the example python code on my W7-64bit PC running the 64 bit SDK. I was using SDK version 10.6.13.58 with a 5242D, and was running the code through 64-bit Canopy. Any solutions?

rchopraj
Newbie
Posts: 0
Joined: Fri Oct 05, 2018 2:55 pm

Re: [Error 193] %1 is not a valid Win32 application

Post by rchopraj » Mon Oct 08, 2018 12:49 pm

Removing the 32-bit directory in the PATH environment seemed to fix the problem. Perhaps the PATH is preserved even after uninstallation?

Hitesh
PICO STAFF
PICO STAFF
Posts: 2855
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: [Error 193] %1 is not a valid Win32 application

Post by Hitesh » Mon Oct 08, 2018 1:13 pm

Hi rchopraj,

We have found in testing that the order of the directories needs to be rearranged depending on Python environment. I will raise a request for this to be investigated.

Regards,
Hitesh

Software Dev. Engineer

Post Reply