Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SystemExit #358

Open
onlinehuazai opened this issue Dec 18, 2021 · 5 comments
Open

SystemExit #358

onlinehuazai opened this issue Dec 18, 2021 · 5 comments

Comments

@onlinehuazai
Copy link

Could not open URL. Please check your internet connection and/or ssl settings
If you are using proxy, make sure your proxy settings is configured correctly
An exception has occurred, use %tb to see the full traceback.

@NicolasGrosjean
Copy link

Hi @onlinehuazai

The user agent was changed on the Joeclinton1 fork, it can maybe solve your issue like it is just before the exit.

headers = {}
headers[
    'User-Agent'] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
if cur_version >= version:  # If the Current Version of Python is 3.0 or above
    try:
        req = urllib.request.Request(url, headers=headers)
        resp = urllib.request.urlopen(req)
        respData = str(resp.read())
    except:
        print("Could not open URL. Please check your internet connection and/or ssl settings \n"
              "If you are using proxy, make sure your proxy settings is configured correctly")
        sys.exit()

See #298 to install it.

@onlinehuazai
Copy link
Author

Hi @onlinehuazai

The user agent was changed on the Joeclinton1 fork, it can maybe solve your issue like it is just before the exit.

headers = {}
headers[
    'User-Agent'] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
if cur_version >= version:  # If the Current Version of Python is 3.0 or above
    try:
        req = urllib.request.Request(url, headers=headers)
        resp = urllib.request.urlopen(req)
        respData = str(resp.read())
    except:
        print("Could not open URL. Please check your internet connection and/or ssl settings \n"
              "If you are using proxy, make sure your proxy settings is configured correctly")
        sys.exit()

See #298 to install it.

it do not work

@NicolasGrosjean
Copy link

Like the error message says, you can display the full traceback to have more details.

If you use a proxy, do not forget to indicate it by adding --proxy ip:port to the command.

If it is an SSL issue, you can try to install again Python.

@onlinehuazai
Copy link
Author

Like the error message says, you can display the full traceback to have more details.

If you use a proxy, do not forget to indicate it by adding --proxy ip:port to the command.

If it is an SSL issue, you can try to install again Python.

Tahnk you. I do not have a proxy, so I can not use this project?

@NicolasGrosjean
Copy link

NicolasGrosjean commented Dec 18, 2021

You can use this project without proxy.

In fact the part of this project which simply query an url to get its content fails for you.
A possible cause of this issue is if you use a proxy to have not indicated in the command arguments.

So if you don't use proxy, the issue is probably in ssl settings.
If installing again Python and the project don't solve the issue, you need to display the traceback to have an error message to search on the internet the solution.
Do not hesitate to post the traceback here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants