Category: symfony-process

SymfonyProcess package in Laravel (for python files)

I am trying to run python files in Laravel Project.Therefore, i use the SymfonyProcess package.My code looks like this: use SymfonyComponentProcessProcess; use SymfonyComponentProcessExceptionProcessFailedException; process = new Process([“python”,”C:xampphtdocsbackendScrapAnnouncementsScrap.py”]); $process->run(); When i use this line: throw new ProcessFailedException($process); my laravel project returns…