Last modified: 2013-10-16 06:08:51 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1418/ Reported by: xqt Created on: 2012-03-10 11:43:20 Subject: invalid literal found for minutesDiff Original description: Timestamps seems to be different. Trace: Dump cu \(wikipedia\) appended. Traceback \(most recent call last\): File "C:\pwb\trunk\interwiki.py", line 2573, in <module> main\(\) File "C:\pwb\trunk\interwiki.py", line 2547, in main bot.run\(\) File "C:\pwb\trunk\interwiki.py", line 2287, in run self.queryStep\(\) File "C:\pwb\trunk\interwiki.py", line 2265, in queryStep subj.finish\(self\) File "C:\pwb\trunk\interwiki.py", line 1699, in finish time.gmtime\(\)\)\) File "C:\pwb\trunk\interwiki.py", line 1567, in minutesDiff int\(time1\[6:8\]\)\) \* 24 + int\(time1\[8:10\]\)\) \* 60 + \ ValueError: invalid literal for int\(\) with base 10: '3-' Updating page \[\[tr:Kaplan\]\] via API version.py: C:\pwb\trunk Pywikipedia trunk/pywikipedia/ \(r9974, 2012/03/09, 11:08:24\) Python 2.7.2 \(default, Jun 12 2011, 14:24:46\) \[MSC v.1500 64 bit \(AMD64\)\] config-settings: use\_api = True use\_api\_login = True unicode test: ok
timestamps format has been changed this month and there where a fix for wikipedia.py (see Gerrit change #88235). Should be confirmed.
(In reply to comment #1) > timestamps format has been changed this month and there where a fix for > wikipedia.py (see Gerrit change #88235). Should be confirmed. Timestamp has the expected format, I think this bug can be closed.
(In reply to comment #2) > (In reply to comment #1) > > timestamps format has been changed this month and there where a fix for > > wikipedia.py (see Gerrit change #88235). Should be confirmed. > > Timestamp has the expected format, but type is mismatched in minutesDiff (long expected instead of int). Fix on its way.
Change 89985 had a related patch set uploaded by Mpaa: Bug 55208 - invalid literal found for minutesDiff https://gerrit.wikimedia.org/r/89985
Change 89985 merged by jenkins-bot: Bug 55208 - invalid literal found for minutesDiff https://gerrit.wikimedia.org/r/89985