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

--update-database flag is broken #6

Open
Ohadbasan opened this issue Nov 27, 2023 · 0 comments
Open

--update-database flag is broken #6

Ohadbasan opened this issue Nov 27, 2023 · 0 comments

Comments

@Ohadbasan
Copy link

Ohadbasan commented Nov 27, 2023

Hello!

I am trying to initialize the db

python src/preprocess.py --update_database

INFO:__main__:Updating database
INFO:__main__:Downloading from https://sponsor.ajay.app/database/sponsorTimes.csv
Traceback (most recent call last):
  File "/Users/ohadbasan/sponsorblock-ml/src/preprocess.py", line 979, in <module>
    main()
  File "/Users/ohadbasan/sponsorblock-ml/src/preprocess.py", line 529, in main
    if download_file(mirror, raw_dataset_path):
  File "/Users/ohadbasan/sponsorblock-ml/src/preprocess.py", line 497, in download_file
    total_bytes = int(r.headers['Content-Length'])
  File "/Users/ohadbasan/code/orchestration/venv/lib/python3.10/site-packages/requests/structures.py", line 52, in __getitem__
    return self._store[key.lower()][1]
KeyError: 'content-length'

it looks like the link https://sponsor.ajay.app/database/sponsorTimes.csv is not operational

here is a fix
#7

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

1 participant