https://bugzilla.wikimedia.org/show_bug.cgi?id=60206
Web browser: ---
Bug ID: 60206
Summary: site.preloadpages does not preload all links and
templates
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: ---
When in def preloadpages(self, pagelist, groupsize=50, templates=False,
langlinks=False) templates=True and langlinks=True, not all lnks/templates are
returned.
import pywikibot
site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'Main Page')
for p in site.preloadpages([page], templates=True, langlinks=True):
pass
print 'p._templates', len(page._templates)
print 'p._langlinks', len(page._langlinks)
They are actually more, see
https://en.wikipedia.org/w/api.php?maxlag=5&format=jsonfm&rvprop=ids|flags|…
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=60564
Web browser: ---
Bug ID: 60564
Summary: casechecker: pagename is not recognized for edit
summary
Product: Pywikibot
Version: unspecified
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: ---
After retrieving pages via pagegenerators the base page is no longer known but
passed to the summary format string. It must be extracted from localargs
options.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=58818
Web browser: ---
Bug ID: 58818
Summary: PYWP-10 Login needed for reading site, causing
NoUsername exceptions
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: blocker
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: wmf.bugconverter(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
This issue was converted from https://jira.toolserver.org/browse/PYWP-10.
Summary: Login needed for reading site, causing NoUsername exceptions
Issue type: Bug - A problem which impairs or prevents the functions of the
product.
Priority: Blocker
Status: Open
Assignee: Merlijn van Deen <valhallasw(a)arctus.nl>
On Fri, 21 Jan 2011 22:18:49, Merlijn van Deen <valhallasw(a)arctus.nl> opened
the following bug:
> (pwbde)valhallasw@dorthonion:~/src/pwbde/pwb-
> flat/branches/rewrite/scripts$ cat test.py from pywikibot import
> Page, Site print Page(Site('de', 'wikipedia'), 'test').site
> (pwbde)valhallasw@dorthonion:~/src/pwbde/pwb-
> flat/branches/rewrite/scripts$ python test.py Traceback (most recent
> call last): File "test.py", line 2, in <module> print
> Page(Site('de', 'wikipedia'), 'test').site File
> "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/page.py", line 94, in site
> return self._link.site File "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/page.py", line 2358, in site
> self.parse() File "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/page.py", line 2341, in parse if
> self._site.case() == 'first-letter': File
> "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/site.py", line 970, in case
> return self.siteinfo['case'] File "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/site.py", line 964, in siteinfo
> self._getsiteinfo() File "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/site.py", line 921, in _getsiteinfo
> sidata = sirequest.submit() File "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/data/api.py", line 219, in submit
> self.site.login(False) File "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/site.py", line 703, in login
> user=self._username[sysop]) File "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/__init__.py", line 124, in wrapper
> return method(*__args, **__kw) File "/home/valhallasw/src/pwbde
> /pwb-flat/branches/rewrite/pywikibot/__init__.py", line 124, in
> wrapper return method(*__args, **__kw) File
> "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/login.py", line 105, in __init__
> 'wiki_code': self.site.code}) pywikibot.exceptions.NoUsername:
> ERROR: Username for wikipedia:de is undefined. If you have an
> account for that site, please add a line to user-config.py:
> usernames['wikipedia']['de'] = 'myUsername'
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55039
Web browser: ---
Bug ID: 55039
Summary: add xml to weblinkchecker.py
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/299/
Reported by: beta16
Created on: 2012-03-05 18:09:14
Subject: add xml to weblinkchecker.py
Original description:
Pywikipedia trunk/pywikipedia/ \(r9951, 2012/03/01, 14:12:57\)
Python 2.7.2 \(default, Jun 12 2011, 15:08:59\) \[MSC v.1500 32 bit \(Intel\)\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok
It's possible to run the weblinkchecker.py with -xml parameter. Or read the
externallinks.sql.gz file?
Thanks\!
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=58815
Web browser: ---
Bug ID: 58815
Summary: PYWP-18 Add support for WebCite to weblinkchecker.py
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: major
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: wmf.bugconverter(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
This issue was converted from https://jira.toolserver.org/browse/PYWP-18.
Summary: Add support for WebCite to weblinkchecker.py
Issue type: Bug - A problem which impairs or prevents the functions of the
product.
Priority: Major
Status: Open
Assignee: Merlijn van Deen <valhallasw(a)arctus.nl>
On Tue, 17 Jan 2012 04:32:05, Jeff G. <jeff-wmj(a)usclec.net> opened the
following bug:
> "weblinkchecker.py only checks Wayback. Could you add support for
> WebCite?" per
> http://en.wikipedia.org/wiki/Wikipedia:Bots/Requests_for_approval/PhuzBot
> as posted in edit
> http://en.wikipedia.org/w/index.php?title=Wikipedia:Bots/Requests_for_appro…
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=60278
Web browser: ---
Bug ID: 60278
Summary: Can't switch to admin account to delete while using
bot account
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: nullzero.free(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Suppose in my user-conf.py has
usernames[...][...] = mybot
sysopnames[...][...] = myaccount
In the past, I couldnormally wrote pages as a bot, and when I wanted to delete
a page, I just called page.delete(). Then, my bot and my account will be
switched automatically.
[[gerrit:101613]] breaks this functionality. It uses
self.site.logged_in(sysop=True) which always return false if the account which
logged in at first is a bot. Note that self.site.logged_in also appears in
redirect.py which now is not functional too (in the same topic). In my opinion,
self.site.logged_in should never be used in any place because it does not
consider other accounts in user-conf.py.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55193
Web browser: ---
Bug ID: 55193
Summary: Missing key in ['query-continue'] value
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
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/1469/
Reported by: xqt
Created on: 2012-06-21 13:22:11
Subject: Missing key in ['query-continue'] value
Assigned to: russblau
Original description:
c:\Pywikipedia\rw>pwb.py interwiki.py -auto -cleanup -async
-usercontribs:Xqt -namespace:0 -namespace:14 -verbose
Pywikipediabot r10326 2012-06-08 12:08:53Z
Python 2.7.3 \(default, Apr 10 2012, 23:24:47\) \[MSC v.1500 64 bit \(AMD64\)\]
Starting 1 threads...
Found 1 wikipedia:de processes running, including this one.
NOTE: Number of pages queued is 0, trying to add 60 more.
Retrieving 50 pages from wikipedia:de.
Missing 'revisions|info|categoryinfo|templates|langlinks' key in
\['query-continue'\] value.
Retrieving 10 pages from wikipedia:de.
Missing 'revisions|info|categoryinfo|templates|langlinks' key in
\['query-continue'\] value.
NOTE: \[\[de:Peja \(Ort\)\]\] is redirect to \[\[de:Pec\]\]
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55134
Web browser: ---
Bug ID: 55134
Summary: Suppress warning from getcurrenttimestamp()
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/1641/
Reported by: nu11zer0
Created on: 2013-07-10 17:50:45.220000
Subject: Suppress warning from getcurrenttimestamp()
Original description:
Since r11686, some warnings appear in my log, including "WARNING API warning
(parse): No 'title' or 'contentmodel' was given, assuming wikitext." I examined
and found that the text comes from getcurrenttimestamp(). Just add
"contentmodel=wikitext" should suppress this message.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=60021
Web browser: ---
Bug ID: 60021
Summary: addSource and addQualifier return API error
Product: Pywikibot
Version: core (2.0)
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: kvardek_du(a)hotmail.fr
Classification: Unclassified
Mobile Platform: ---
item.addClaim(claim) perfectly works, but claim.addSource and
claim.addQualifier return API error :
File "pwb.py", line 135, in <module>
run_python_file(fn, argv, argvu)
File "pwb.py", line 67, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "cc.py", line 39, in <module>
claim.addQualifier(date)
File "/home/marin/appliext/kun2/data/pywikibot/page.py", line 3017, in
addQualifier
data = self.repo.editQualifier(self, qualifier, **kwargs)
File "/home/marin/appliext/kun2/data/pywikibot/site.py", line 720, in callee
return fn(self, *args, **kwargs)
File "/home/marin/appliext/kun2/data/pywikibot/site.py", line 3850, in
editQualifier
data = req.submit()
File "/home/marin/appliext/kun2/data/pywikibot/data/api.py", line 401, in
submit
raise APIError(code, info, **result["error"])
pywikibot.data.api.APIError: invalid-guid: Invalid claim guid
__version__ = '$Id: 2949fa22477edd2b209076d43b2ac1ef9575ff20 $' (downloaded in
early january)
code :
# -*- coding: utf-8 -*-
import pywikibot
import pickle
import sys
wpcom=unicode(sys.argv[1], 'utf-8')
wpcc=unicode(sys.argv[2], 'utf-8')
site = pywikibot.Site("fr", "wikipedia")
page = pywikibot.Page(site, wpcom)
pagecc = pywikibot.Page(site, wpcc)
item = pywikibot.ItemPage.fromPage(page)
itemcc = pywikibot.ItemPage.fromPage(pagecc)
site = pywikibot.Site("wikidata", "wikidata")
repo = site.data_repository()
dictionary = item.get()
dictionarycc = itemcc.get()
verif=dictionarycc['labels']['fr']
print "La commune est située dans la ", verif
#création de la déclaration principale (claim)
claim = pywikibot.Claim(repo, u'P131')
claim.setTarget(itemcc)
print claim
date = pywikibot.Claim(repo, u'P585')
wikidatevrai = pywikibot.WbTime(year=2013, month=1, day=1)
print "wikidatevrai :", wikidatevrai
date.setTarget(wikidatevrai)
tmp=date.getTarget()
print "tmp", tmp
print "date :", date
claim.addQualifier(date)
print claim
#création de la source
source1 = pywikibot.Claim(repo, u'P854')
source1.setTarget(u'Q2981593')
#qualificateur pour la source (?)
qualif1 = pywikibot.Claim(repo, u'P357')
qualif1.setTarget(u'base des EPCI à fiscalité propre au 1er janvier 2013')
#source1.addQualifier(qualif1)
qualif2 = pywikibot.Claim(repo, u'P577')
wikidatecons=pywikibot.WbTime(year=2013, month=8, day=28)
print wikidatecons
qualif2.setTarget(wikidatecons)
#source1.addQualifier(qualif2)
#claim.addSources(source1)
item.addClaim(claim)
Thank you.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=60221
Web browser: ---
Bug ID: 60221
Summary: Installation is broken
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: hazard_sj(a)yahoo.com
Classification: Unclassified
Mobile Platform: ---
I've attempted to reinstall pywikibot (core) on multiple occasions on Tool Labs
recently, and I keep getting the following when I attempt to use it:
local-hazard-bot@tools-login:~$ python
Python 2.7.3 (default, Sep 26 2013, 20:03:06)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pywikibot
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pywikibot
>>>
The issue also happens for me on Toolserver.
--
You are receiving this mail because:
You are the assignee for the bug.