I am trying to run Python Django app via supervisor with below configuration file.
[program:test3]
command=python manage.py runserver
directory=/home/ubuntu/code/example/current/project/
stdout_logfile=/var/log/test3.log
stderr_logfile=/var/log/test3.log
user=ubuntu
environment=PATH="/home/ubuntu/code/example/bin/",PROJECT_ENV="dev"
autostart=true
autorestart=true
startsecs=10
stopwaitsecs=600e
autorestart=true
startsecs=10
stopwaitsecs=600
After running I was able to see there are 2 python process running at the moment.
ubuntu 29853 0.1 2.0 354468 41196 ? Sl 11:33 0:00 python manage.py runserver
ubuntu 29860 1.1 3.4 516944 69768 ? Sl 11:33 0:04 /home/ubuntu/code/analytics/bin/python manage.py runserver
I have mentioned the log file under supervisord config file and was able to see the below error in "/var/log/test3.log".
Error:
ImportError: No module named pyspark.ml.evaluation
I have already fulfilled all pip requirements in the directory.
Any idea?