File "...\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

evet o dizinde dosye mevcut.


Dizin gösterimi doğru olmayabilir mi? üç nokta yerine iki nokta koysanız? Bir üst dizini göstermek istiyorsanız iki nokta koymanız lazım.
Şöyle
"..\subprocess.py"


tam hata aşağıdaki gibi, bu dizinde subprocess.py dosyası mevcut ama;
File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified


Ben mi yanlış anlıyorum, yoksa ortada bi karışıklık mı var?
python zaten "C:\ProgramData\Anaconda3\lib\subprocess.py" bu dosyayı buluyor. hatta okuyor bile. ve diyor ki "1178. satırda, _execute_child işlevinde sorun var hacı."
keşke 1170-1180 arasındaki satırları paylaşsan da bi baksak, napmaya çalışıyor.
Edit: subprocess.py "Anaconda"nın varsayılan modüllerinden biriymiş meğersem. ne yapmaya çalışıyor bu modül o satırlarda ona bakmak lazım. muhtemelen modülün hatalı kullanımı vs. gibi bi durum var.


1178. satır "# Child is launched" satırının iki üzerindeki satır tam.
if shell:
startupinfo.dwFlags |= _winapi.STARTF_USESHOWWINDOW
startupinfo.wShowWindow = _winapi.SW_HIDE
comspec = os.environ.get("COMSPEC", "cmd.exe")
args = '{} /c "{}"'.format (comspec, args)
# Start the process
try:
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
# no special security
None, None,
int(not close_fds),
creationflags,
env,
os.fspath(cwd) if cwd is not None else None,
startupinfo)
finally:
# Child is launched. Close the parent's copy of those pipe
# handles that only the child should have open. You need
# to make sure that no handles to the write end of the
# output pipe are maintained in this process or else the
# pipe will not close when the child process exits and the
# ReadFile will hang.
if p2cread != -1:
p2cread.Close()
if c2pwrite != -1:
c2pwrite.Close()
if errwrite != -1:
errwrite.Close()
if hasattr(self, '_devnull'):
os.close(self._devnull)
# Prevent a double close of these handles/fds from __init__
# on error.
self._closed_child_pipe_fds = True
# Retain the process handle, but close the thread handle
self._child_created = True
self._handle = Handle(hp)
self.pid = pid
_winapi.CloseHandle(ht)


@hier kommt die sonne, buraya baktım ama subprocess.py içinde linkteki gibi bişe bulamadım.


mesele subprocess.py'de değil, sizin yazdığınız py dosyasında. subprocess.py'nin, anaconda'nın bir metodu olduğunu sonradan fark ettim.
ne yapmaya çalışıyorsunuz bu subprocess.py'yi kullanarak, onu yazarsanız belki yardımcı olunabilir.


github.com
facebook sayfasından veri çekmek için buradaki scrape_data.py koduna bakıyorum. subprocess.py hatasında takılı kaldım :(
