ChipWhisperer Install ERROR

During the Install of ChipWhisperer, on WINDOWS 10 Pro, doing these commands:
python -m pip install -e .
python -m pip install -r jupyter/requirements.txt
I receive this error below.
How can i fix this ?

Collecting PyCryptoDome
Using cached pycryptodome-3.15.0.tar.gz (4.5 MB)
Preparing metadata (setup.py) … error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
Γöé exit code: 1
Γò░ΓöÇ> [21 lines of output]
Testing support for clang
Traceback (most recent call last):
File “”, line 36, in
File “”, line 34, in
File “C:\Users\123456\AppData\Local\Temp\pip-install-8o13x08a\pycryptodome_70a2e39d44b149399fff4af5d4624b4c\setup.py”, line 488, in
set_compiler_options(package_root, ext_modules)
File “C:\Users\123456\AppData\Local\Temp\pip-install-8o13x08a\pycryptodome_70a2e39d44b149399fff4af5d4624b4c\compiler_opt.py”, line 341,
in set_compiler_options
clang = compiler_is_clang()
File “C:\Users\123456\AppData\Local\Temp\pip-install-8o13x08a\pycryptodome_70a2e39d44b149399fff4af5d4624b4c\compiler_opt.py”, line 251,
in compiler_is_clang
return test_compilation(source, msg=“clang”)
File “C:\Users\123456\AppData\Local\Temp\pip-install-8o13x08a\pycryptodome_70a2e39d44b149399fff4af5d4624b4c\compiler_opt.py”, line 82, i
n test_compilation
objects = compiler.compile([fname], extra_postargs=extra_cc_options)
File “C:\CHIP\WPy64-38123\pypy3.8-v7.3.9-win64\lib\site-packages\setuptools_distutils_msvccompiler.py”, line 361, in compile
self.initialize()
File “C:\CHIP\WPy64-38123\pypy3.8-v7.3.9-win64\lib\site-packages\setuptools_distutils_msvccompiler.py”, line 241, in initialize
vc_env = _get_vc_env(plat_spec)
File “C:\CHIP\WPy64-38123\pypy3.8-v7.3.9-win64\lib\site-packages\setuptools\msvc.py”, line 316, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
File “C:\CHIP\WPy64-38123\pypy3.8-v7.3.9-win64\lib\site-packages\setuptools\msvc.py”, line 271, in _msvc14_get_vc_env
“Unable to find vcvarsall.bat”
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https:
//visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
Γò░ΓöÇ> See above for output.

Hi,

What Python version are you using (python --version)?

Alex

$ python --version
Python 3.8.12 (0089b4a7ab2306925a251b35912885d52ead1aba, Mar 16 2022, 13:51:04)
[PyPy 7.3.9 with MSC v.1929 64 bit (AMD64)]

Do you have a PyPy version of Python instead of a regular Cython install? I’d imagine some packages won’t have binary builds for that, so you’ll either need to install a Cython build or install Visual Studio to be able to build the packages.

Alex

I first followed the AUTOMATED Windows install, but it failed. So, i then followed the MANUAL instructions, and installed Python from there. Are you suggesting that I un-install Python version listed here ? If so, what Python version should i install ?

Ah sorry, I didn’t realize WinPython has Python versions for both PyPy and Cython; it seems to be something they do inconsistently. The WinPython 3.10 release from 2022-02 should work - I’m currently on 3.10.5 myself.

I’ll get the documentation updated so that’s clear.

Alex

how do i configure the ChipWhisperer to run the WinPython3.10 release rather than pypy ?

Try this link instead: WinPython - Browse /WinPython_3.10/3.10.5.0 at SourceForge.net. That’s on https://winpython.github.io/ below the PyPy releases.

I deleted the previous pypy, then unzipped&copied the release you provided instead.
Then resumed with the rest of the WINDOWS Manual install steps(after the Python instructions).
The Jupyter Lab0 ran ok :slight_smile:

QUESTION#1: When i ran Lab0 (see LOG file is below), Do you know WHAT the ERROR messages are there ?


