pyscripter / python4delphi

Free components that wrap up Python into Delphi and Lazarus (FPC)
MIT License
906 stars 310 forks source link

no OpenSSL_APPlink #440

Closed japri closed 11 months ago

japri commented 11 months ago
import requests

def fetch_https_url(url):
    try:
        response = requests.get(url)
        response.raise_for_status()  # Check whether the request was successful

        print("URL fetched successfully!")
        print("Response Content:")
        print(response.text)  # Printing the content of the page

    except requests.exceptions.HTTPError as errh:
        print(f"Http Error: {errh}")
    except requests.exceptions.ConnectionError as errc:
        print(f"Error Connecting: {errc}")
    except requests.exceptions.Timeout as errt:
        print(f"Timeout Error: {errt}")
    except requests.exceptions.RequestException as err:
        print(f"Oops: Something Else: {err}")

# Example usage:
fetch_https_url('https://www.example.com')

above codes will produce no OpenSSL_Uplink: no OpenSSL_APPlink, how to resolve?

pyscripter commented 11 months ago

"My code does not work" is not a valid issue submission. Please use the P4D support forum or in this case the python support forums.

Have you googled for "python no OpenSSL_APPlink"?

japri commented 11 months ago

i try to google it but it getting to technical without any working solutions, last i try to uninstall all python, miniconda, and fresh install python 3.11 and everything works.....

pyscripter commented 11 months ago

Good to know...