I used to have a stable version running of CW, but after updating to the newest version I keep getting the error:
OSError: [WinError 193] %1 is not a valid Win32 application, when trying to activate (or run) cw.
Also my old version of cw is not running anymore. Any idea why this is happening?
So i installed it via the windows installer, and I opened the command prompt. Which are the commands for connecting to the scope via this? The usual commands “import chipwhisprer as cw” and jupyter notebook did not work. It complained about invalid syntax
The really weird thing is that i manage to get stuff working in the git terminal by using python -c “import chipwhisperer as cw” and then python -m notebook. Then it opens up jupyter and it seems to be working. Lets see if I still get the same error…
IIRC that one is there because installing in a location where you don’t have write access (like Program Files) would cause errors. That one should be pretty evident as soon as you install.
The driver situation is a bit complicated. If you have the latest firmware update (0.21 on CWLite/Nano) and you don’t have any drivers installed for ChipWhisperer, it should automatically run with the correct drivers. The old drivers should work, but I’m currently investigating if that’s always true (works on my machine, but maybe not on others )
Now that you mention drivers, we did add a libusb dll since they wouldn’t be copied over to system32 when you installed drivers as in the past. That might be causing it. What’s your system configuration? Are you running 64-bit windows?
Feel free to give it a try, but I don’t think that’s your issue. Might still be worth a try though. This error I believe is due to a dll issue. Try opening that Winpython command prompt I mentioned in my first reply and run:
python setup.py develop
pip install --upgrade pyusb
When I run the commands above I get some error: ERROR: chipwhisperer 5.3.1 requires fastdtw, which is not installed.
Appart from that everything seems to be working. Appart from an old version of pip apparently