https://bugzilla.wikimedia.org/show_bug.cgi?id=59970
Web browser: ---
Bug ID: 59970
Summary: Show clearer error on non-recursive clone
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: valhallasw(a)arctus.nl
Classification: Unclassified
Mobile Platform: ---
If someone uses 'git clone https://..../pywikibot-core' or -compat, instead of
'git clone --recursive', the bot doesn't work, due to httplib2 missing (-core)
and i18n missing (core and compat). However, the errors are less than clear:
Core
----
Traceback (most recent call last):
File "C:\rewrite\pwb.py", line 123, in <module>
tryimport_pwb()
File "C:\rewrite\pwb.py", line 30, in tryimport_pwb
import pywikibot
File "C:\rewrite\pywikibot\__init__.py", line 412, in <module>
from .page import Page, ImagePage, Category, Link, User, ItemPage,
PropertyP
age, Claim
File "C:\rewrite\pywikibot\page.py", line 17, in <module>
import pywikibot.site
File "C:\rewrite\pywikibot\site.py", line 32, in <module>
from pywikibot import pagegenerators
File "C:\rewrite\pywikibot\pagegenerators.py", line 31, in <module>
from pywikibot.comms import http
File "C:\rewrite\pywikibot\comms\http.py", line 35, in <module>
import queue as Queue
ImportError: No module named queue
Compat
------
Traceback (most recent call last):
File "replace.py", line 970, in <module>
main()
File "replace.py", line 636, in main
{'description': u''})
File "/home/valhallasw/src/pwb/compat-svn/trunk/pywikibot/i18n.py", line 336,
in twtranslate
transdict = getattr(__import__("i18n", {}, {}, [package]), package).msg
ImportError: No module named i18n
In both cases, we should check for the existance of the externals, and respond
with a clear error message otherwise.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=61084
Web browser: ---
Bug ID: 61084
Summary: Category.articles(startFrom='A') does not start from
'A'
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: info(a)gno.de
Classification: Unclassified
Mobile Platform: ---
sample:
>>> import pwb
>>> import pywikibot
>>> title = u'Wikipedia former featured articles'
>>> site = pywikibot.Site('en')
>>> cat = pywikibot.Category(site, title)
>>> x = cat.articles(startFrom='A')
>>> x.next()
Page(Talk:"Weird Al" Yankovic)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=61024
Web browser: ---
Bug ID: 61024
Summary: cosmetic changes must not remove useless spaces inside
templates
Product: Pywikibot
Version: compat (1.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Cosmetic changes
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: info(a)gno.de
Classification: Unclassified
Mobile Platform: ---
see
https://de.wikipedia.org/wiki/Benutzer_Diskussion:Xqt#.C3.84nderungen_in_Ur…
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55127
Web browser: ---
Bug ID: 55127
Summary: core hangs on killed http(s) connection
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1657/
Reported by: valhallasw
Created on: 2013-08-22 15:14:10.237000
Subject: core hangs on killed http(s) connection
Original description:
Steps to reproduce:
>>> p = pywikibot.Page(pywikibot.getSite('nl', 'wikipedia'), 'Wikipedia')
>>> p.get()
# now kill the connection, e.g. using tcpview in windows
>>> p = pywikibot.Page(pywikibot.getSite('nl', 'wikipedia'), 'Wikipedia')
>>> p.get()
# hangs
Expected result:
pywikibot reconnects and executes the .get()
Actual result:
complete hang (deadlock?)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=60406
Web browser: ---
Bug ID: 60406
Summary: site.loadrevisions(): None is returned in no Page
param is passed
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: mpaa.wiki(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Passing revids without Page parameter does not return anything.
Since there is no use case for not passing the Page object, it should be made
mandatory and docstring updated.
Try:
>>> import pywikibot
>>> s = pywikibot.Site('nl', 'wikipedia')
>>> s.loadrevisions(revids=[39557838, 39484879])
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54539
Web browser: ---
Bug ID: 54539
Summary: Remove error-prone invalid-char exception
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/patches/623/
Reported by: gallaecio
Created on: 2013-08-03 21:14:53.303000
Subject: Remove error-prone invalid-char exception
Original description:
The code removed by this patch was preventing me from loading the following
page:
http://techbase.kde.org/Localization/fy/Fryske_kompjûterwurden
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54415
Web browser: ---
Bug ID: 54415
Summary: claimit.py: enable claim with the same property, but
different value
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/349/
Reported by: apac1
Created on: 2013-09-15 16:15:03.602000
Subject: claimit.py: enable claim with the same property, but different value
Original labels: claimit.py, wikidata, enhancement, python, pywikibotOriginal
description:
The below can be added to claimit.py to enable adding statements on items with
the same property, but different values.
https://github.com/wikimedia/pywikibot-core/blob/master/scripts/claimit.py
:::python
for claim in self.claims:
if claim.getID() in item.get().get('claims'):
propertytoadd = claim.getID()
for valueofproperty in item.claims[propertytoadd]:
if valueofproperty.getTarget() ==
claim.getTarget():
pywikibot.output("item for %s has already
property %s with value %s" % (page.title(), propertytoadd,
valueofproperty.getTarget()))
break
else:
continue
else:
pywikibot.output('Adding additional %s --> %s' %
(claim.getID(), claim.getTarget()))
item.addClaim(claim)
else:
pywikibot.output('Adding %s --> %s'
% (claim.getID(), claim.getTarget()))
item.addClaim(claim)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54542
Web browser: ---
Bug ID: 54542
Summary: Add multiple values for a claim
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/patches/620/
Reported by: felixreimann
Created on: 2013-07-03 13:43:43.303000
Subject: Add multiple values for a claim
Original description:
Wikidata: The attached patch allows to add additional values even if the claim
is already there.
Before, editClaim either adds the claim and the value if the item does not
contain the claim yet or changes the value of the claim. Sometimes, however,
additional values are needed.
This is enabled with the force_add parameter which is False per default and
thus, the prior behavior of the method is unchanged if not otherwise specified.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54566
Web browser: ---
Bug ID: 54566
Summary: New option "-no" to djvutext.py
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/patches/539/
Reported by: aronsson
Created on: 2012-03-12 14:40:15
Subject: New option "-no" to djvutext.py
Original description:
djvutext.py adds OCR text to books in Wikisource. Some books already have text
for some pages, but not for others. The "-no" flag added by this patch only
adds new pages, but doesn't alter the text for any existing pages. \(At any
such question, it answers "no" automatically.\)
--
You are receiving this mail because:
You are the assignee for the bug.