[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 »

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 »

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 »

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

Hitesh

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

Post by Hitesh »

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,

amiablegoat
Newbie
Posts: 0
Joined: Wed Jul 20, 2022 11:00 pm

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

Post by amiablegoat »

I have run into similar issues trying to run the picosdk-python-wrappers in anaconda 3 on Windows 10. I'm running 64-bit python version 3.9.12. When I try to run "from picosdk.ps4000a import ps4000a as ps", I get the "[Error 193] %1 is not a valid Win32 application" seen by other posters.

I have been trying to change my sys.path in python to include all directories containing SDK libraries and all directories containing picosdk-python-wrappers python scripts. I have also tried messing with my Windows environment variables. Does PicoTech have updated advice on how to order the directories in the python sys.path and in windows environment variables?

Thanks in advance!

azahonero
Newbie
Posts: 0
Joined: Wed Dec 21, 2022 12:02 pm

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

Post by azahonero »

I have run into similar issues trying to run the picosdk-python-wrappers in anaconda 3 on Windows 10. I'm running 64-bit python version 3.9.12. When I try to run "from picosdk.ps4000a import ps4000a as ps", I get the "[Error 193] %1 is not a valid Win32 application" seen by other posters.
Same here, changing sys.path didn't work. I'm using:
* Spyder version: 5.1.5
* Python version: 3.9.12 64-bit
* Operating System: Windows 10
If I can't make it work I'm planning on reinstalling python, but don't want to cause the delay it may cause, so is there any other way to solve the error? Thanks in advance.

hsienian
Newbie
Posts: 0
Joined: Sat Jun 10, 2023 8:01 am

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

Post by hsienian »

I also encountered the same problem, and after removing the picoSDK32-bit, I was able to resolve the issue successfully.

Post Reply