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

For those with SSL issues here is the fix: #46

Open
EdwardBurgin opened this issue Oct 12, 2023 · 1 comment
Open

For those with SSL issues here is the fix: #46

EdwardBurgin opened this issue Oct 12, 2023 · 1 comment

Comments

@EdwardBurgin
Copy link

Heres the error message:

urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:1131)>
      Fetching trec_eval from http://github.com/usnistgov/trec_eval/archive/v9.0.8.tar.gz.

On our proxy we only have a http and https is passed through this, on newer urllib3 this I have read causes a problem.
The fix creates an unsecured connection, without SSL: edit the file: /pytrec_eval/setup.py

import ssl
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE

response = urllib.request.urlopen(REMOTE_TREC_EVAL_URI, context = ctx)
@colabear-info
Copy link

Another solution:

download the file http://github.com/usnistgov/trec_eval/archive/v9.0.8.tar.gz somewhile else, unzip it into the root folder of the git and rename it to trec_eval.

The dataset structure will be like

  • pytrect_eval
    • setup.py
    • trec_eval/

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