jpetzke / AutoGPT-YouTube

A plugin for AutoGPT that allows various operations on YouTube, such as downloading Videos
MIT License
128 stars 23 forks source link

Resource punkt not found #16

Closed tobalsan closed 1 year ago

tobalsan commented 1 year ago

Used a simple prompt:

Transcribe the video at <youtube_url

Got this message:

SYSTEM:  Command get_youtube_transcript returned: Error: ********************************************************************** Resource punkt not found. 
Please use the NLTK Downloader to obtain the resource: >>> import nltk >>> nltk.download('punkt')  
For more information see: https://www.nltk.org/data.html Attempted to load tokenizers/punkt/PY3/english.pickle Searched in: - '/home/ubuntu/nltk_data' - '/home/ubuntu/.pyenv/versions/3.11.3/nltk_data' - '/home/ubuntu/.pyenv/versions/3.11.3/share/nltk_data' - '/home/ubuntu/.pyenv/versions/3.11.3/lib/nltk_data' - '/usr/share/nltk_data' - '/usr/local/share/nltk_data' - '/usr/lib/nltk_data' - '/usr/local/lib/nltk_data' - '' **********************************************************************

Any idea why it complains about this?

jpetzke commented 1 year ago

Just do as the message says in a command line. You need to download some resources

DimDroll commented 1 year ago

Don't mean to necro-post, but if you're running it in docker, it's better to fix it by adding:

nltk.download('punkt')

To the code, see here: https://github.com/jpetzke/AutoGPT-YouTube/issues/22#issuecomment-1637065304