Lokal_Profil added a comment.

Is my .err content related to this (solved by the patch)?

WARNING: WbQuantity now expects a 'site' parameter. This is needed to ensure correct handling of error bounds.
WARNING: WbQuantity now expects a 'site' parameter. This is needed to ensure correct handling of error bounds.
Traceback (most recent call last):
  File "elobot-no-user-interaction-1-month.py", line 60, in elobot
    elo_claim.setTarget(pywikibot.WbQuantity(rating))
  File "/mnt/nfs/labstore-secondary-tools-project/elobot/core/pywikibot/__init__.py", line 680, in __init__
    self.upperBound = self.amount + upperError
UnboundLocalError: local variable 'upperError' referenced before assignment

I am running

Pywikibot: [https] r-pywikibot-core.git (1f05e6f, g7627, 2016/11/22, 21:46:01, n/a)
Release version: 3.0-dev
requests version: 2.2.1

on tool labs...

See T150210. In short to support non-wikidata wikibase installations you have to pass a site object to WbQuantitiy. There is a patch to remove the need for this but someone needs to review and merge.


TASK DETAIL
https://phabricator.wikimedia.org/T151092

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Multichill, Lokal_Profil
Cc: Wesalius, Lokal_Profil, aude, TerraCodes, Luke081515, Jay8g, hoo, Ladsgroup, Lydia_Pintscher, Aklapper, Multichill, pywikibot-bugs-list, daniel, D3r1ck01, Izno, Wikidata-bugs, Ricordisamoa, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to