https://bugzilla.wikimedia.org/show_bug.cgi?id=69186
Bug ID: 69186
Summary: Option -redirect in "add" mode does not change outcome
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: category.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: CommodoreFabianus(a)gmx.de
Web browser: ---
Mobile Platform: ---
The default behaviour is with scripts/category.py when it's adding a category,
that redirecting pages are skipped, unless "-redirect" is set.
Currently this option doesn't change things because as described in bug #69185
the content of the redirect target is read but not properly handed to the next
stage. Even if that is fixed, the next problem is that it only checks if it's a
redirect on load and not on save, where it's throwing it's hand up.
The fix is simply to change the Page instance to the redirect target if the
option is set.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69185
Bug ID: 69185
Summary: Option -create for category add doesn't create pages
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: category.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: CommodoreFabianus(a)gmx.de
Web browser: ---
Mobile Platform: ---
The default behaviour is with scripts/category.py when it's adding a category,
that not existing pages are skipped.
This is due to the fact that when its loading the page and it's empty it
doesn't return the empty string if the option is set. This basically applies
also to "-redirect" and category pages, although there is still a underlying
bug.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68725
Bug ID: 68725
Summary: import of compat SVN working copy requires internet
connection
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: sebastian.bank(a)uni-leipzig.de
Web browser: ---
Mobile Platform: ---
wikipedia.py retrieves version.getversiondict()["rev"] to set the User-agent
when imported.
https://gerrit.wikimedia.org/r/#/c/86374/ changed version.getversion_svn() to
unconditionally ask github for the git-hash. However, the hash itself isn't
actually used in wikipedia.py (see also
https://bugzilla.wikimedia.org/show_bug.cgi?id=54686).
This undermines e.g. to unpickle previously saved page objects when access to
github.com does not work. It also seems an unpleasant thing, to make such a
roundtrip every time the library is imported, right?
Maybe getversiondict() and the code it dispatches to can get an opt-out (not to
retrieve information by speaking to the network) to be used in the User-agent
case.
>>> import wikipedia
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import wikipedia
File "wikipedia.py", line 6023, in <module>
versionrev=(version.getversiondict()["rev"])
File "pywikibot\version.py", line 58, in getversiondict
(tag, rev, date, hsh) = getversion_svn(_program_dir)
File "pywikibot\version.py", line 151, in getversion_svn
{'Label': rev, 'User-Agent': 'SVN/1.7.5-pywikibot1'})
File "C:\Program Files\Python27\lib\httplib.py", line 995, in request
self._send_request(method, url, body, headers)
File "C:\Program Files\Python27\lib\httplib.py", line 1029, in _send_request
self.endheaders(body)
File "C:\Program Files\Python27\lib\httplib.py", line 991, in endheaders
self._send_output(message_body)
File "C:\Program Files\Python27\lib\httplib.py", line 844, in _send_output
self.send(msg)
File "C:\Program Files\Python27\lib\httplib.py", line 806, in send
self.connect()
File "C:\Program Files\Python27\lib\httplib.py", line 1194, in connect
self.timeout, self.source_address)
File "C:\Program Files\Python27\lib\socket.py", line 553, in
create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno 11004] getaddrinfo failed
Pywikibot: pywikibot-compat (8317312, s11008, 2014/07/27, 11:54:19, ok)
Release version: 1.0b1
Python: 2.7.8 (default, Jun 30 2014, 16:08:48) [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=67956
Bug ID: 67956
Summary: Intermittent failure of test_fromPage_noitem
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: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
It first appeared here, on the py2.7 build only
https://travis-ci.org/wikimedia/pywikibot-core/jobs/29067805
And then in the next build it disappeared.
It is back again:
https://travis-ci.org/wikimedia/pywikibot-core/jobs/29843942
This is almost certainly a problem with the utility method
get_test_unconnected_page, which is a rough hack and should be replaced with a
generator, or made more robust.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=60042
Web browser: ---
Bug ID: 60042
Summary: Problem with uploading files
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: massari.fen(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Getting:
ERROR: Upload error:
Traceback (most recent call last):
File "scripts/upload.py", line 214, in upload_image
ignore_warnings=self.ignoreWarning)
File "/root/mybot/core/pywikibot/site.py", line 3246, in upload
raise ValueError("APISite.upload: cannot upload file without "
ValueError: APISite.upload: cannot upload file without a summary/description.
Even with -noverify I get the same error. And if I try to change the desc I
get: Could not load GUI modules: No module named gui and the error from
above!
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=59078
Web browser: ---
Bug ID: 59078
Summary: Customize clean_sandbox.py for Egyptian Arabic (arz)
Wikipedia
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: meno25mail(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
In clean_sandbox.py script of the compat branch, please customize it for the
Egyptian Arabic (arz) Wikipedia:
content = {
'arz': u'{{عنوان السبوره}}\n<!-- مرحبا! خد راحتك فى تجريب مهاراتك فى
التحرير تحت الخط ده. بما إن الصفحه دى لتجارب التعديل، فالصفحه دى حيتم تنضيفها
اوتوماتيكيا كل 12 ساعه. -->',
sandboxTitle = {
'arz': u'Project:السبوره',
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=59107
Web browser: ---
Bug ID: 59107
Summary: Issue in template.py with summary
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: dixond(a)acm.lviv.ua
Classification: Unclassified
Mobile Platform: ---
Created attachment 14190
--> https://bugzilla.wikimedia.org/attachment.cgi?id=14190&action=edit
Patch for the reported issue
template.py passes the "editSummary" parameter to replace.ReplaceRobot, however
the correct parameter name should be "summary". The patch is attached.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68613
Bug ID: 68613
Summary: checkimages reports execution time even when the bot
does execute
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: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
If there was an error parsing the command line arguments, or sys.exit was
called when -help was found, the execution time is output (to stderr by
default).
$ python pwb.py scripts/checkimages.py -help
...
Execution time: 0 seconds
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55286
Web browser: ---
Bug ID: 55286
Summary: imagetransfer.py does not work
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/1134/
Reported by: paleozavr
Created on: 2010-03-07 20:39:31
Subject: imagetransfer.py does not work
Original description:
This text it writes instead of working
C:\bot3>imagetransfer.py -fromlang:en -tolang:uk
C:\bot3\imagetransfer.py:32: DeprecationWarning: the md5 module is deprecated;
u
se hashlib instead
import re, sys, md5, urllib
Traceback \(most recent call last\):
File "C:\bot3\imagetransfer.py", line 310, in <module>
main\(\)
File "C:\bot3\imagetransfer.py", line 306, in main
bot.run\(\)
File "C:\bot3\imagetransfer.py", line 235, in run
imagelist = page.imagelinks\(followRedirects = True\)
File "C:\bot3\wikipedia.py", line 2262, in imagelinks
for page in self.linkedPages\(withImageLinks = True\):
File "C:\bot3\wikipedia.py", line 2209, in linkedPages
thistxt = removeLanguageLinks\(self.get\(get\_redirect=True\),
File "C:\bot3\wikipedia.py", line 618, in get
self.\_contents = self.\_getEditPage\(get\_redirect = get\_redirect, throttle =
t
hrottle, sysop = sysop\)
File "C:\bot3\wikipedia.py", line 692, in \_getEditPage
raise NoPage\(self.site\(\), self.aslink\(forceInterwiki = True\),"Page does
not
exist. In rare cases, if you are certain the page does exist, look into
overridi
ng family.RversionTab" \)
pywikibot.exceptions.NoPage: \(wikipedia:uk, u'\[\[uk:-fromlang:en\]\]', 'Page
does n
ot exist. In rare cases, if you are certain the page does exist, look into
overr
iding family.RversionTab'\)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55299
Web browser: ---
Bug ID: 55299
Summary: selflink.py chokes - condition unclear
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/979/
Reported by: purodha
Created on: 2009-07-15 14:19:03
Subject: selflink.py chokes - condition unclear
Original description:
python /home/purodha/pywikipedia/selflink.py -start:Hz -v
Pywikipediabot \(r7065 \(wikipedia.py\), 2009/07/14, 19:34:51\)
Python 2.5.2 \(r252:60911, Jan 4 2009, 21:59:32\)
\[GCC 4.3.2\]
Getting 60 pages from wikipedia:ksh...
>>> HÖ \(Watt eßß datt?\) <<<
No changes necessary.
>>> Häijmat- un Kooshtallmusejum <<<
No changes necessary.
>>> Hämmche <<<
No changes necessary.
>>> Hängche <<<
No changes necessary.
>>> Hännesje <<<
No changes necessary.
>>> Hännesje Tiater <<<
No changes necessary.
>>> Häpi Änd <<<
No changes necessary.
>>> Hätz <<<
No changes necessary.
>>> Häädejraad \(Blëjshteff\) <<<
Exception in Page constructor
site=wikipedia:ksh, title=%231, insite=wikipedia:ksh, defaultNamespace=0
Traceback \(most recent call last\):
File "/home/purodha/pywikipedia/selflink.py", line 249, in <module>
main\(\)
File "/home/purodha/pywikipedia/selflink.py", line 245, in main
bot.run\(\)
File "/home/purodha/pywikipedia/selflink.py", line 189, in run
self.treat\(page\)
File "/home/purodha/pywikipedia/selflink.py", line 168, in treat
text, jumpToBeginning = self.handleNextLink\(page, text, match\)
File "/home/purodha/pywikipedia/selflink.py", line 113, in handleNextLink
linkedPage = wikipedia.Page\(page.site\(\), match.group\('title'\)\)
File "/home/purodha/pywikipedia/wikipedia.py", line 456, in \_\_init\_\_
raise InvalidTitle\(u"Invalid title starting with a \#: '%s'" % t\)
wikipedia.InvalidTitle: Invalid title starting with a \#: '\#1'
purodha@nightshade:~/redir$
--
You are receiving this mail because:
You are the assignee for the bug.