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

error when runing download_glue_data.py #34

Open
amosrohe opened this issue Jun 26, 2024 · 0 comments
Open

error when runing download_glue_data.py #34

amosrohe opened this issue Jun 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@amosrohe
Copy link

🐛 Bug

Runing python download_glue_data.py --data_dir glue_data --tasks all get errors

it looks like the links in the code can't be accessed

error |  
code | 403
message | "Permission denied."

To Reproduce

Runing python download_glue_data.py --data_dir glue_data --tasks all

errors

C:\work\AIBenchmarking\app\I-BERT>py download_glue_data.py --data_dir glue_data --tasks all
Downloading and extracting CoLA...
Traceback (most recent call last):
File "C:\work\AIBenchmarking\app\I-BERT\download_glue_data.py", line 141, in
sys.exit(main(sys.argv[1:]))
File "C:\work\AIBenchmarking\app\I-BERT\download_glue_data.py", line 137, in main
download_and_extract(task, args.data_dir)
File "C:\work\AIBenchmarking\app\I-BERT\download_glue_data.py", line 47, in download_and_extract
urllib.request.urlretrieve(TASK2PATH[task], data_file)
File "C:\Users\a00646069\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 241, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "C:\Users\a00646069\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "C:\Users\a00646069\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 525, in open
response = meth(req, response)
File "C:\Users\a00646069\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 634, in http_response
response = self.parent.error(
File "C:\Users\a00646069\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 563, in error
return self._call_chain(*args)
File "C:\Users\a00646069\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 496, in _call_chain
result = func(*args)
File "C:\Users\a00646069\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

Code sample

Expected behavior

Environment

Python 3.10.2

Additional context

@amosrohe amosrohe added the bug Something isn't working label Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant