Category : process

I’m running a process using Laravel which relies on Symfony Process component as follow. $process= new Process([‘binary’, "username", "password"]); $process->setTimeout(3600); $process->run(); It works fine excepted when a parameter contains special characters which are interpreted by the shell. When I run my process directly in shell I have the exact same issue. If I escape parameters ..

Read more

I am trying to run a python script from laravel using process but it is not working. My code: $process = new Process([‘C:/Users/hrish/AppData/Local/Programs/Python/Python39/python.exe’, ‘C:xampphtdocsNMovieRSystemappModelstop_movies.py’]); $process->run(); if (!$process->isSuccessful()) { throw new ProcessFailedException($process); } Error: SymfonyComponentProcessExceptionProcessFailedException The command ""C:/Users/hrish/AppData/Local/Programs/Python/Python39/python.exe" C:xampphtdocsNMovieRSystempublictop_movies.py" failed. Exit Code: 1(General error) Working directory: C:xampphtdocsNMovieRSystempublic Output: ================ Error Output: ================ Fatal Python error: _Py_HashRandomization_Init: ..

Read more