https://bugzilla.wikimedia.org/show_bug.cgi?id=66561
Bug ID: 66561
Summary: Add 'upload' method to ImagePage
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Keywords: easy
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: valhallasw(a)arctus.nl
Web browser: ---
Mobile Platform: ---
We have site.upload, but no direct method on the ImagePage object. It would
make sense to do page.upload(...) instead of site.upload(page, ...).
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=66445
Bug ID: 66445
Summary: Change in action=expandtemplates
Product: Pywikibot
Version: core (2.0)
Hardware: All
URL: http://lists.wikimedia.org/pipermail/mediawiki-api-ann
ounce/2014-June/000058.html
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: maarten(a)mdammers.nl
Web browser: ---
Mobile Platform: ---
"With Gerrit change 136799 <https://gerrit.wikimedia.org/r/#/c/136799/>, the
old output format for action=expandtemplates and the generatexml parameter
are deprecated, but will continue to be used for existing queries.
Clients should begin using the new 'prop' parameter to
action=expandtemplates, to be ready for some future date when the
deprecated format and parameter are removed. There is no timeline on this
removal, but it will be announced well in advance to this list.
This change will be deployed to WMF wikis with 1.24wmf8, see
https://www.mediawiki.org/wiki/MediaWiki_1.24/Roadmap for the schedule.
This is not considered a breaking change, since the old queries will
continue to work with a deprecation warning.
"
Has been deployed.
I'm getting a nice:
"WARNING: API warning (expandtemplates): Because no values have been specified
for the prop parameter, a legacy format has been used for the output. This
format is deprecated, and in the future, a default value will be set for the
prop parameter, causing the new format to always be used."
We should update pywikibot to use the new format
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=66523
Bug ID: 66523
Summary: harvest_template reports error when wikidata item does
not exists:
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
When harvesting from some category, there are sometimes new articles which have
not own wikidatat item yet.
This pages were normally skipped.
After some changes there are now error reports which are annoying and makes
terminal window hardly readable:
harvest_template -template:Commonscat "1" P373
Processing [[cs:Kostel svatého Ducha (Krupka)]]
[[cs:Kostel svateho Ducha (Krupka)]] doesn't have a wikidata item :(
ERROR: NoPage: Page [[wikidata:-1]] doesn't exist.
Traceback (most recent call last):
File "D:\Py\rewrite\scripts\harvest_template.py", line 66, in run
self.processPage(page)
File "D:\Py\rewrite\scripts\harvest_template.py", line 122, in processPage
item.get()
File "D:\Py\rewrite\pywikibot\page.py", line 2632, in get
super(ItemPage, self).get(force=force, *args)
File "D:\Py\rewrite\pywikibot\page.py", line 2470, in get
raise pywikibot.NoPage(self)
NoPage: Page [[wikidata:-1]] doesn't exist.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=66442
Bug ID: 66442
Summary: ImportError: No module named terminal_interface
Product: Pywikibot
Version: compat (1.0)
Hardware: All
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: audiodude(a)gmail.com
Web browser: ---
Mobile Platform: ---
I believe my compat install is sync'd to the latest version. I cannot run
version.py as you see below.
vagrant@mediawiki-vagrant:/vagrant/pywikibot-compat$ python login.py
-dir:/home/vagrant/.pywikibot
Traceback (most recent call last):
File "login.py", line 59, in <module>
import query
File "/vagrant/pywikibot-compat/query.py", line 30, in <module>
import wikipedia as pywikibot
File "/vagrant/pywikibot-compat/wikipedia.py", line 9742, in <module>
exec "import %s_interface as uiModule" % config.userinterface
File "<string>", line 1, in <module>
ImportError: No module named terminal_interface
vagrant@mediawiki-vagrant:/vagrant/pywikibot-compat$ python version.py
-dir:/home/vagrant/.pywikibot
No module named terminal_interface
Serious import error; pywikibot not available - was it configured?
Traceback (most recent call last):
File "version.py", line 20, in <module>
pywikibot.output('Pywikibot: %s' % getversion())
AttributeError: 'module' object has no attribute 'output'
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=66358
Bug ID: 66358
Summary: add generators for delinker
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: delinker
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: rubin.happy(a)gmail.com
Web browser: ---
Mobile Platform: ---
At the moment delinker works only on the log of recent files deletions but
unlinking of non-existent files from the particular category or particular set
of articles would be also useful.
For example, we have [[:File:Tested.jpg]] that was never uploaded and was added
by editor due to mistake: afterwards we get an article with non-existent file
and there is no way of automatical unlinking such images. At the moment, we
have ~4000 articles with such non-existent files in Russian Wikipedia.
I see two ways of solving the problem:
1) delinker's work on a set of non-existent files (that could be retrieved from
Special:Wanted Files)
2) delinker's work on the list of articles where bot unlinks all non-existent
files
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64837
Bug ID: 64837
Summary: Port capitalize_redirects.py to core
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Keywords: easy
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: valhallasw(a)arctus.nl
Blocks: 55880
Web browser: ---
Mobile Platform: ---
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=66345
Bug ID: 66345
Summary: Unicode error in html2unicode
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
Web browser: ---
Mobile Platform: ---
Traceback:
Periodic table -> corresponding page is ?????
Traceback (most recent call last):
File "C:\pwb\core\pwb.py", line 143, in <module>
run_python_file(fn, argv, argvu)
File "C:\pwb\core\pwb.py", line 67, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "C:\pwb\core\scripts\featured.py", line 616, in <module>
main()
File "C:\pwb\core\scripts\featured.py", line 609, in main
bot.run()
File "C:\pwb\core\scripts\featured.py", line 323, in run
self.run_task(task)
File "C:\pwb\core\scripts\featured.py", line 335, in run_task
self.treat(site, task)
File "C:\pwb\core\scripts\featured.py", line 343, in treat
self.featuredWithInterwiki(fromsite, task)
File "C:\pwb\core\scripts\featured.py", line 584, in featuredWithInterwiki
atrans.put(text, comment)
File "C:\pwb\core\pywikibot\page.py", line 937, in put
**kwargs)
File "C:\pwb\core\pywikibot\page.py", line 858, in save
**kwargs)
File "C:\pwb\core\pywikibot\page.py", line 865, in _save
comment = self._cosmetic_changes_hook(comment) or comment
File "C:\pwb\core\pywikibot\page.py", line 915, in _cosmetic_changes_hook
self.text = ccToolkit.change(old)
File "C:\pwb\core\scripts\cosmetic_changes.py", line 175, in change
text = self.cleanUpLinks(text)
File "C:\pwb\core\scripts\cosmetic_changes.py", line 512, in cleanUpLinks
'startspace'])
File "C:\pwb\core\pywikibot\textlib.py", line 210, in replaceExcept
replacement = new(match)
File "C:\pwb\core\scripts\cosmetic_changes.py", line 398, in handleOneLink
if not self.site.isInterwikiLink(titleWithSection):
File "C:\pwb\core\pywikibot\site.py", line 370, in isInterwikiLink
linkfam, linkcode = pywikibot.Link(text, self).parse_site()
File "C:\pwb\core\pywikibot\page.py", line 3168, in __init__
t = html2unicode(self._text)
File "C:\pwb\core\pywikibot\page.py", line 3555, in html2unicode
result += unichr(unicodeCodepoint)
ValueError: unichr() arg not in range(0x10000) (narrow Python build)
<type 'exceptions.ValueError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=66312
Bug ID: 66312
Summary: Update imageuncat.py to focus on templates
Product: Pywikibot
Version: core (2.0)
Hardware: All
URL: https://git.wikimedia.org/blob/pywikibot%2Fcore/HEAD/s
cripts%2Fimageuncat.py
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: maarten(a)mdammers.nl
Web browser: ---
Mobile Platform: ---
imageuncat.py was written in the time we didn't have proper access to the list
of categories using the api. So we had to parse the page text for categories,
but that didn't catch categories added by template. So it contains quite a bit
of trickery to work around this problem.
Now we do have proper api access a proper implementation becomes possible:
* Loop over templates to see if doesn't contain a template to skip (like
nominated for deletion). This should include template redirects
* Loop over the categories.
* Check for each category if it's hidden
* If you find a category that is not hidden, break
* If you finish without finding a category that's not hidden -> tag it
It's should be written with a Class (instead of the different functions we have
right now).
We probably want to add a bit of caching of the categories at
https://commons.wikimedia.org/wiki/Special:MostLinkedCategories so we don't
have to look these up a gazillion times.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55167
Web browser: ---
Bug ID: 55167
Summary: missing attribut page._pagid after Site.loadinfo(page)
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/1534/
Reported by: xqt
Created on: 2012-11-04 11:08:35
Subject: missing attribut page._pagid after Site.loadinfo(page)
Assigned to: russblau
Original description:
Another missing attribut:
Retrieving 50 pages from wikipedia:en.
WARNING: preloadpages: Query returned unexpected title 'International law'
Dump de \(wikipedia\) appended.
Traceback \(most recent call last\):
File "C:\Pywikipedia\rw\pwb.py", line 42, in <module>
execfile\(sys.argv\[0\]\)
File "C:\Pywikipedia\rw\scripts\interwiki.py", line 2516, in <module>
if \_\_name\_\_ == "\_\_main\_\_":
File "C:\Pywikipedia\rw\scripts\interwiki.py", line 2490, in main
try:
File "C:\Pywikipedia\rw\scripts\interwiki.py", line 2248, in run
"""Start the process until finished"""
File "C:\Pywikipedia\rw\scripts\interwiki.py", line 2221, in queryStep
File "C:\Pywikipedia\rw\scripts\interwiki.py", line 2217, in oneQuery
\# Tell all of the subjects that the promised work is done
File "C:\Pywikipedia\rw\scripts\interwiki.py", line 1224, in batchLoaded
if not page.exists\(\):
File "C:\Pywikipedia\rw\pywikibot\page.py", line 411, in exists
return self.site.page\_exists\(self\)
File "C:\Pywikipedia\rw\pywikibot\site.py", line 1153, in page\_exists
return page.\_pageid > 0
AttributeError: 'Page' object has no attribute '\_pageid'
and btw "en:International law" exists\!
--
You are receiving this mail because:
You are the assignee for the bug.