#๐Ÿ”’ openssl issues?

11 messages ยท Page 1 of 1 (latest)

sly cloak
#

hello, I don't use python much, but I am trying to follow along with an api tutorial, and I needed to import requests. The code was ```import requests
import json

requests.get(
'http:///api.stackexchange.com/2.3/questions?order=desc&sort=activity&site=stackoverflow')

print(response). I got this error: Traceback (most recent call last):
File ".\apipractice.py", line 1, in <module>
import requests
File "C:\Users\user\OneDrive\Desktop\pythonpractice\myenv\lib\site-packages\requests_init_.py", line 43, in <module>
import urllib3
File "C:\Users\user\OneDrive\Desktop\pythonpractice\myenv\lib\site-packages\urllib3_init_.py", line 42, in <module>
"urllib3 v2.0 only supports OpenSSL 1.1.1+, currently "
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0j 20 Nov 2018'. See: https://github.com/urllib3/urllib3/issues/2168``` How am I getting this error? I have followed along with a few Python tutorials, did they have me install an old thing called OpenSSL which is impeding with the library/libraries I needed to download? I only got this computer a year or 1.5 years ago, I don't know why I have something from 2018. Can anyone help me make sense of this? It's always been my nightmare that I'd do too many tutorials, mess up my pc's configuration/s with stuff, and never be able to fix it ๐Ÿ˜ฆ

buoyant yachtBOT
#

Hey @sly cloak!

It looks like you pasted Python code without syntax highlighting.

Please use syntax highlighting to improve the legibility of your code and make it easier for us to help you.

To do this, use the following method:
```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
You can **edit your original message** to correct your code block.
buoyant yachtBOT
#

@sly cloak

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

vivid forge
#

perhaps you need a newer Python?

sly cloak
vivid forge
#

Python 3.7 and 3.8 have both reached their end of life

#

can't you find anything more recent?

limber nest
#

yeahh

#

use something like python3.10 or python3.11 or python3.12

buoyant yachtBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.