jpetzke / AutoGPT-YouTube

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

nltk required #20

Open GoZippy opened 1 year ago

GoZippy commented 1 year ago

Adding this plugin I ran into this error

File "plugins\AutoGPT-YouTube.zip\AutoGPT-YouTube\src\autogpt_youtube\youtube_functions.py", line 2, in <module>
ModuleNotFoundError: No module named 'nltk'

so I did

pip install -U nltk

now it seems to work

GoZippy commented 1 year ago

suggest add to requirements

DimDroll commented 1 year ago

Also, it seems like you need to add following line to the src/autogpt_youtube/youtube_functions.py to make it work too: nltk.download('punkt')

Otherwise it would complain: Resource punkt not found. Please use the NLTK Downloader to obtain the resource: >>> import nltk >>> nltk.download('punkt')