Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Use Youtube-dl with Flask and uWSGI #23849
Comments
|
As you've already mentioned this is most likely |
|
@dstftw Thanks for your reply. I am not really sure how to edit that PATH. This is my Systemd Unit File for WSGI (/etc/systemd/system/myproject.service):
Is this the path I should change? And this one includes the permissions (~/myproject/myproject.ini):
|
Checklist
Question
I have got a Flask application with a Virtual Environment using uWSGI in Nginx. (Ubuntu 18.04)
I want to download an MP3 using Youtube-dl when accessing a route /test
Case 1: If I run the same program from the terminal, it executes successfully.
Case 2: If I access the route, the program fails with an error telling me to install ffmpeg
Case 3: If I access another route that contains a subprocess to run a separate .py file, it also fails.
The error given by case 2 and 3:
My configuration is very simple as follows:
I have done the obvious:
I believe it is server / enviroment / uWSGI configuration to access ffmpeg from a route.
Would this be related to the PATH or Permissions? - Any suggestion on what should I look at?
I followed this tutorial to configure my server, may this is useful.
https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uswgi-and-nginx-on-ubuntu-18-04