https://bugzilla.wikimedia.org/show_bug.cgi?id=64188
Bug ID: 64188
Summary: getVersionHistory does not follow total parameter
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: ---
When a version history is already loaded, decreasing the total parameter does
not care. It already returns the old amount of values.
>>> import pwb
>>> import pywikibot as py
>>> s = py.Site()
>>> p = py.Page(s, 'user:xqt/Test')
>>> x = p.getVersionHistory(total=5)
>>> len(x)
5
>>> x = p.getVersionHistory(total=2)
>>>
>>> len(x)
5
>>>
The same for getVersionHistoryTable and fullVersionHistory method
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64087
Bug ID: 64087
Summary: Invalid index to a set in categorx.py
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: category.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: info(a)gno.de
Web browser: ---
Mobile Platform: ---
Bug reported by pyfisch:
[michael@michaellaptop pywikibot-core]$ python2 scripts/category.py tidy
Which category do you want to tidy up? Deutschland
Retrieving 1 pages from wikipedia:de.
===================================================================Treating
page Deutschland, currently in Kategorie:Deutschland{{Dieser Artikel|behandelt
den deutschen Staat, im engeren Sinn die Bundesrepublik Deutschland; zu
weiteren Bedeutungen siehe [[Deutschla ### More Text here
Dumping to category.dump.bz2, please wait...
Traceback (most recent call last): File "scripts/category.py", line 1087, in
<module> main()
File "scripts/category.py", line 1061, in main
bot.run()
File "scripts/category.py", line 842, in run
self.move_to_category(article, cat, cat)
File "scripts/category.py", line 761, in move_to_category
% (i, supercatlist[i].title()))
TypeError: 'set' object does not support indexing<type 'exceptions.TypeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
This is what I get when I try to run category.py tidy as it is currently in
Git. I do not see any advantages of of CategoryDB and I want to remove it in
another commit. It only adds complexity to the code, is broken, sometimes you
will have outdated data in the database, and even with a 2Mbit connection you
can fetch thousands of articles from the internet every second. If there should
be some kind of caching in Pywikibot this should be done in the core of the
framework, not in independent scripts for special use cases.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55267
Web browser: ---
Bug ID: 55267
Summary: Page.fullVersionHistory doesn't return full version
history
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/1211/
Reported by: harriv
Created on: 2010-07-13 23:40:52
Subject: Page.fullVersionHistory doesn't return full version history
Original description:
Page.fullVersionHistory returns only 999 first revision, not all of them. It
seems to use Special:Export, using API would be better.
$ python version.py
Pywikipedia \[http\] trunk/pywikipedia \(r8355, 2010/07/12, 17:38:30\)
Python 2.5.2 \(r252:60911, Jan 24 2010, 17:44:40\)
\[GCC 4.3.2\]
config-settings:
use\_api = True
use\_api\_login = True
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64137
Bug ID: 64137
Summary: Revision key not found
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: ---
Running page_tests an error occurs:
c:\Pywikipedia\ssh\pywikibot\core>pwb.py tests/page_tests
...E.............
======================================================================
ERROR: testApiMethods (__main__.TestPageObject)
Test various methods that rely on API.
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/page_tests.py", line 297, in testApiMethods
self.assertType(mainpage.editTime(), pywikibot.Timestamp)
File "C:\Pywikipedia\ssh\pywikibot\core\pywikibot\page.py", line 457, in
editT
ime
return self._revisions[rev].timestamp
KeyError: 598252063
----------------------------------------------------------------------
Ran 17 tests in 0.440s
FAILED (errors=1)
c:\Pywikipedia\ssh\pywikibot\core>
Seems that self.site.loadrevisions(self) in editTime() method does not load the
needed revision as expected.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64174
Bug ID: 64174
Summary: Write illustrate_wikidata.py
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: maarten(a)mdammers.nl
Web browser: ---
Mobile Platform: ---
Should write a tool to illustrate items based on the image available in the
page_props
(https://nl.wikipedia.org/w/api.php?action=query&prop=pageprops&titles=Grijs…).
Default property is P18 (https://www.wikidata.org/wiki/Property:P18). Should be
able to override that.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=61846
Bug ID: 61846
Summary: version.py crashes on tool labs
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
CC: russblau(a)hotmail.com
Web browser: ---
Mobile Platform: ---
Russell Blau 2014-02-24 02:45:56 CET
This just leads to a new error:
/usr/lib/python2.7/subprocess.py in _execute_child(self=<subprocess.Popen
object>, args=['git.cmd', '--no-pager', 'log', '-1',
'--pretty=format:"%ad|%an|%h|%H|%d"--abbrev-commit', '--date=iso'],
executable='git.cmd', preexec_fn=None, close_fds=False,
cwd='/shared/pywikipedia/rewrite', env=None, universal_newlines=False,
startupinfo=None, creationflags=0, shell=False, p2cread=None, p2cwrite=None,
c2pread=8, c2pwrite=9, errread=None, errwrite=None)
1247 if fd is not None:
1248 os.close(fd)
=> 1249 raise child_exception
1250
1251
child_exception = OSError(2, 'No such file or directory')
<type 'exceptions.OSError'>: [Errno 2] No such file or directory
args = (2, 'No such file or directory')
child_traceback = 'Traceback (most recent call last):\n File
"/usr/...st)\nOSError: [Errno 2] No such file or directory\n'
errno = 2
filename = None
message = ''
strerror = 'No such file or directory'
Basically, getversiondict() needs to be able to fail gracefully and return some
kind of placeholder value if it isn't able to locate either a GIT or SVN
version number, rather than throw an exception and stop the entire framework
from executing.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56035
Web browser: ---
Bug ID: 56035
Summary: It's unclear what the default values for
RecentChangesPageGenerators arguments do
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: themineo+wikibz(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
RecentChangesPageGenerator takes a few arguments like showMinor, showAnon, ...
that are supposed to be boolean. However, they all have a default value of
None, but the documentation only covers the case where they're either True or
False. (The same is true for the recentchanges method in site.py that the
generator uses.)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=62008
Bug ID: 62008
Summary: Add commonsMedia to harvest_template
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: maarten(a)mdammers.nl
Web browser: ---
Mobile Platform: ---
As pointed out in
https://www.wikidata.org/wiki/User:Underlying_lk/sandbox#commonsMedia_suppo…
, it should be relatively easy to add image support.
elif claim.getType() == 'commonsMedia':
mediasite = pywikibot.Site("commons", "commons")
image = pywikibot.ImagePage(mediasite, value)
claim.setTarget(image)
Instead of using ImagePage I think Link() should be used.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55125
Web browser: ---
Bug ID: 55125
Summary: Harvest_template.py aborts when the value is empty
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/1663/
Reported by: gerardm
Created on: 2013-08-30 08:03:50.007000
Subject: Harvest_template.py aborts when the value is empty
Original description:
When a template has no value (null) the bot should not abort but preferably
write to an error log for later processing.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55124
Web browser: ---
Bug ID: 55124
Summary: Harvest_template.py aborts when the value is a red
link
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/1664/
Reported by: gerardm
Created on: 2013-08-30 08:05:36.536000
Subject: Harvest_template.py aborts when the value is a red link
Original description:
When the value is a "red link", the bot should continue and preferably write to
an error log (for later processing)
--
You are receiving this mail because:
You are the assignee for the bug.