Python throwing an SSL error with an app (_ssl.c:1006)

Hi!

I try to get an app working that use SSL.
It isn’t a major thing, but it’s just more an annoyance since I should have everything working.

Here is the error code it gives me:
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>

But I should have all the required Python installed:
https://0x0.st/Hgdo.txt

I double checked so my ca-certificates was installed and up to date and it was. It’s just this Python application that doesn’t work for me. Is it some symlink I need? I googled and only found for MacOS so I got confused and once again ask this nice community for help!

EDIT: Here is some updates

>>> import certifi
>>> print(certifi.where())
/usr/lib/python3.11/site-packages/certifi/cacert.pem

cacert.pem -> /etc/ssl/certs/ca-certificates.crt

So it do point towards the correct place.

What is the application and what URL is it trying to access?

The software is called “Pixelflasher” and the url it try to fetch from is https://codeload.github.com/TheFreeman193/PIFS/zip/refs/heads/main

If you check line 2421 here you will see the url.

Here is all the steps it does when you press a button to download PIFS in PixelFlasher:

Traceback (most recent call last):
  File "pif_manager.py", line 529, in onFreemanPif
  File "runtime.py", line 2422, in get_freeman_pif
  File "urllib/request.py", line 216, in urlopen
  File "urllib/request.py", line 519, in open
  File "urllib/request.py", line 536, in _open
  File "urllib/request.py", line 496, in _call_chain
  File "urllib/request.py", line 1391, in https_open
  File "urllib/request.py", line 1351, in do_open
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>

EDIT: Of course when I build Pixelflasher myself it works instead of the prebuild.

Doing an update. It seems I spoke to soon. It didn’t work after a clean test.

How are you installing it?

I just download the precompiled version from his Github. It’s originally made for Ubuntu 22.04.

Try the AUR package. It will include all the dependencies you need and then your AUR helper will keep it updated.

I think I have to do that. He pushed out a new release for me and another person using Garuda and it works now.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.