Rudloff / alltube

Web GUI for youtube-dl
GNU General Public License v3.0
2.94k stars 584 forks source link

Error when starting the app: Can't find Python at /usr/bin/python #370

Closed v-bulynkin closed 2 years ago

v-bulynkin commented 2 years ago

Error when starting the app: Can't find Python at /usr/bin/python

Your environment

docker-compose (nginx+python and php) Please answer these questions when reporting a new issue:

What is your operating system (Windows, Linux, OSX, etc.)? Alpine Linux What is your web server (Apache, IIS, etc.)? nginx What version of AllTube are you using? 3.0.0 How did you install AllTube (with Git or with a release package)? release package What version of PHP are you using? 7.4 What version of Python are you using? 3.9.5 What version of youtube-dl are you using? Didn't come to this point Do you get any PHP-related errors in your webserver's logs? No - php log is empty What is the content of your config/config.yml file? didn't touch it Please provide the URL of a video that causes the issue. Nothing to provide

Describe your issue

After starting containers, when I try to open Alltube in browser, there is an error: Error when starting the app: Can't find Python at /usr/bin/python

At the same time, Python 3 is installed and symbolic link set (ln -s /usr/bin/python3.9 /usr/bin/python). Moreover, if I go to nginx+python container and run /usr/bin/python, it starts:

/etc/nginx # /usr/bin/python
Python 3.9.5 (default, May 12 2021, 20:44:22)
[GCC 10.3.1 20210424] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

How to help Alltube to find Python? Thanks.

v-bulynkin commented 2 years ago

Sorry for disturbing, Python must be installed not into nginx container, but into php container.