I wrote two different python scripts (python 3.10.4
) and it works on my Windows 10 PC, but not on a second one which I have here for testing, also Windows 10.
The problem is subprocess
and I have no clue what the problem could be. Any suggestions? The subprocess should convert some latex files in a pdf.
proc = subprocess.Popen(['pdflatex',newFilename])
proc.communicate()`
Console Feedbacks File1&File2:
proc = subprocess.Popen(['pdflatex', newFilename])
File "subprocess.py", line 966, in __init__
File "subprocess.py", line 1435, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified```
proc = subprocess.Popen(['pdflatex',newFilename])
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line
966, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line
1435, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified