I am attempting to use python scripts as a service and as a pre-post process script but in either case but I am getting the below response along with my initial request.
“message”: “Executed command returned with error code: 1”,
This error occurs with any type of python code (including the sample code). Nodejs and PHP are working correctly.
raise ValueError(‘Hello Python’);
I have set the confirmed both Python3 (3.5) and Python are set paths.
I have added the below to my .env file and /etc/environment
I have confirmed that this is the actual location of the python executables.
I’ve installed munch using pip3 (confirmed installation in python3.5/site-packages)
I’ve restarted apache2 and
php artisan cache:clear
php/php artisan config:clear