title: Symfony\Process package in Laravel (for python files)
body: <p>I am trying to run python files in Laravel Project.Therefore, i use the Symfony\Process package.My code looks like this:</p>
  <pre><code>use Symfony\Component\Process\Process;
  use Symfony\Component\Process\Exception\ProcessFailedException;
  
  $process = new Process([&quot;python&quot;,&quot;C:\xampp\htdocs\backend\Scrape\AnnouncementsScrape.py&quot;]);
  $process-&gt;run();
  </code></pre>
  <p>When i use this line:</p>
  <pre><code>throw new ProcessFailedException($process);
  </code></pre>
  <p>my laravel project returns error (I use laravel framework for my backend in my mobile app, so i can not see the exactly error; i can only see that there is problem with my backend)</p>
  <p>Το sum up, i run the code above, but the Process is not successfull.
  I check it with the condition:</p>
  <pre><code>if ($process-&gt;isSuccessful())
  </code></pre>
  <p>Anyone any idea?</p>