Last modified: 2013-10-16 06:08:51 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57208, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55208 - invalid literal found for minutesDiff
invalid literal found for minutesDiff
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
interwiki.py (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:43 UTC by Kunal Mehta (Legoktm)
Modified: 2013-10-16 06:08 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:43:57 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
Comment 1 xqt 2013-10-15 15:50:16 UTC
timestamps format has been changed this month and there where a fix for wikipedia.py (see Gerrit change #88235). Should be confirmed.
Comment 2 Mpaa 2013-10-15 19:01:25 UTC
(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.
Comment 3 Mpaa 2013-10-15 19:34:34 UTC
(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.
Comment 4 Gerrit Notification Bot 2013-10-15 19:43:45 UTC
Change 89985 had a related patch set uploaded by Mpaa:
Bug 55208 - invalid literal found for minutesDiff

https://gerrit.wikimedia.org/r/89985
Comment 5 Gerrit Notification Bot 2013-10-16 06:08:03 UTC
Change 89985 merged by jenkins-bot:
Bug 55208 - invalid literal found for minutesDiff

https://gerrit.wikimedia.org/r/89985

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links