$ cd ~/chipwhisperer
python -m jupyter notebook
[I 23:03:16.554 NotebookApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyri
ght, python-language-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-jso
n-languageserver-bin, yaml-language-server
[I 23:03:17.003 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.4.1
[I 2022-09-29 23:03:17.383 LabApp] JupyterLab extension loaded from C:\CHIP\WPy64-31050\python-3.10.5.amd64\lib\site-packages\jupyterlab
[I 2022-09-29 23:03:17.383 LabApp] JupyterLab application directory is C:\CHIP\WPy64-31050\python-3.10.5.amd64\share\jupyter\lab
[I 23:03:19.805 NotebookApp] Serving notebooks from local directory: C:\Users\C32740\chipwhisperer
[I 23:03:19.805 NotebookApp] Jupyter Notebook 6.4.12 is running at:
[I 23:03:19.805 NotebookApp] http://localhost:8888/?token=c080306a44f8093804578f5322807c95b0b1a2c5ef70940e
[I 23:03:19.805 NotebookApp] or http://127.0.0.1:8888/?token=c080306a44f8093804578f5322807c95b0b1a2c5ef70940e
[I 23:03:19.805 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 23:03:19.875 NotebookApp]

To access the notebook, open this file in a browser:
    file:///C:/Users/C32740/AppData/Roaming/jupyter/runtime/nbserver-9400-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/?token=c080306a44f8093804578f5322807c95b0b1a2c5ef70940e
 or http://127.0.0.1:8888/?token=c080306a44f8093804578f5322807c95b0b1a2c5ef70940e

[W 23:04:12.105 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.118 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.212 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.219 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.304 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.315 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.362 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.372 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.476 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.483 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:17.939 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:17.948 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.215 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.228 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.329 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.336 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.380 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.394 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.442 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.453 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.560 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.567 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:19.070 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:19.078 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:19.507 NotebookApp] 404 GET /nbextensions/pydeck/extension.js?v=20220929230253 (::1) 6.980000ms referer=http://localhost:8888/notebooks/jupyter/0%20-%20Introduction%20to%20Jupyter%20Notebooks.i
pynb
[I 23:04:20.100 NotebookApp] 302 GET /notebooks/jupyter/img/typehint.png (::1) 15.950000ms
[I 23:04:20.136 NotebookApp] Kernel started: f4ee142f-b948-48a8-9028-69319c16e456, name: python3
[W 23:04:20.152 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20220929230253 (::1) 4.970000ms referer=http://localhost:8888/notebooks/jupyter/0%20-%20Introduction%20to%20Jupyter%
20Notebooks.ipynb
[IPKernelApp] ERROR | No such comm target registered: jupyter.widget.control
[IPKernelApp] WARNING | No such comm: bea68c1d-9539-4e9d-8627-71d96a73b524
[I 23:06:19.898 NotebookApp] Saving file at /jupyter/0 - Introduction to Jupyter Notebooks.ipynb
[IPKernelApp] WARNING | No such comm: d88cb2da2bd34cc8975eee9dd18e769f
[I 23:08:19.904 NotebookApp] Saving file at /jupyter/0 - Introduction to Jupyter Notebooks.ipynb
[I 23:10:19.897 NotebookApp] Saving file at /jupyter/0 - Introduction to Jupyter Notebooks.ipynb
[I 23:12:19.878 NotebookApp] Saving file at /jupyter/0 - Introduction to Jupyter Notebooks.ipynb
[I 23:14:19.907 NotebookApp] Saving file at /jupyter/0 - Introduction to Jupyter Notebooks.ipynb
[I 23:16:19.881 NotebookApp] Saving file at /jupyter/0 - Introduction to Jupyter Notebooks.ipynb
[I 23:17:34.917 NotebookApp] Starting buffering for f4ee142f-b948-48a8-9028-69319c16e456:1802f7e199924c9088c3f8cf15cb3483
[I 07:22:14.257 NotebookApp] Restoring connection for f4ee142f-b948-48a8-9028-69319c16e456:1802f7e199924c9088c3f8cf15cb3483
[I 07:22:14.448 NotebookApp] Saving file at /jupyter/0 - Introduction to Jupyter Notebooks.ipynb

QUESTION#2)) When i did WINDOWS manual install, it said add “IT” to the system path.


The question is, does it need the PATH of the entire parent Python folder(shown in RED below), or the Python sub-folder in the Python parent folder ?

Here is pic that goes with QUESTION#2 that goes with the previous post above.

image

QUESTION#3)) When running the “ChipWhisperer Setup Test”,
at this link: h ttp://localhost:8888/notebooks/jupyter/ChipWhisperer%20Setup%20Test.ipynb
I see an ERROR (BOLDED in partial text shown below).
WHAT should i do to correct this error ?

$ cd ~/chipwhisperer
python -m jupyter notebook
[I 23:03:16.554 NotebookApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyri
ght, python-language-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-jso
n-languageserver-bin, yaml-language-server
[I 23:03:17.003 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.4.1
[I 2022-09-29 23:03:17.383 LabApp] JupyterLab extension loaded from C:\CHIP\WPy64-31050\python-3.10.5.amd64\lib\site-packages\jupyterlab
[I 2022-09-29 23:03:17.383 LabApp] JupyterLab application directory is C:\CHIP\WPy64-31050\python-3.10.5.amd64\share\jupyter\lab
[I 23:03:19.805 NotebookApp] Serving notebooks from local directory: C:\Users\C32740\chipwhisperer
[I 23:03:19.805 NotebookApp] Jupyter Notebook 6.4.12 is running at:
[I 23:03:19.805 NotebookApp] http://localhost:8888/?token=c080306a44f8093804578f5322807c95b0b1a2c5ef70940e
[I 23:03:19.805 NotebookApp] or http://127.0.0.1:8888/?token=c080306a44f8093804578f5322807c95b0b1a2c5ef70940e
[I 23:03:19.805 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 23:03:19.875 NotebookApp]

To access the notebook, open this file in a browser:
    file:///C:/Users/C32740/AppData/Roaming/jupyter/runtime/nbserver-9400-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/?token=c080306a44f8093804578f5322807c95b0b1a2c5ef70940e
 or http://127.0.0.1:8888/?token=c080306a44f8093804578f5322807c95b0b1a2c5ef70940e

[W 23:04:12.105 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.118 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.212 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.219 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.304 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.315 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.362 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.372 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.476 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:12.483 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:17.939 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:17.948 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.215 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.228 NotebookApp] Config option template_path not recognized by ExporterCollapsibleHeadings. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.329 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.336 NotebookApp] Config option template_path not recognized by TocExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.380 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.394 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.442 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.453 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.560 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:18.567 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:19.070 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:19.078 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: extra_template_paths, template_name, template_paths?
[W 23:04:19.507 NotebookApp] 404 GET /nbextensions/pydeck/extension.js?v=20220929230253 (::1) 6.980000ms referer=http://localhost:8888/notebooks/jupyter/0%20-%20Introduction%20to%20Jupyter%20Notebooks.i
pynb
[I 23:04:20.100 NotebookApp] 302 GET /notebooks/jupyter/img/typehint.png (::1) 15.950000ms
[I 23:04:20.136 NotebookApp] Kernel started: f4ee142f-b948-48a8-9028-69319c16e456, name: python3
[W 23:04:20.152 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20220929230253 (::1) 4.970000ms referer=http://localhost:8888/notebooks/jupyter/0%20-%20Introduction%20to%20Jupyter%
20Notebooks.ipynb
[IPKernelApp] ERROR | No such comm target registered: jupyter.widget.control
[IPKernelApp] WARNING | No such comm: bea68c1d-9539-4e9d-8627-71d96a73b524
[I 23:06:19.898 NotebookApp] Saving file at /jupyter/0 - Introduction to Jupyter Notebooks.ipynb
[IPKernelApp] WARNING | No such comm: d88cb2da2bd34cc8975eee9dd18e769f
[I 23:08:19.904 NotebookApp] Saving file at /jupyter/0 - Introduction to Jupyter Notebooks.ipynb
[I 23:10:19.897 NotebookApp] Saving file at /jupyter/0 - Introduction to Jupyter Notebooks.ipynb

  1. / 3.: As per [IPKernelApp] ERROR | No such comm target registered: jupyter.widget.control · Issue #3454 · jupyter-widgets/ipywidgets · GitHub, this is a harmless error and can be ignored.
  2. You just need the files in the Python subfolder (the ones circled in brown)

Alex