Bugs item #3607609, was opened at 2013-03-11 03:01
Message generated for change (Comment added) made by reza1615
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3607609&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: reza (reza1615)
Assigned to: Nobody/Anonymous (nobody)
Summary: creatitem() has problem with pages which have prefix
Initial Comment:
creatitem() has problem with some of page which have prefix like category, template, wikipedia ,... and it shows API error
error:"Got an unknown error when putting data: session-failure"
for example for "Category:United States federal law" it shows this error I made a loop to try it 5 times with 10 second sleep but it doesn't work.
but MerlIwBot which is java base bot can import!
https://www.wikidata.org/w/index.php?title=Q6739935&oldid=10900382https://www.wikidata.org/w/index.php?title=Q6612546&oldid=10601902
if API has bug it should stop all bots not only pywikipedia's!
----------------------------------------------------------------------
>Comment By: reza (reza1615)
Date: 2013-03-11 03:14
Message:
may be
https://bugzilla.wikimedia.org/show_bug.cgi?id=45227
will helpful for solving underscores problems
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3607609&group_…
Bugs item #3607609, was opened at 2013-03-11 03:01
Message generated for change (Settings changed) made by reza1615
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3607609&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: reza (reza1615)
Assigned to: Nobody/Anonymous (nobody)
>Summary: creatitem() has problem with pages which have prefix
Initial Comment:
creatitem() has problem with some of page which have prefix like category, template, wikipedia ,... and it shows API error
error:"Got an unknown error when putting data: session-failure"
for example for "Category:United States federal law" it shows this error I made a loop to try it 5 times with 10 second sleep but it doesn't work.
but MerlIwBot which is java base bot can import!
https://www.wikidata.org/w/index.php?title=Q6739935&oldid=10900382https://www.wikidata.org/w/index.php?title=Q6612546&oldid=10601902
if API has bug it should stop all bots not only pywikipedia's!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3607609&group_…
Bugs item #3607609, was opened at 2013-03-11 03:01
Message generated for change (Tracker Item Submitted) made by reza1615
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3607609&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: reza (reza1615)
Assigned to: Nobody/Anonymous (nobody)
Summary: creatitem() problem with pages which have prefix
Initial Comment:
creatitem() has problem with some of page which have prefix like category, template, wikipedia ,... and it shows API error
error:"Got an unknown error when putting data: session-failure"
for example for "Category:United States federal law" it shows this error I made a loop to try it 5 times with 10 second sleep but it doesn't work.
but MerlIwBot which is java base bot can import!
https://www.wikidata.org/w/index.php?title=Q6739935&oldid=10900382https://www.wikidata.org/w/index.php?title=Q6612546&oldid=10601902
if API has bug it should stop all bots not only pywikipedia's!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3607609&group_…
Bugs item #3607448, was opened at 2013-03-09 12:10
Message generated for change (Tracker Item Submitted) made by nettrom
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3607448&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: rewrite
Group: rewrite
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Morten Wang (nettrom)
Assigned to: Russell Blau (russblau)
Summary: Preloading fails in combination with getReferences()
Initial Comment:
A continuation of bug 3606570, I was hoping this wouldn't be a problem once that got fixed.
See attached testcase, which as of 2013-03-09 outputs:
Retrieving 5 pages from wikipedia:pt.
[[pt:Usuário(a):GoEThe]]
WARNING: preloadpages: Query returned unexpected title 'Usuário:Vitorvicentevalente'
WARNING: preloadpages: Query returned unexpected title 'Usuário:Vitorvicentevalente/Etiquetas'
[[pt:Usuário(a):SuggestBot/Obtendo sugestões regularmente]]
[[pt:Usuário(a):SuggestBot/config]]
Expected output:
Retrieving 5 pages from wikipedia:pt.
[[pt:Usuário(a):GoEThe]]
[[pt:'Usuário:Vitorvicentevalente']]
[[pt:'Usuário:Vitorvicentevalente/Etiquetas']]
[[pt:Usuário(a):SuggestBot/Obtendo sugestões regularmente]]
[[pt:Usuário(a):SuggestBot/config]]
Output of version.py:
Pywikibot (r11182 (pywikibot/__init__.py), 2013/03/06, 13:30:42, OUTDATED)
Python 2.7.1 (r271:86832, Feb 8 2011, 09:38:37)
[GCC 4.2.3]
unicode test: triggers problem #3081100
Note that 'svn info' reports "Revision: 11201".
Thanks for your work on fixing these bugs, I greatly appreciate it!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3607448&group_…
Bugs item #3605596, was opened at 2013-02-21 16:42
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605596&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: redirect
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Private: Yes
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: xqt (xqt)
Summary: 2 redirects on a page: all replaced, instead the first only
Initial Comment:
English Wikipedia: If a redirect page contains more than one redirect, redirect.py - on handling redirects which point to other redirects - doesn't work correctly, see [[en:ANSCA]] (AvocatoBot uses redirect.py): all redirects will be replaced, only the first should.
Maybe, replacement (in redirect.py) of
text = self.site.redirectRegex().sub(
'#%s %s' % (self.site.redirect(),
targetPage.title(asLink=True, textlink=True)),
oldText)
by
text = self.site.redirectRegex().sub(
'#%s %s' % (self.site.redirect(),
targetPage.title(asLink=True, textlink=True)),
oldText,
count = 1)
could correct the error.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-03-09 03:22
Message:
It does not make any sense to have more than one redirect on a redirect
page. The given sampe should become a disambig page.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605596&group_…
Bugs item #3605891, was opened at 2013-02-24 22:35
Message generated for change (Comment added) made by legoktm
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605891&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: login
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Legoktm (legoktm)
Summary: Login-data raising EOFError
Initial Comment:
The script is being run from a cronjob with saved login data. When retrieving a password I get the following error:
Password for user RileyBot on wiktionary:en:
/usr/lib/python2.7/getpass.py:83: GetPassWarning: Can not control echo on the terminal.
passwd = fallback_getpass(prompt, stream)
Warning: Password input may be echoed.
Traceback (most recent call last):
File "globalfunc1.py", line 250, in <module>
main()
File "globalfunc1.py", line 244, in main
bot.run()
File "globalfunc1.py", line 197, in run
sandboxPage.put(translatedContent, translatedMsg)
File "/home/riley/pywikipedia/wikipedia.py", line 1990, in put
sysop=sysop)
File "/home/riley/pywikipedia/wikipedia.py", line 1863, in _getActionUser
self.site().forceLogin(sysop = sysop)
File "/home/riley/pywikipedia/wikipedia.py", line 5861, in forceLogin
if loginMan.login(retry = True):
File "/home/riley/pywikipedia/login.py", line 307, in login
password = True)
File "/home/riley/pywikipedia/wikipedia.py", line 8927, in input
data = ui.input(question, password)
File "/home/riley/pywikipedia/userinterfaces/terminal_interface_base.py", line 129, in input
text = getpass.getpass('')
File "/usr/lib/python2.7/getpass.py", line 83, in unix_getpass
passwd = fallback_getpass(prompt, stream)
File "/usr/lib/python2.7/getpass.py", line 118, in fallback_getpass
return _raw_input(prompt, stream)
File "/usr/lib/python2.7/getpass.py", line 135, in _raw_input
raise EOFError
EOFError
Python people told me "your problem is in the pywikipedia code"
----------------------------------------------------------------------
>Comment By: Legoktm (legoktm)
Date: 2013-03-09 00:19
Message:
Riley set a password_file after discussing it on IRC.
----------------------------------------------------------------------
Comment By: Riley ()
Date: 2013-02-24 22:39
Message:
Another note; I am receiving this error as an email from cron.
----------------------------------------------------------------------
Comment By: Riley ()
Date: 2013-02-24 22:36
Message:
Forgot to login; I posted this.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605891&group_…
Bugs item #3607377, was opened at 2013-03-08 14:58
Message generated for change (Tracker Item Submitted) made by herculefr
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3607377&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Hercule (herculefr)
Assigned to: Nobody/Anonymous (nobody)
Summary: template.py don't get pages that transclude a template
Initial Comment:
I'm trying to use template.py to make a simple replacement. The command line is
python template.py "test 1" "test2"
I run on frwiki where Template:Test 1 is transcluded : http://fr.wikipedia.org/wiki/Sp%C3%A9cial:Pages_li%C3%A9es/Mod%C3%A8le:Test…
The script output is :
python template.py "test 1" test2
Getting references to [[Modèle:Test 1]] via API...
Getting references to [[Modèle:Test 1]] via API...
Getting references to [[Modèle:Test 1]] via API...
Getting references to [[Modèle:Test 1]] via API...
Getting references to [[Modèle:Test 1]] via API...
Getting references to [[Modèle:Test 1]] via API...
Getting references to [[Modèle:Test 1]] via API...
Getting references to [[Modèle:Test 1]] via API...
Getting references to [[Modèle:Test 1]] via API...
Getting references to [[Modèle:Test 1]] via API...
Getting references to [[Modèle:Test 1]] via API...
Getting references to [[Modèle:Test 1]] via API...
Getting references to [[Modèle:Test 1]] via API...
Getting references to [[Modèle:Test 1]] via API...
0 pages were changed.
If I use this script with -cat parameter it works fine.
I run from the toolserver.
python version.py
Pywikipedia [http] trunk/pywikipedia (r11196, 2013/03/08, 21:05:00, ok)
Python 2.7.1 (r271:86832, Jan 4 2011, 13:57:14)
[GCC 4.5.2]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3607377&group_…
Bugs item #3606570, was opened at 2013-03-01 11:41
Message generated for change (Comment added) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3606570&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: rewrite
Group: rewrite
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Morten Wang (nettrom)
Assigned to: Russell Blau (russblau)
Summary: Namespace alias error with preloading and page.exists()
Initial Comment:
As of revision 11144, the following attempt to preload a page in a specific aliased namespace on Portuguese Wikipedia fails:
import pywikibot;
site = pywikibot.getSite('pt');
site.login();
from pywikibot.pagegenerators import PreloadingGenerator, PagesFromTitlesGenerator;
pageGen = PreloadingGenerator(PagesFromTitlesGenerator([u"Usuário:Vitorvicentevalente"], site=site));
for page in pageGen:
print page.title();
Gives the following output:
Retrieving 1 pages from wikipedia:pt.
WARNING: preloadpages: Query returned unexpected title 'Usuário:Vitorvicentevalente'
Creating a Page object and asking if the page exists also fails:
import pywikibot;
site = pywikibot.getSite('pt');
site.login();
page = pywikibot.Page(site, u"Usuário:Vitorvicentevalente");
page.exists();
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pywikibot/page.py", line 417, in exists
return self.site.page_exists(self)
File "pywikibot/site.py", line 1180, in page_exists
return page._pageid > 0
AttributeError: 'Page' object has no attribute '_pageid'
Output of python scripts/version.py
Pywikibot (r10326 (pywikibot/__init__.py), 2012/06/08, 12:08:53, OUTDATED)
Python 2.7.1 (r271:86832, Feb 8 2011, 09:38:37)
[GCC 4.2.3]
unicode test: triggers problem #3081100
----------------------------------------------------------------------
>Comment By: Russell Blau (russblau)
Date: 2013-03-08 12:07
Message:
Fixed in rev 11195
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3606570&group_…
Patches item #3607208, was opened at 2013-03-07 09:20
Message generated for change (Comment added) made by amird
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3607208&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: rubin16 (rubin16)
>Assigned to: Amir (amird)
Summary: commonscat.py update for ru.wiki
Initial Comment:
see patch attached
----------------------------------------------------------------------
>Comment By: Amir (amird)
Date: 2013-03-07 14:08
Message:
done in r11193
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3607208&group_…
Patches item #3607208, was opened at 2013-03-07 09:20
Message generated for change (Tracker Item Submitted) made by rubin16
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3607208&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: rubin16 (rubin16)
Assigned to: Nobody/Anonymous (nobody)
Summary: commonscat.py update for ru.wiki
Initial Comment:
see patch attached
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3607208&group_…