Bibliothek wird unter IDLE nicht gefunden
Verfasst: Montag 31. Mai 2010, 15:03
Hallo
Ich mache gerade die ersten Schritte in Python und stolpere bereits beim Tutorial
Ich benutze Python 3.1.2 (Installiert unter "C:\Programme\Python31")
Folgender Code läuft in der Console einwandfrei...
In IDLE aber bekomme ich folgende Fehlermeldung
Was fehlt mir da?
Bestimmt fehlt mir nur etwas kleines.
Besten Dank für eure Hilfe
Andrea
Ich mache gerade die ersten Schritte in Python und stolpere bereits beim Tutorial

Ich benutze Python 3.1.2 (Installiert unter "C:\Programme\Python31")
Folgender Code läuft in der Console einwandfrei...
Code: Alles auswählen
import logging
LOG_FILENAME = '/tmp/logging_example.out'
logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG)
logging.debug('This message should go to the log file')
Code: Alles auswählen
Traceback (most recent call last):
File "H:\DATEN\Testtool\Python\logging.py", line 1, in <module>
import logging
File "H:\DATEN\Testtool\Python\logging.py", line 4, in <module>
logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG)
AttributeError: 'module' object has no attribute 'basicConfig'
Bestimmt fehlt mir nur etwas kleines.
Besten Dank für eure Hilfe
Andrea