SSL certificate error during “pip3 install joulescope”

I need the downsample logging capability

I can’t successfully get through the “install the dependencies” step documented in the readme file:

cd pyjoulescope_examples
pip3 install -r requirements.txt
``` https://github.com/jetperch/pyjoulescope_examples/blob/master/README.md

Please look at this screenshot:
https://drive.google.com/open?id=1Dt7O9nrsxpvNvgyCVrOBf8SqTn3ackMm

You'll note the unzipped folder was "joulescope_examples/...", and not "pyjoulescope_examples" as indicated in your readme file.

I had to move the "requirements.txt" file up to the joulescope_examples folder (it was one file back), and then I got all the failures indicated in the linked screenshot above.

Help, please?

Hi @audiobrian1 and welcome to the forum. Sorry to hear that the steps in the README aren’t working for you. You should not have to move around the files. Depending upon how you extract the zip file, you may have a folder “pyjoulescope_examples-master” which contains folders “bin” and “joulescope_examples”. You can keep the “requirements.txt” file in the original location alongside the README.md.

However, it looks like something is wrong with your python pip installation. First, lets make sure you have a good version of python:

python -VV
Python 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)]

You should have 3.6 or higher, but I recommend 3.7 or 3.8. You can download the latest version from python.org. Also make sure that you have the 64-bit version. pyjoulescope does not work with 32-bit Python or 32-bit Windows.

Assuming that works, let’s reinstall pyjoulescope:

pip3 uninstall joulescope
pip3 install -U joulescope matplotlib

You should see joulescope 0.8.14 installed.

Does this work? If not,

  1. What errors do you see?
  2. What is the output of: pip3 freeze

If it works, you should be able to run the examples:

python3 bin\capture_simple.py

Hi, Matt.

Thanks for the response, and the welcome!
“python -vv” reported “Python 3.8.3”, but it wasn’t the 64 bit version. I uninstalled the 32 bit version, and then installed the 64 bit version of Python, pathed it and the folder with “PIP3.exe” in it, and followed your uninstall/install instructions for Joulescope. I get the failure messages here:
https://drive.google.com/open?id=10deQbtynNt5do_cBHRve1MMDCCQ3B1zL

Next step?

Thanks.

Here’s the PIP3 freeze run attempt. It runs, but reports nothing:
https://drive.google.com/open?id=13C22kevoW-H9VjmWHaCvEyOhHVpVMxzR

Hi @audiobrian1

Something is not right about your pip3 install. The error is that it cannot verify the SSL certificate of pypi. I just installed Python 3.8.3 x64, and I verified that pip &pypi are working, at least for me:

>python -VV
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)]

>pip3 install --no-cache-dir joulescope
Collecting joulescope
  Downloading https://files.pythonhosted.org/packages/4f/45/c6cffbcb66c82801a909a37bee4f5d13bc62924955c99ad89e5aea2bd11c/joulescope-0.8.14-cp38-cp38-win_amd64.whl (488kB)
     |████████████████████████████████| 491kB 1.7MB/s
Collecting python-dateutil>=2.7.3 (from joulescope)
  Downloading https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227kB)
     |████████████████████████████████| 235kB ...
Collecting numpy>=1.15.2 (from joulescope)
  Downloading https://files.pythonhosted.org/packages/d0/1d/dcf7dec400df56c412f6e91824f21abd59e2295dfc0cf86146b61190885c/numpy-1.18.4-cp38-cp38-win_amd64.whl (12.8MB)
     |████████████████████████████████| 12.8MB 6.8MB/s
Collecting pymonocypher>=0.1.3 (from joulescope)
  Downloading https://files.pythonhosted.org/packages/a4/21/409fc03eb1d77694f6edc028989439d1e0a628cbde8796a6463104ce71fa/pymonocypher-3.1.0.0-cp38-cp38-win_amd64.whl (85kB)
     |████████████████████████████████| 92kB 5.8MB/s
Collecting pypiwin32>=223 (from joulescope)
  Downloading https://files.pythonhosted.org/packages/d0/1b/2f292bbd742e369a100c91faa0483172cd91a1a422a6692055ac920946c5/pypiwin32-223-py3-none-any.whl
Collecting psutil (from joulescope)
  Downloading https://files.pythonhosted.org/packages/86/fe/9f1d1f8c1c8138d42fc0e7c06ca5004e01f38e86e61342374d8e0fa919e4/psutil-5.7.0-cp38-cp38-win_amd64.whl (235kB)
     |████████████████████████████████| 245kB 6.4MB/s
Collecting six>=1.5 (from python-dateutil>=2.7.3->joulescope)
  Downloading https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl
Collecting pywin32>=223 (from pypiwin32>=223->joulescope)
  Downloading https://files.pythonhosted.org/packages/cf/06/0d55292927ada3f8516e437292d85e33d6f763dd2dcc6b95f62a91ad9740/pywin32-227-cp38-cp38-win_amd64.whl (9.1MB)
     |████████████████████████████████| 9.1MB 1.7MB/s
Installing collected packages: six, python-dateutil, numpy, pymonocypher, pywin32, pypiwin32, psutil, joulescope
Successfully installed joulescope-0.8.14 numpy-1.18.4 psutil-5.7.0 pymonocypher-3.1.0.0 pypiwin32-223 python-dateutil-2.8.1 pywin32-227 six-1.14.0
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

>python -m pip install --upgrade pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/43/84/23ed6a1796480a6f1a2d38f2802901d078266bda38388954d01d3f2e821d/pip-20.1.1-py2.py3-none-any.whl (1.5MB)
     |████████████████████████████████| 1.5MB 939kB/s
Installing collected packages: pip
  Found existing installation: pip 19.2.3
    Uninstalling pip-19.2.3:
      Successfully uninstalled pip-19.2.3
Successfully installed pip-20.1.1

Are your paths correct? Try:

> where python
> python -VV
> where pip3 

I get:

c:\>where python
C:\bin\Python3_8_3\python.exe
C:\Users\Matth\AppData\Local\Microsoft\WindowsApps\python.exe

c:\>python -VV
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)]

c:\>where pip3
C:\bin\Python3_8_3\Scripts\pip3.exe

Make sure that they all match what you expect.

A google search turns up some recommendations. Are you behind a corporate firewall that blocks connections? I normally would not recommend disabling SSL verification, but you can do that…

Another thought… do you also use Anaconda or another, older Python distribution? If so, you user site packages could be getting in the way. To display your site packages:

python -m site --user-site

In my opinion, site packages make things worse rather than better. Either use the global environment or a venv.

I also darkly remember having seen this pip3 SSL error (not JS related), which was caused by the company firewall. Sorry but I don’t remember the fix…

Hi, Matt.
No, mine installed in a different location. See screenshot:

https://drive.google.com/file/d/1tSG4EkEJp0ezsFQqTQIM3ExugqQhT7I6/view?usp=sharing

Is that a problem?

I’m checking with IT on the possible firewall issues. More later …

No Anaconda package is on this machine. I intentionally deleted older Python installs (including the mistakened 32-bit installs that I mentioned earlier) before the latest Python 3.8.3 64 bit installation.

For some reason, I cannot access the screenshot on google drive. Assuming your IT department does not block the feature, you can just add the screenshot images directly to the forum post by dragging and dropping or clicking the upload button.

Oh wow. Didn’t know I could do that!

Ok. You installed python for yourself only rather than all users, but that should be fine. Can you try:

You can then open that path in File Explorer and ensure that it is empty. Assuming it’s empty, the problem is likely with IT. This StackOverflow discussion has some tips on how to deal with it, if you are ok with disabling SSL. If not, let me know, and we’ll figure something else out.

By the way, did you have any issues with installing the Joulescope UI given your IT policies?

No, I had no issues with installing the UI program. I have admin privileges.

That path doesn’t exist on this PC.

The roaming folder is there, but not the Python folder in this place.

Ok. So something is wrong with SSL certificate validation. Are you comfortable disabling SSL validation as discussed in the StackOverflow discussion? Something like:

pip3 install --trusted-host pypi.python.org joulescope matplotlib

Hi, Matt.
Our IT department did some adjustments for this machine, and now the install works! Thanks!

I’ll be deleting all these install - related posts to clean up the topic; don’t think they would be helpful to anyone else.

1 Like

Great! I have made a note to document what to do if you get CERTIFICATE_VERIFY_FAILED when using pip to install the joulescope package.

I moved these posts to a new topic.