https://bugzilla.wikimedia.org/show_bug.cgi?id=55154
Web browser: ---
Bug ID: 55154
Summary: Can't login to wikisource.org
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: login.py
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/1572/
Reported by: Anonymous user
Created on: 2013-02-09 09:45:00
Subject: Can't login to wikisource.org
Original description:
I would like to be able to edit Wikisource with pywikipediabot; unlike all the
other wikis, http://wikisource.org/ does not redirect to
http://en.wikisource.org/ and thus I cannot login to wikisource.org without
playing with each script.
The following was outputted when I tried
family = 'wikisource'
mylang = ''
Traceback \(most recent call last\):
File "C:\Python27\pywikipedia1\redirect.py", line 65, in <module>
import wikipedia as pywikibot
File "C:\Python27\pywikipedia1\wikipedia.py", line 8717, in <module>
getSite\(noLogin=True\)
File "C:\Python27\pywikipedia1\pywikibot\support.py", line 115, in wrapper
return method\(\*\_\_args, \*\*\_\_kw\)
File "C:\Python27\pywikipedia1\wikipedia.py", line 8471, in getSite
\_sites\[key\] = Site\(code=code, fam=fam, user=user\)
File "C:\Python27\pywikipedia1\pywikibot\support.py", line 115, in wrapper
return method\(\*\_\_args, \*\*\_\_kw\)
File "C:\Python27\pywikipedia1\wikipedia.py", line 5667, in \_\_init\_\_
% \(self.\_\_code, self.\_\_family.name\)\)
NoSuchSite: Language does not exist in family wikisource
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=57143
Web browser: ---
Bug ID: 57143
Summary: Unicode decode error in userlib
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: info(a)gno.de
Classification: Unclassified
Mobile Platform: ---
Check votings for [[Wikipedia:Adminwiederwahl/Xocolatl]]
Aktuarius 201304160110 ist seit 30 Tagen abgelaufen.
High Contrast 201305042232 ist seit 11 Tagen abgelaufen.
.Traceback (most recent call last):
File "C:\Pywikipedia\compat\checkvotes.py", line 648, in <module>
main()
File "C:\Pywikipedia\compat\checkvotes.py", line 642, in main
bot.run()
File "C:\Pywikipedia\compat\checkvotes.py", line 215, in run
self.treat(page)
File "C:\Pywikipedia\compat\checkvotes.py", line 268, in treat
while not target_user.exists() or not target_user.editCount():
File "C:\Pywikipedia\compat\userlib.py", line 121, in exists
return self.isAnonymous() or self.isRegistered()
File "C:\Pywikipedia\compat\userlib.py", line 115, in isRegistered
return self.registrationTime(force) != -1
File "C:\Pywikipedia\compat\userlib.py", line 136, in registrationTime
self._load()
File "C:\Pywikipedia\compat\userlib.py", line 132, in _load
getall(self.site(), [self], force=True)
File "C:\Pywikipedia\compat\userlib.py", line 621, in getall
_GetAllUI(site, users, throttle, force).run()
File "C:\Pywikipedia\compat\userlib.py", line 645, in run
print e
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in position
27:
ordinal not in range(128)
Where "e" is the exceptions result bytestring
See also
- https://gerrit.wikimedia.org/r/#/c/78661/
- https://gerrit.wikimedia.org/r/#/c/79454/
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=57110
Web browser: ---
Bug ID: 57110
Summary: subster.py should not put error tracebacks on talk
pages
Product: Pywikibot
Version: compat (1.0)
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: info(a)gno.de
Classification: Unclassified
Mobile Platform: ---
e.g.
https://de.wikipedia.org/w/index.php?title=Wikipedia:WikiProjekt_Bundesverd…
seen such things on hundreds of pages
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=57070
Web browser: ---
Bug ID: 57070
Summary: Syntax error in Weclome.py (possibly others)
Product: Pywikibot
Version: compat (1.0)
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: sigilbaram(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
I downloaded the current nightly build (2013/11/13) and tried running
Welcome.py and there was a syntax error on line 590. I removed the newline
between 589 and 590 since it looked out of place (my python experience is
limited). The script ran, but on page creation recieced a "No JSON object could
be decoded" error. Pageformfile.py successfully created the page so I would
guess the error is likely in welcome.py itself (possibly that my fix for the
syntax error was wrong).
I just went to run the script again for an exact error message and the page
created this time. It failed several times before this last attempt... strange.
Anyway, the syntax error is still applicable, if nothing else.
PS E:\compat> python -V
Python 2.7.6
PS E:\compat> python version.py
WARNING: Running on Windows and transliteration_target is not set.
Please see http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Windows
'git' is not recognized as an internal or external command,
operable program or batch file.
Pywikibot: wikipedia.py (r-1 (unknown), 3179f1c, 2013/11/13, 15:01:08,
OUTDATED)
Release version: 1.0b1
Python: 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)]
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=56873
Web browser: ---
Bug ID: 56873
Summary: Category.isCategoryRedirect() does not work on wikis
without category redirect template defined in family
file
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: blocker
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: pyfisch(a)googlemail.com
Classification: Unclassified
Mobile Platform: ---
If you call isCategoryRedirect on a category which is from a wiki which has no
category redirect templates defined in the family file an error occurs.
user@computer:~$ python
Python 2.7.5+ (default, Sep 19 2013, 13:48:49)
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pywikibot
>>> site = pywikibot.Site('de', 'wikipedia')
>>> cat = pywikibot.Category(site, 'Category:Hannover')
>>> cat.isCategoryRedirect()
de _default
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/pywikibot/page.py", line 471, in isCategoryRedirect
catredirs = self.site.category_redirects()
File "/usr/lib/python2.7/pywikibot/site.py", line 223, in <lambda>
f = lambda *args, **kwargs: method(self.code, *args, **kwargs)
File "/usr/lib/python2.7/pywikibot/family.py", line 864, in
category_redirects
self.get_cr_templates(code, fallback)
File "/usr/lib/python2.7/pywikibot/family.py", line 879, in get_cr_templates
cr_template = self.category_redirect_templates[fallback][0]
IndexError: tuple index out of range
>>>
This bug is blocking https://bugzilla.wikimedia.org/show_bug.cgi?id=56774
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55136
Web browser: ---
Bug ID: 55136
Summary: Incorrect source in harvest_template.py
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/1638/
Reported by: jandudik
Created on: 2013-06-24 21:07:15.699000
Subject: Incorrect source in harvest_template.py
Original description:
I run in rewrite
harvest_template.py -ref:template:infobox_okres -template:"Infobox okres" ISO
P300 NUTS P605
my lang is set to cs, but bot add as source lang=se
http://www.wikidata.org/w/index.php?title=Q852518&diff=52278378&oldid=52278…
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55021
Web browser: ---
Bug ID: 55021
Summary: Edit comments in the description of the edits
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/323/
Reported by: n-fran
Created on: 2013-01-11 07:36:42
Subject: Edit comments in the description of the edits
Original description:
When I manually create destruction of information, I always point out its
cause.
For example:
http://ru.wikipedia.org/w/index.php?title=%D0%A7%D1%83%D1%80%D1%82%D0%B0%D1…
Sorry, can make it so that the user pywikipediabot could change the description
of the edits? It is often necessary to explain to other users of the reasons
for the bot of my actions?
For example
http://ru.wikipedia.org/w/index.php?title=1634\_%D0%B3%D0%BE%D0%B4&diff=515…
Instead of 'Removing links to spamming site profi-forex.org' write 'my
comment'.
Thanks.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56884
Web browser: ---
Bug ID: 56884
Summary: pywikibot keeps retrying when it should throw an
exception
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: daniel(a)schwen.de
Classification: Unclassified
Mobile Platform: ---
I'm getting a lot of 503 non-JSON response warnings when saving large pages.
A lot of these supposedly failed attempts to save a page secretly succeed
so I want to trap the failure, read the page, and check if it already is in the
state that I wanted to write, otherwise I'd just try again.
Now pywikipediabot tries again by itself an apparently infinite amount of times
Despite having set max_retries to 2 in my user-config.py
Here is a paste excerpt from my output (not the two times I forced a keyboard
interrupt by Ctrl-C to abort the fruitless retries and enter my manual retry
loop, which immediately detects that the save was indeed successful)
http://pastebin.com/Xq1TRtns
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55186
Web browser: ---
Bug ID: 55186
Summary: archivebot.py doesn't support unicode month names
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/1482/
Reported by: Anonymous user
Created on: 2012-06-30 17:50:30
Subject: archivebot.py doesn't support unicode month names
Original description:
archivebot.py doesn't work well with languages such as Turkish which has some
months with unicode characters. Namely:
2 Şubat
4 Mayıs
8 Ağustos
9 Eylül
11 Kasım
12 Aralık
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56734
Web browser: ---
Bug ID: 56734
Summary: intewikis
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: coet.cawiki(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
I observed that Page(site, title).interwiki() doesn't work.
I think it is because DataPage().get()['link'] returns something like
{"nowiki":{"name: "Title", "badges": []}}
and it was expected something like {"nowiki": "Title"}
Another bug i observed is that wikidata gives also the Commons link
I have modified the wikipedia.py line 4719
from "links[code]) for code in links]"
to "links[code]['name']) for code in links if "commons" not in code]"
and it works fine but I think that the condition 'if "commons" not in code' is
not *always* a good solution.
--
You are receiving this mail because:
You are the assignee for the bug.