Hier die Fehlermeldung in /var/log/capisuite.error:
Ich habe in der betreffenden Datei in /usr/lib/python2.5/_strptime.py folgende Zeilen gefunden:Mon Jan 10 10:17:16 2011 Pythonscript /usr/lib/capisuite/idle.py,idle,0x822c2e0: A python error occured. See traceback below.
Mon Jan 10 10:17:16 2011 Pythonscript 0x822c2e0: Python traceback: Traceback (most recent call last):
Mon Jan 10 10:17:16 2011 Pythonscript 0x822c2e0: Traceback: File "/usr/lib/capisuite/idle.py", line 88, in idle
Mon Jan 10 10:17:16 2011 Pythonscript 0x822c2e0: Traceback: starttime=(time.strptime(control.get("GLOBAL","starttime")))[0:8]+(-1,)
Mon Jan 10 10:17:16 2011 Pythonscript 0x822c2e0: Traceback: File "/usr/lib/python2.5/_strptime.py", line 330, in strptime
Mon Jan 10 10:17:16 2011 Pythonscript 0x822c2e0: Traceback: (data_string, format))
Mon Jan 10 10:17:16 2011 Pythonscript 0x822c2e0: Traceback: ValueError: time data did not match format: data=Mon Jan 10 10:06:12 2011 fmt=%a %b %d %H:%M:%S %Y
Code: Alles auswählen
# IndexError only occurs when the format string is "%"
except IndexError:
raise ValueError("stray %% in format '%s'" % format)
Code: Alles auswählen
# set DST value to -1 (unknown), as strptime sets it wrong for some reason
starttime= (time.strptime(control.get("GLOBAL","starttime")))[0:8]+(-1,)
starttime=time.mktime(starttime)
if (starttime>time.time()):
fcntl.lockf(lockfile,fcntl.LOCK_UN)
lockfile.close()
os.unlink(sendq+job[:-3]+"lock")
continue
Hierzu habe ich im Internet vom Gernot Hillier, der die capisuite programmiert hat, folgenden Hinweis gefunden:
(Quelle: http://osdir.com/ml/linux.isdn.capisuit ... 00011.html)I just found the problem: Python has some bug (at least I think it's a bug)
which causes misinterpretation of daylight saving time conversion. This leads
to a delay of an hour before a fax is sent when you use the default scripts
of CapiSuite...
As I don't want to release a new version of CapiSuite every day, I just tell
you how to fix this here:
Please replace (about line 74) in idle.py
starttime=time.mktime(time.strptime(control.get("GLOBAL","starttime")))
with:
# set DST value to -1 (unknown), as strptime sets it wrong for some reason
starttime=(time.strptime(control.get("GLOBAL","starttime")))[0:8]+(-1,)
starttime=time.mktime(starttime)
If you have done this, please tell me if it works for you! Thx!
All versions released so far (0.4-0.4.1a) are affected by this problem. The
next release will certainly include this fix but it won't be released in the
next couple of days...
- --
Ciao,
Gernot
Leider habe ich keine Kontaktadresse, so dass ich ich Gernot (den Programmierer von capisuite) direkt fragen könnte, was aktuell anliegen könnte. Aber es sieht doch ganz danach aus als ob dieser „workaround“ nun nicht mehr funktioniert, weil bei Python etwas geändert wurde, so dass er nicht mehr oder anders notwendig ist.
Ich habe probeweise die oben angegebene Originalzeile wiederhergestellt, aber das hat lediglich bewirkt, dass keine Fehlermeldung mehr kommt, aber das Fax wurde auch nach über einer Stunde noch nicht verschickt.
Kann mir jemand einen Hinweis geben oder jemanden nennen, der mir vielleicht helfen könnte?
LG max4py