https://bugzilla.wikimedia.org/show_bug.cgi?id=71788
Bug ID: 71788
Summary: version.getfileversion does not work on py3, and
should be rewritten
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
In verbose logging, the log is supposed to contain a list of the pywikibot
modules loaded at startup, however on py3 it logs not modules.
The problem is the eval does not set local variable __version__
http://git.wikimedia.org/blob/pywikibot%2Fcore.git/9ca1b85c367b381947426c26…
In addition, the algorithm is dodgy.
It checks every module name to see if it is a part of pywikibot, which is
problematic if pywikibot has a module which has the same name as another
package, and this approach also unnecessarily tries to stat many files which
will not exist.
If it does find a pywikibot file, it reads the file to find __version__ even
though Python has already loaded the module. it then exec's the first line
which contains __version__, assuming it is an assignment to __version__.
module versions could be merged into version.package_versions(), as it already
supports different types of entries (builtins, standard library)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68898
Bug ID: 68898
Summary: Move Wikibase specific code out of page.py and site.py
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Web browser: ---
Mobile Platform: ---
Wikibase is an extension, and should have a wikibase.py instead of being in
page.py and site.py
We already keep the tests in wikibase_tests.py.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70336
Bug ID: 70336
Summary: Add write tests
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: tests
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
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=72118
Bug ID: 72118
Summary: Pywikibot 3.0 changes [tracking]
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
pwb2.0 has been in beta since August 2013, and bot operators encouraged to
migrate to it.
http://git.wikimedia.org/commit/pywikibot%2Fcore.git/5f3fcec2791960d283e594…
The expectation is that it is fairly stable.
We have been making minor adjustments to the API since August 2013, but usually
backwards compatibility has been kept where feasible.
Using the definitions at http://semver.org/ , non-backwards compatible API
changes should occur after pwb2.0 (bug 70936) has been branched.
This bug is to track enhancement requests which will require breaking changes,
which should be done after master becomes 3.0.0-dev1.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73151
Bug ID: 73151
Summary: Site object becomes a string MySQLPageGenerator,
throws error
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: pagegenerators
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: gpaumier(a)wikimedia.org
Web browser: ---
Mobile Platform: ---
MySQLPageGenerator says it can take a 'site' argument as either a Site object
or a string (that represents the dbname). If 'site' isn't given, it defaults to
the current Site.
In all cases, site ends up being a string, either because that's what was
passed as an argument, or because the Site object is replaced by the dbname in
'site = site.dbName()'
However, a few lines later, site is expected to be a Site object again in
'query = query.encode(site.encoding())'.
This throws an AttributeError: 'unicode' object has no attribute 'encoding'.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72074
Bug ID: 72074
Summary: Consistent naming of wikibase/wikidata scrips
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: federicoleva(a)tiscali.it
Web browser: ---
Mobile Platform: ---
While preparing https://gerrit.wikimedia.org/r/#/c/166629/ I initially didn't
find all wikibase-related scripts, in particular I knew about
harvest_template.py ad claimit.py but not newitem.py. It would be nice to have
some prefix or other system to quickly tell all such scripts apart.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72065
Bug ID: 72065
Summary: Pywikibot: Implement support for OAuth
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: krinklemail(a)gmail.com
Web browser: ---
Mobile Platform: ---
I'd like to have my bots on Tool Labs only contain a file with a token. That
way I don't have to store passwords there and in worst case scenario, someone
can make a few edits (as opposed to logging in and changing e-mail address,
password etc.), with a token I can revoke any time.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73214
Bug ID: 73214
Summary: only one namespace permitted
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: pagegenerators
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
Some weekend changes made interwiki bot unusable:
D:\Py\rewrite>pwb.py interwiki -async -family:wiktionary -cleanup
-start:Kategorie:Isla -array:50 -query:30 -untranslated
Traceback (most recent call last):
File "D:\Py\rewrite\pwb.py", line 181, in <module>
run_python_file(fn, argv, argvu)
File "D:\Py\rewrite\pwb.py", line 75, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "D:\Py\rewrite\scripts\interwiki.py", line 2646, in <module>
main()
File "D:\Py\rewrite\scripts\interwiki.py", line 2537, in main
if not genFactory.handleArg(arg):
File "D:\Py\rewrite\pywikibot\pagegenerators.py", line 523, in handleArg
site=self.site)
File "D:\Py\rewrite\pywikibot\pagegenerators.py", line 633, in
AllpagesPageGen
erator
content=content)
File "D:\Py\rewrite\pywikibot\tools.py", line 647, in wrapper
return obj(*__args, **__kw)
File "D:\Py\rewrite\pywikibot\site.py", line 3050, in allpages
raise Error("allpages: only one namespace permitted.")
pywikibot.exceptions.Error: allpages: only one namespace permitted.
<class 'pywikibot.exceptions.Error'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
I use the same command as last week, there is only one namespace, but does not
work.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73415
Bug ID: 73415
Summary: gapunknown_gapnamespace
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: pagegenerators
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
How to run bot for categories which begins with Category:Ka ?
D:\Py\rewrite>pwb.py interwiki -async -family:wiktionary -cleanup
-prefixindex:Kategorie:Ka -array:50 -query:30 -untranslated
NOTE: Number of pages queued is 0, trying to add 30 more.
Dump cs (wiktionary) appended.
Traceback (most recent call last):
File "D:\Py\rewrite\pwb.py", line 181, in <module>
run_python_file(fn, argv, argvu)
File "D:\Py\rewrite\pwb.py", line 75, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "D:\Py\rewrite\scripts\interwiki.py", line 2646, in <module>
main()
File "D:\Py\rewrite\scripts\interwiki.py", line 2621, in main
bot.run()
File "D:\Py\rewrite\scripts\interwiki.py", line 2365, in run
self.queryStep()
File "D:\Py\rewrite\scripts\interwiki.py", line 2338, in queryStep
self.oneQuery()
File "D:\Py\rewrite\scripts\interwiki.py", line 2306, in oneQuery
site = self.selectQuerySite()
File "D:\Py\rewrite\scripts\interwiki.py", line 2277, in selectQuerySite
self.generateMore(globalvar.maxquerysize - mycount)
File "D:\Py\rewrite\scripts\interwiki.py", line 2183, in generateMore
page = next(self.pageGenerator)
File "D:\Py\rewrite\pywikibot\data\api.py", line 1119, in __iter__
self.data = self.request.submit()
File "D:\Py\rewrite\pywikibot\data\api.py", line 710, in submit
raise APIError(code, info, **result["error"])
pywikibot.data.api.APIError: gapunknown_gapnamespace: Unrecognized value for
parameter 'gapnamespace': :Category:
<class 'pywikibot.data.api.APIError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
D:\Py\rewrite>pwb.py interwiki -async -family:wiktionary -cleanup
-prefixindex:Ka -array:50 -query:30 -untranslated -namespace:14
NOTE: Number of pages queued is 0, trying to add 30 more.
NOTE: Nothing left to do
D:\Py\rewrite>
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55192
Web browser: ---
Bug ID: 55192
Summary: Rewrite Performance (multiple API request)
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/1470/
Reported by: xqt
Created on: 2012-06-21 13:44:27
Subject: Rewrite Performance (multiple API request)
Original description:
There are multiple user info queries which slows down the performance:
c:\Pywikipedia\rw>pwb.py basic.py user:xqt/Test -simulate -v
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\)\]
Retrieving 1 pages from wikipedia:de.
Starting 1 threads...
API action query: userinfo
Found 1 wikipedia:de processes running, including this one.
>>> Benutzer:Xqt/Test <<<
\- Test
\+ Test Test
Comment: Bot: Ändere ...
Do you want to accept these changes? \(\[y\]es, \[N\]o\) y
API action query: userinfo
API action query: userinfo
Cosmetic changes for wikipedia-de enabled.
API action query: siteinfo|userinfo
API action query: userinfo
API action edit:
SIMULATION: edit action blocked.
Page \[\[Benutzer:Xqt/Test\]\] saved without any changes.
Page \[\[Benutzer:Xqt/Test\]\] saved
Dropped throttle\(s\).
Waiting for threads to finish...
All threads finished.
Dropped throttle\(s\).
c:\Pywikipedia\rw>
--
You are receiving this mail because:
You are the assignee for the bug.