import os
from subprocess import run
os.chdir(os.path.dirname(__file__))
command = 'python3.10 uploadYoutube.py --file="blank.mp4" --title="Blank" --description="THIS IS YOUR BLANK VIDEO" --keywords="blank" --category="20" --privacyStatus="private"'
terminal_output = run(command, capture_output=True).stdout
print(terminal_output)
< /code>
Dies erzeugt den Fehler: < /p>
terminal_output = run(command, capture_output=True).stdout
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 1456, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Weiß jemand, wie ich diesen Fehler beheben könnte?
Ich erstelle derzeit eine Anwendung in Python, die die YouTube -Daten -API verwendet und den folgenden Codeblock enthält: < /p> [code]import os from subprocess import run os.chdir(os.path.dirname(__file__)) command = 'python3.10 uploadYoutube.py --file="blank.mp4" --title="Blank" --description="THIS IS YOUR BLANK VIDEO" --keywords="blank" --category="20" --privacyStatus="private"' terminal_output = run(command, capture_output=True).stdout print(terminal_output) < /code> Dies erzeugt den Fehler: < /p> terminal_output = run(command, capture_output=True).stdout File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 503, in run with Popen(*popenargs, **kwargs) as process: File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 971, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 1456, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified [/code] Weiß jemand, wie ich diesen Fehler beheben könnte?
Ich versuche, die Textdatei 'todos.txt' mit dem Verschieben von todos.txt in einen neuen Ordner namens Dateien zu lesen. Ich empfange einen Fehler:
while True:
user_action = input( Type add, show,...
Ich möchte fragen, warum, wenn ich versuche, die Bibliothek H2O in meinem Jupyter -Notizbuch auszuführen, Fehlermeldung FilenotFoundError: Das System kann den angegebenen Pfad nicht finden: 'C:...
Ich möchte fragen, warum, wenn ich versuche, die Bibliothek H2O in meinem Jupyter -Notizbuch auszuführen, Fehlermeldung FilenotFoundError: Das System kann den angegebenen Pfad nicht finden: 'C:...
Ich habe Probleme, meine Streamlit-App zu verwenden, da ein Problem mit dem Paket Streamlit-Card ist. Dies ist die Fehlermeldung, die ich sehe:
2023-12-04 11:07:31.911 ComponentRequestHandler: GET...
Vielleicht ist es das Problem mit der Ausgabe des Pakets? Der Fehler lautet wie folgt:
Using cached thejoker-1.2.2.tar.gz (130 kB)
Installing build dependencies: started
Installing build...