Quantcast
Channel: Active questions tagged feedparser - Stack Overflow
Viewing all articles
Browse latest Browse all 105

feedparser error in a brand new M1 MacOs machine with Ventura 13.6

$
0
0

In my brand new M1 machine I simply installed

  1. Python from the website (3.5.11)
  2. Visual Studio Code
  3. python3 -m pip install feedparser
  4. pip install certifi
  5. I verified CAs are present locally
  6. pip show certifi

Name: certifiVersion: 2023.7.22Summary: Python package for providing Mozilla's CA Bundle.Home-page: https://github.com/certifi/python-certifiAuthor: Kenneth ReitzAuthor-email: me@kennethreitz.comLicense: MPL-2.0Location: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packagesRequires:Required-by:

And if I created this code:

import feedparserrss_url = "https://news.google.com/rss"feed = feedparser.parse(rss_url)if feed.bozo == 0:    print("SSL certificate validation successful.")else:    print("SSL certificate validation failed.")    print("Error details:", feed.bozo_exception)

I receive

*SSL certificate validation failed.Error details: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)*

Now I found hundreds of old articles reporting issues about MacOs and Feedparser most of them resolving with installation or re-installatino of certifi.

Because the machine is new, no compatibilities issues, is there an exhaustive step by step for the latest versions of the Mac? Or can you point me to


Viewing all articles
Browse latest Browse all 105

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>