https://bugzilla.wikimedia.org/show_bug.cgi?id=55071
Web browser: ---
Bug ID: 55071
Summary: interwiki hints from file
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: interwiki.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/feature-requests/232/
Reported by: Anonymous user
Created on: 2009-11-24 13:29:34
Subject: interwiki hints from file
Original description:
Sadly enough, the request ID: 2284955 has been closed w/o resolution, maybe by
mistake. I would like to revive it as it seems to be a helpful feature. Here it
is:
It would be helpful if interwiki.py could read hints not only from console but
also from a file, one per line, e.g. like this:
\# \[\[:xx:page\_without\_interwiki\]\]
\[\[:en:English\_page\_used\_as\_a\_hint\]\]
please add this option. thanks
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55151
Web browser: ---
Bug ID: 55151
Summary: pywikipediabot should use standard output
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/1580/
Reported by: tgr_
Created on: 2013-02-17 14:02:13
Subject: pywikipediabot should use standard output
Original description:
All pywikipedia messages go to standard error, making the proper running of
such bots from cron very difficult. Normal messages should go to standard
output, and only suprising messages \(python errors, block notifications, new
message notifcations\) should go to standard error.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55142
Web browser: ---
Bug ID: 55142
Summary: Unable to edit WikiData claims
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/1627/
Reported by: Anonymous user
Created on: 2013-04-26 19:24:01
Subject: Unable to edit WikiData claims
Assigned to: amird
Original description:
Trying to create new claim in wikidata page with editclaims function in
DataPage class will give following error
File "C:/Python27/Lib/site-packages/pywikipedia\wikipedia.py", line 4361, in
editclaim
raise RuntimeError\("API query error: %s" % data\)
RuntimeError: API query error: \{u'servedby': u'mw1196', u'error': \{u'info':
u'Unknown error: "Can only construct StringValue from strings"', u'code':
u'unknownerror'\}\}
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55139
Web browser: ---
Bug ID: 55139
Summary: No handlers could be found for logger "pywiki"
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/1633/
Reported by: Anonymous user
Created on: 2013-05-16 14:56:14
Subject: No handlers could be found for logger "pywiki"
Original description:
Some time ago, I started getting the warning:
No handlers could be found for logger "pywiki"
This is generated in small code fragments I create. I \(still\) haven't seen it
in thte standard bot operations.
It's possible I must do something to avoid it but I would like to know what. I
think it started happening about the time the log became a rotating file log.
Pywikipedia trunk/pywikipedia/ \(r11488, 2013/05/03, 08:14:51, OUTDATED\)
Python 2.7.2 \(default, Jun 12 2011, 14:24:46\) \[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=55138
Web browser: ---
Bug ID: 55138
Summary: harvest template syntax error
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/1634/
Reported by: masti01
Created on: 2013-05-24 22:33:04
Subject: harvest template syntax error
Original description:
$python harvest\_template.py -cat:"Miasta Polski"
File "harvest\_template.py", line 116
item.editclaim\(str\(claim\), linkedItem.getID\(\)
,refs=\{self.setSource\(self.site\(\).language\(\)\)\}\)
^
SyntaxError: invalid syntax
$ python version.py
unicode test: triggers problem \#3081100
Pywikipedia \[http\] trunk/pywikipedia \(r11578, 2013/05/24, 17:03:42, ok\)
Python 2.6.6 \(r266:84292, Oct 12 2012, 14:23:48\)
\[GCC 4.4.6 20120305 \(Red Hat 4.4.6-4\)\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: triggers problem \#3081100
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55123
Web browser: ---
Bug ID: 55123
Summary: Problems with logging Special pages
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/1666/
Reported by: vicyorus
Created on: 2013-09-04 04:03:19.206000
Subject: Problems with logging Special pages
Original description:
Using pagegenerators.py does not log -unusedfiles or -uncatfiles , which are
found in Special:Unusedfiles and Special:UncategorizedFiles, respectively, on
Wikia.
The script creates a file on the log directory, but it is empty. When using the
script, nothing is printed on the console (which I have been told it should).
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54567
Web browser: ---
Bug ID: 54567
Summary: Minor improvements on add_text.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/patches/537/
Reported by: phoenixca
Created on: 2012-01-21 20:06:11
Subject: Minor improvements on add_text.py
Original description:
Added an open in browser option to confirmation dialogue \(similar to
replace.py \) and added a new -only arg \(essentially the opposite of
-except\). If a page text doesn't match the -only regex given, it skips.
Example use:
I added this while trying to clean-up a Wikia wiki. Wikia's RTE leaves
\[\[File:Placeholder on pages often. With this addition, the bot can use
-only:"\[\[File:Placeholder" -except:"\{\{image\}\}" -text:"\{\{image\}\}" -up
, to add a meta tag to pages that have image placeholders, but not ones that
already have the \{\{image\}\} tag.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54559
Web browser: ---
Bug ID: 54559
Summary: images' license checker
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/patches/563/
Reported by: rubin16
Created on: 2012-08-20 16:43:17
Subject: images' license checker
Original description:
license checker bot - created by Panther and patched by me and xqt. It was
designed for ru.wiki \(and uk.wiki partially\) but I suppose that some ideas
will be useful for other wikis.
Note: not all pagegenerators are working in the script, it should be somehow
corrected or rewritten. Original author \(Panther\) agreed to license it under
MIT license
Script was tested and works in ru.wiki for quite extended period of time with
no objections -
http://ru.wikipedia.org/wiki/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%…
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54548
Web browser: ---
Bug ID: 54548
Summary: _getUserDataOld call from low-level getUrl
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/patches/608/
Reported by: valhallasw
Created on: 2013-04-13 20:51:59
Subject: _getUserDataOld call from low-level getUrl
Original description:
From
http://lists.wikimedia.org/pipermail/pywikipedia-l/2012-October/007585.html :
I just wanted to put\(\) a simple page on a MediaWiki 1.16
instance, where I have to use screen scraping \(use\_api=False\).
There is something strange however:
There is an API call invoked by \_getBlocked:
/w/api.php?action=query&format=json&meta=userinfo&uiprop=blockinfo
Here's my backtrace:
File "pywikipedia/wikipedia.py", line 693, in get
expandtemplates = expandtemplates\)
File "pywikipedia/wikipedia.py", line 743, in \_getEditPage
return self.\_getEditPageOld\(get\_redirect, throttle, sysop, oldid,
change\_edit\_time\)
File "pywikipedia/wikipedia.py", line 854, in \_getEditPageOld
text = self.site\(\).getUrl\(path, sysop = sysop\)
File "pywikipedia/wikipedia.py", line 5881, in getUrl
self.\_getUserDataOld\(text, sysop = sysop\)
File "pywikipedia/wikipedia.py", line 6016, in \_getUserDataOld
blocked = self.\_getBlock\(sysop = sysop\)
File "pywikipedia/wikipedia.py", line 5424, in \_getBlock
data = query.GetData\(params, self\)
File "pywikipedia/query.py", line 146, in GetData
jsontext = site.getUrl\( path, retry=True, sysop=sysop, data=data\)
getUrl\(\), which is also called from API, seems always
to call \_getUserDataOld\(text\) where text is ... API output
so it tries to do strange things on that and gives warnings
like
Note: this language does not allow global bots.
WARNING: Token not found on wikipedia:pl. You will not be able to edit any
page.
which is nonsense since the analyzed text is not HTML - only API output.
If getUrl\(\) is supposed to be a low-level call, why call \_getUserDataOld\(\)
there?
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/7461
has introduced this call there.
It's easily reproducable by this:
import wikipedia
import config
config.use\_api = False
wikipedia.verbose = True
s = wikipedia.getSite\("pl", "wikipedia"\)
p = wikipedia.Page\(s, u"User:Saper"\)
c = p.get\(\)
c += "<\!-- test -->"
p.put\(c, u"Testing wiki", botflag=False\)
//Saper
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55095
Web browser: ---
Bug ID: 55095
Summary: Change imagerecat.py to use lists in family file
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
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/177/
Reported by: multichill
Created on: 2009-02-13 13:26:33
Subject: Change imagerecat.py to use lists in family file
Assigned to: multichill
Original description:
Imagerecat.py has to be changed to use the redirect template list and the
disambigutation template list in the Commons family file:
self.category\_redirect\_templates = \{
'commons': \(u'Category redirect',
u'Categoryredirect',
u'See cat',
u'Seecat',
u'Catredirect',
u'Cat redirect',
u'CatRed',
u'Cat-red',
u'Catredir',
u'Redirect category'\),
\}
self.disambiguationTemplates = \{
'commons': \[u'Disambig', u'Disambiguation', u'Razločitev',
u'Begriffsklärung'\]
\}
--
You are receiving this mail because:
You are the assignee for the bug.