Hello. I am using the chipwhisperer lite board along with the CW305.
I have installed CW5 via the git repo and through the latest release, and am getting this error either way when trying to run the PA_HW_CW305_1-Attacking_AES_on_an_FPGA tutorial in jupyter notebook.
ModuleNotFoundError: No module named âchipwhispererâ
I am using Ubuntu 18.04.2 LTS as my operating system. I have Python 2.7.15+ installed as alias python, Python 3.6.8 installed as alias python3. Both versions of python have jupyter notebooks installed. In jupyter notebooks, I am running the Python 3 kernel.
I have attached a picture as well to help show the error. Any ideas on what could possibly be causing this?
I should note that I do not have this problem on another computer that I use with the same operating system and settings. However, even though the tests on that computer run successfully, the results are erroneous compared to CW4. I posted this issue in a separate thread.
Hi, did you follow all the steps here? If your âpythonâ == python2.7, then youâll have to substitute âpython3â wherever you see âpythonâ in the installation instructions.
Jean-Pierre
It was not that I was using python 2.7, but instead it was because I was following the wrong instructions (https://wiki.newae.com/V5:Installing_ChipWhisperer). Thanks for linking the correct instructions!
Actually, just kidding. I am using several computers and got confused about which computer I was talking about. The computer that has the error upon âimport chipwhispererâ still has this error despite me reinstalling chipwhisperer using the better instructions. Any ideas?
Sounds like a Python installation problem.
Look at the output of:
import sys
sys.path
If you installed CW in develop mode as per the instructions, then you should see the path to CW in there (e.g. for me: 'c:\\users\\jp\\github\\cw_develop\\software').
Figure out why itâs not there. Did something go wrong when you ran python -m pip install -e . --user?
I think there is a verbose switch that will tell you exactly what itâs doing.
It seems that everything is correct in Python if Iâm understanding your instructions properly. I have downloaded Chipwhisperer 5 into a folder named âchipwhisperer5â, I believe that I have the correct folder added to sys path, specifically, â/home/jackie/chipwhisperer5/softwareâ
Python 3.6.8 (default, Oct 7 2019, 12:59:55)
[GCC 8.3.0] on linux
Type âhelpâ, âcopyrightâ, âcreditsâ or âlicenseâ for more information.
After playing around a bit, I saw that it looked like chipwhisperer loads fine in a python3 terminal. So I figured the issue was with Jupyter Notebooks, which it was. Even though it already had a Python3 kernel, it was not actually properly installed. I fixed it with the following commands:
However, I now have another error which I will post in a separate forum to keep things a bit more clean. In short, it throws an error about not having a languid when I try to set up the scope. Thanks for your advice!