AttributeError: Das Objekt 'module' hat kein Attribut 'call': Python
Ich bin neu in Python und weiß nicht, was hier los ist. Ich habe versucht viel zu suchen, musste aber am Ende hier nachfragen
Ich versuche, Unterprozess zu lernen, der einen einfachen Befehl ausführt als:
import subprocess
subprocess.call(['ls'])
Jetzt, wenn ich das Programm starte, bekomme ich folgende Fehlermeldung:
Traceback (most recent call last):
File "subprocess.py", line 1, in <module>
import subprocess
File "/task/subprocess.py", line 2, in <module>
subprocess.call(['ls'])
AttributeError: 'module' object has no attribute 'call'