https://bugzilla.wikimedia.org/show_bug.cgi?id=55155
Web browser: ---
Bug ID: 55155
Summary: LEFT-TO-RIGHT MARK makes categories() fail
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/1571/
Reported by: nu11zer0
Created on: 2013-01-30 19:36:16
Subject: LEFT-TO-RIGHT MARK makes categories() fail
Original description:
In categories\(\) from class Page, if there is LEFT-TO-RIGHT MARK or other
hidden characters in "\[\[Category:", pywikibot will fail to capture this
category. I noticed that in constructor of class Page, there is the code for
stripping many hidden characters. So why don't we apply this code with category
and others \(I'm not sure if there are other things which need stripping hidden
characters. Interwiki link? At least, I see many regular expressions for
capturing links, these actions can fail with hidden character too.\)
Pywikipedia trunk/pywikipedia/ \(r11014, 2013/01/28, 20:55:48, ok\)
Python 2.7.3 \(default, Sep 26 2012, 21:53:58\)
\[GCC 4.7.2\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72763
Bug ID: 72763
Summary: Site.loadrevisions rollback uses deprecated rvtoken
parameter, used by revertbot
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: network
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
Calling Site.loadrevisions with rollback=True activates code that uses the
deprecated parameter rvtoken, resulting in:
WARNING: API warning (revisions): The rvtoken parameter has been deprecated.
This parameter is indirectly used by revertbot option 'rollback', via
Page.fullVersionHistory
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72786
Bug ID: 72786
Summary: -start crashes the script
Product: Pywikibot
Version: compat (1.0)
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: pagegenerators
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: mastigm(a)gmail.com
Web browser: ---
Mobile Platform: ---
running a script with -start:something parameter crashes in wikipedia.py
example running on pl.wiktionary
python interwiki.py -wiktionary -top -auto -start:"megfagy"
NOTE: Number of pages queued is 0, trying to add 50 more.
Dump pl (wiktionary) appended.
Traceback (most recent call last):
File "interwiki.py", line 2665
, in <module>
main()
File "interwiki.py", line 2639, in main
bot.run()
File "interwiki.py", line 2358, in run
self.queryStep()
File "interwiki.py", line 2331, in queryStep
self.oneQuery()
File "interwiki.py", line 2299, in oneQuery
site = self.selectQuerySite()
File "interwiki.py", line 2270, in selectQuerySite
self.generateMore(globalvar.maxquerysize - mycount)
File "interwiki.py", line 2178, in generateMore
page = self.pageGenerator.next()
File "/usr/home/masti/pw/cwikt/pagegenerators.py", line 1022, in
DuplicateFilterPageGenerator
for page in generator:
File "/usr/home/masti/pw/cwikt/pagegenerators.py", line 549, in
AllpagesPageGenerator
includeredirects=includeredirects):
File "/usr/home/masti/pw/cwikt/wikipedia.py", line 8579, in allpages
warning = data['warnings']['allpages']['*']
python version.py
Pywikibot: [https] r-pywikibot-compat.git (fc4a881, g11087, 2014/10/30,
17:01:42, ok)
Release version: 1.0b1
Python: 2.7.5 (default, Jul 7 2013, 01:26:18)
[GCC 4.3.4]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72731
Bug ID: 72731
Summary: Upload.py API error
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Other scripts
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: shizhao(a)gmail.com
Web browser: ---
Mobile Platform: ---
Traceback (most recent call last):
File "/home2/xxx/upload.py", line 265, in upload_image
chunk_size=self.chunk_size)
File "/home2/xxx/pywikibot/tools.py", line 549, in wrapper
return obj(*__args, **__kw)
File "/home2/xxx/pywikibot/site.py", line 4510, in upload
raise error
APIError: missingparam: One of the parameters filekey, file, url, statuskey is
required
API change?
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72697
Bug ID: 72697
Summary: Add pylint checking
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: tests
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
pylint is more detailed than flake8, identifying more python stylistic issues.
As we have addressed the issues identified by flakes, it would be good to
progress onto fixing pylint issues.
Ideally we add a pre-code-review pylint check to jenkins. It appears to be
quite simple to do, using the jenkins plugin `violations`.
http://www.alexconrad.org/2011/10/jenkins-and-python.htmlhttp://chrigl.de/blogentries/integration-of-pylint-into-jenkins
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55255
Web browser: ---
Bug ID: 55255
Summary: delete.py --undelete unhandled exception when page
exists
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/1260/
Reported by: tgr_
Created on: 2010-11-21 15:52:40
Subject: delete.py --undelete unhandled exception when page exists
Original description:
Trying to undelete an existing page gives the following error:
Processing page XXX
Note: Your sysop account on wikipedia:hu does not have a bot flag. Its edits
wil
l be visible in the recent changes.
Sleeping for 6.3 seconds, 2010-11-21 16:34:14
Traceback \(most recent call last\):
File "C:\home\wikipedia\pywikipediabot\delete.py", line 242, in <module>
main\(\)
File "C:\home\wikipedia\pywikipediabot\delete.py", line 236, in main
bot.run\(\)
File "C:\home\wikipedia\pywikipediabot\delete.py", line 125, in run
page.undelete\(self.summary, throttle = True\)
File "C:\home\wikipedia\pywikipediabot\wikipedia.py", line 3306, in undelete
raise RuntimeError\("%s" % result\['error'\]\)
RuntimeError: \{u'info': u"Couldn't undelete: the requested revisions may not
exi
st, or may have been undeleted already", u'code': u'cantundelete'\}
version.py:
Pywikipedia \[http\] trunk/pywikipedia \(r8736, 2010/11/20, 10:28:21\)
Python 2.6.5 \(r265:79096, Mar 19 2010, 21:48:26\) \[MSC v.1500 32 bit
\(Intel\)\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72176
Bug ID: 72176
Summary: not default namespace
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: pagegenerators
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
In older versions there was automatically pre-set namespace:0 for most scripts.
pwb.py newitem -newpages
automatically worked only in namespace:0, for other namespace must be
-namespace:14
Few weeks ago script automatically started to work with all pages includin user
namespace. This is not good idea, because I want usually work only on aricles /
categories and not both
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72669
Bug ID: 72669
Summary: importerror catlib for interwiki.py
Product: Pywikibot
Version: compat (1.0)
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: Unprioritized
Component: interwiki.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
D:\Py\rewrite>pwb.py interwiki -family:wiktionary -cleanup
-start:category:Finština -array:50 -query:30 -untranslated
Traceback (most recent call last):
File "D:\Py\rewrite\pwb.py", line 178, 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 "interwiki.py", line 357, in <module>
from pywikibot import catlib
ImportError: cannot import name catlib
<type 'exceptions.ImportError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
D:\Py\rewrite>
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64814
Bug ID: 64814
Summary: unable to delete using account with rights
Product: Pywikibot
Version: compat (1.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: matanya(a)foss.co.il
Web browser: ---
Mobile Platform: ---
I'm using the account matanyabot on he.wiki, it holds admin rights on the site.
when i run https://github.com/mat-mo/tp-id-del I get:
pywikibot.exceptions.LockedPage: The sysop user is not allowed to delete in
site wikipedia:he
This script worked as of last week, and only calls delete.py
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55016
Web browser: ---
Bug ID: 55016
Summary: Extended version information in user-agent
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/330/
Reported by: valhallasw
Created on: 2013-02-04 20:52:53
Subject: Extended version information in user-agent
Original description:
See the discussion at
https://www.mediawiki.org/wiki/Special:Code/pywikipedia/11027\#c33303
Implementation notes:
Hash of a file:
>>> import hashlib
>>> m = hashlib.sha1\(\)
>>> m.hexdigest\(\)
'93ae86148e74a7c3a3d63f7810b48c51889fba46'
Classes used in stack trace:
>> import inspect
>> \[\(x.\_\_module\_\_, x.\_\_name\_\_\) for x in
\(s\[0\].f\_locals.get\('self', None\).\_\_class\_\_ for s in
inspect.stack\(\)\)\]
Example result:
\[\('wikipedia\_family', 'Family'\), \('pdb', 'Pdb'\), \('pdb', 'Pdb'\),
\('pdb', 'Pdb'\), \('pdb', 'Pdb'\), \('pdb', 'Pdb'\), \('pdb', 'Pdb'\),
\('pdb', 'Pdb'\), \('pdb', 'Pdb'\), \('wikipedia\_family', 'Family'\),
\('wikipedia', 'Site'\), \('wikipedia', 'Site'\), \('wikipedia', 'Site'\),
\('wikipedia', 'Site'\), \('wikipedia', 'Site'\), \('wikipedia', 'Page'\),
\('wikipedia', 'Page'\), \('\_\_main\_\_', 'Subject'\), \('\_\_main\_\_',
'Subject'\), \('\_\_main\_\_', 'InterwikiBot'\), \('\_\_main\_\_',
'InterwikiBot'\), \('\_\_builtin\_\_', 'NoneType'\), \('\_\_builtin\_\_',
'NoneType'\), \('\_\_builtin\_\_', 'NoneType'\), \('pdb', 'Pdb'\), \('pdb',
'Pdb'\), \('\_\_builtin\_\_', 'NoneType'\), \('\_\_builtin\_\_', 'NoneType'\),
\('\_\_builtin\_\_', 'NoneType'\), \('\_\_builtin\_\_', 'NoneType'\)\]
--
You are receiving this mail because:
You are the assignee for the bug.