Install of Software with Ubuntu problem

I just began setting up my CW-Lite, and when setting up the openadc and CW software encountered a problem. I used the git repository and installed per the install guide at newae.com/sidechannel/cwdocs/installing.html.

When running CWAnalyzer.pyw and CWCapture.pyw from the software folder I got the following error:

“ImportError: No module named openadc.ExtendedParameter”

I also tried running the included example of the openadc software and got:
“ImportError: No module named openadc.qt”

I added the folder that has ExtendedParameters.py and qt.py to my path in bashrc, but am still getting the errors.

Could someone please point me in the right direction?

Thanks!

Jack

Hi Jack,

It sounds like this step didn’t take:

cd ../openadc/controlsw/python
sudo python setup.py develop

You can try by running Python, then doing an “import openadc” and see if that works? If that is working there might be some other error…

Regards,

-Colin

Thank you for the reply Colin!

Unfortunately this did not fix the issue. I re-ran the setup.py as instructed, and when I open python from that directory it is able to import openadc. However, when I run the openadc/controlsw/python/example python script it fails to find openadc and import openadc.qt. I also tried running CWAnalyzer.pyw and it fails to import openadc.ExtendedParameters.

I imagine that python or the script is not looking in the right place for the modules qt and Extended Parameters, which appear to be in:

chipwhisperer/openadc/controlsw/python/openadc

My setup is ubuntu 15, running primarily anaconda python 2.7.10.

Kind regards,

Jack

Hello,

If you run the python command from another directory does it fail to find the ‘openadc’? This is some sort of new error for me… the ‘setup’ command should have told your Python installation where to find those files.

Will try installing anaconda python on a test system to see if there is something specific to that and report back.

When I run python and import openadc it does not throw an error, but when i try to import, for example, ExtendedParameters, i get an error that it cannot find the module.

Do you have a pip freeze or list of the versions/requirements of each of the modules you used for chipwhisperer? I am thinking of making a virtual environment with all of the same versions to see if that works.

regards,

Jack

Hello,

I’m using Python-2.7.9, here is a quick pip freeze results of one of my machines, sorry this includes everything installed with WinPython too so don’t need everything on this list:

adodbapi==2.6.0.7
alabaster==0.7.3
apsw==3.9.2.post1
astroid==1.3.6
Babel==1.3
backports.ssl-match-hostname==3.4.0.2
baresql==0.7.1
BeautifulSoup==3.2.1
beautifulsoup4==4.3.2
binwalk==2.0.0
brewer2mpl==1.4.1
certifi==2015.4.28
cffi==0.9.2
chipwhisperer==0.1
click==4.0
colorama==0.3.3
configobj==5.0.6
configparser==3.5.0b2
cvxopt==1.1.7
cx-Freeze==4.3.4
Cython==0.22
db.py==0.4.1
decorator==3.4.2
docopt==0.6.2
docutils==0.12
enum34==1.0.4
Flask==0.10.1
fonttools==2.4
formlayout==1.0.15
fpdf==1.7.2
ftd2xx===git1
funcsigs==0.4
ggplot==0.6.5
guidata==1.6.2
guiqwt==2.3.2
h5py==2.5.0
husl==4.0.2
ipython==3.1.0
ipython-sql==0.3.5
itsdangerous==0.24
jedi==0.8.1
Jinja2==2.7.3
joblib==0.8.4
jsonschema==2.4.0
julia==0.1.1.8
llvmlite==0.4.0
lmfit==0.8.3
logilab-common==0.63.2
logutils==0.3.3
lxml==3.4.4
mahotas==1.2.4
MarkupSafe==0.23
matplotlib==1.4.3
mistune==0.5.1
mpld3==0.2
myhdl==0.8.1
mysql-connector-python==2.0.3
networkx==1.9.1
nltk==3.0.2
nose==1.3.6
numba==0.18.2
numexpr==2.4.3
numpy==1.9.2
numpydoc==0.5
oct2py==3.1.0
openadc==0.1
pandas==0.16.1
patsy==0.3.0
pep8==1.6.2
pg8000==1.10.2
-e picoscope==0.1
Pillow==2.8.1
pkginfo==1.2.1
Polygon2==2.0.7
prettytable==0.7.2
psutil==2.2.1
PuLP==1.5.9
pybars3==0.9.1
pycairo==1.8.10
pycparser==2.12
pycrypto==2.6
pyflakes==0.8.1
Pygments==2.0.2
pygobject==2.26.0
pygtk==2.22.0
pyhdf==0.8.3
pylint==1.4.3
PyMeta3==0.5.1
pymongo==3.0.1
pyodbc==3.0.9
PyOpenGL==3.1.0
pyparsing==2.0.3
PyQt4==4.11.3
PyQtdesignerplugins==1.1
pyqtgraph==0.9.10
PyQwt==5.2.1
pyscard==1.9.1
pyserial==2.7
PySide==1.2.2
python-dateutil==2.4.2
pytz==2015.2
pyusb==1.0.0b2
PyVISA==1.8
pywin32==219
PyYAML==3.11
pyzmq==14.6.0
redis==2.10.3
reportlab==3.1.44
requests==2.7.0
rope==0.10.2
rpy2==2.5.6
runipy==0.1.3
scikit-image==0.11.3
scikit-learn==0.16.1
scilab2py==0.6
scipy==0.15.1
seaborn==0.5.1
simplejson==3.6.5
singledispatch==3.4.0.3
six==1.9.0
snowballstemmer==1.2.0
Sphinx==1.3.1
sphinx-rtd-theme==0.1.8
spyder==2.3.4
SQLAlchemy==1.0.4
sqlite-bro==0.8.8
sqlparse==0.1.15
statsmodels==0.6.1
sympy==0.7.6
tables==3.2.0
Theano==0.7.0
tornado==4.1
tqdm==1.0
TTFQuery==1.0.5
twine==1.5.0
ViTables==2.1
VPython==5.74
Werkzeug==0.10.4
wheel==0.24.0
winpython==1.1
xlrd==0.9.3
XlsxWriter==0.7.2

The ExtendedParameters error is odd, as that is just part of the regular OpenADC files, so I’ve no idea why it would fail to find it.

Will still setup a test on my system here with Anaconda distribution as would like to be able to recreate this error.

Regards,

-Colin

Well I set up an Anaconda virtual environment and tried to install the same versions from your pip freeze. After re-building the CW package it still has the same problem as before. I will try again with a fresh ubuntu install in a virtualbox next.

J

Hmm… this is an odd problem, sorry to have such a hassle! Haven’t had a chance yet (been a busy few weeks sorry) to finish hunting down the root cause, let me know if you get anywhere, will hopefully be testing this shortly.