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

No module named 'yt_dlp' #11

Closed Catley94 closed 1 year ago

Catley94 commented 1 year ago

Hey - Tried to download a YouTube video by passing in the URL of the video, however as soon as it touches the script to potentially start looking at downloading, it errors out with the below:

`Welcome to Auto-GPT! run with '--help' for more information. Create an AI-Assistant: input '--manual' to enter manual mode. Asking user via keyboard... I want Auto-GPT to: Please download this YouTube video: https://www.youtube.com/watch?v=3reqAtnFpEs VDLGPT has been created with the following details: Name: VDLGPT Role: an autonomous agent that specializes in video downloading tasks, capable of efficiently and effectively downloading videos from various platforms. Goals:

I'm not very proficient (yet) in python, but it is a language that I'm currently learning on the side, so happy to help, if I find anything, I'll update this issue here, otherwise, if you know how to fix - please let me know :-)

EDIT: I can see the file "yt_dlp" under venv/bin/ so it's definitely there and also under venv/lib/yt_dlp.

jpetzke commented 1 year ago

It seems that you have not installed the package yt_dlp. Have you installed the requirements.txt

Catley94 commented 1 year ago

I did, I ran pip install -r requirements.txt

Is this the correct command?

reaganfry commented 1 year ago

I am having the same issue. Installed requirements.txt from the YT plugin folder, but getting same error message as above

joshua-philip commented 1 year ago

Make sure your PATH variable is set to your newest version of Python, and there arent multiple. If you have two versions, for example, 3.10 and 3.11, and the requirements were installed in the 3.11 folder, but you're program is using 3.10, it won't work. Double check you only have one version in your environment variables.

lilbishie commented 1 year ago

the requirements.txt installs "yt-dlp" and the init.py and youtube_download.py call for "yt_dlp".

reaganfry commented 1 year ago

Only have one PATH so I dont think is that. I tried changing the requirements.txt / youtubedownload.py from '' to '-' and it throws a syntax error

jpetzke commented 1 year ago

Can you show me the code snippet that is affected and the error message?

llfsdog commented 1 year ago

I'm also having the same problem, how can I fix it?