Chipwhisperer 5 - Unable to import chipwhisperer module


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 Traceback (most recent call last)
----> 1 import chipwhisperer as cw
3 scope = cw.scope()
4 scope.gain.db = 25
5 scope.adc.samples = 129

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.


It was not that I was using python 2.7, but instead it was because I was following the wrong instructions ( 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

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.