ich habe derzeit ein Problem mit Python:
Ich habe eine Datei, die nur eine Zeile Code enthält
Code: Alles auswählen
import xml.etree.ElementTree as ET
Was ist genau der Fehler? Neustart hat nicht geholfen.Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 1519, in _find_and_load_unlocked
AttributeError: 'module' object has no attribute '__path__'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\user\Documents\eclipse\erstes-projekt\src\xml.py", line 6, in <module>
import xml.etree.ElementTree as ET
File "C:\Users\user\Documents\eclipse\erstes-projekt\src\xml.py", line 6, in <module>
import xml.etree.ElementTree as ET
ImportError: No module named 'xml.etree'; xml is not a package