Setuptools: certificate verification failing


#1

I’m attempting to create a new build of Night River, but there seems to be a problem with the build system retrieving the Panda wheel.

Specifically:

I’m running the build-system with the following terminal command:

python3 setup.py bdist_apps

The system indicates that it’s gathering wheels, and that it’s collecting panda3d. However, at this point it starts producing the following error:

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)'),)': /simple/opt/panda3d/

This repeats until the value after “total=” has reached “0”, at which point it uses a cached wheel; looking at the output from attempting to update Panda, it looks like it’s using the 1.10.2 wheel that I installed via “pip3”.

This does appear to work, producing the following output:

  Using cached https://files.pythonhosted.org/packages/6b/25/86b6af4f42409b5624678311fe6b915f2342b056ca27aba37712c059f692/panda3d-1.10.2-cp36-cp36m-manylinux1_x86_64.whl
  Saved ./build/__whl_cache__/panda3d-1.10.2-cp36-cp36m-manylinux1_x86_64.whl
Successfully downloaded panda3d
Could not find an optimized wheel (using index https://archive.panda3d.org/simple/opt) for platform: manylinux1_x86_64
Building runtime for platform: manylinux1_x86_64

Before continuing on.

But of course, as it notes, the wheel that it’s using is presumably not an optimised one.


#2

Ouch, looks like the cert expired yesterday.

As it happens, I was in the process of moving over the files to the new server, which happens to already have the new cert; I’ll just have to expedite that process.

In the meantime, you could explicitly add the non-SSL version of the index by adding --extra-index-url http://archive.panda3d.org/simple/opt in a new line to your requirements.txt.


#3

Ah, fair enough, and thank you! :slight_smile:

There’s no hurry on my end, I think–I’ll just wait for the move to the new server to be done. :slight_smile:


#4

I’m now seeing a “ReadTimeoutError”. Is the move to the new server still underway, or is this a new problem?

The full error:

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='archive.panda3d.org', port=443): Read timed out. (read timeout=15)",)': /simple/opt/panda3d/

(Unlike the last error, it seems to show this one only once.)


#5

I think it was just taking a while to regenerate all the md5 hashes.

I do see there are no optimized wheels listed for v1.10.2 yet though. I’ll take care of that and report back.


#6

Fair enough, and thank you for doing so! I appreciate it! :slight_smile:


#7

I think this should be sorted now. Let me know if not.


#8

It looks like it’s working! (I haven’t done a full build yet, as I’m partway through work on a new feature. However, I let the build-system start, and the download seemed to start successfully begin before I cancelled it.)

Thank you very much for your work, and for letting me know that this was working again! :slight_smile: