Bugs item #3606277, was opened at 2013-02-27 14:29 Message generated for change (Comment added) made by amird You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3606277...
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: Duplicate
Priority: 5 Private: No Submitted By: reza (reza1615) Assigned to: Nobody/Anonymous (nobody) Summary: creation of some items shows session-failure error
Initial Comment: wikipedia.py for creation of some items shows session-failure error but if we run code many time for that name it will create!!
i.e: ائل تپه سی
my code was
# -*- coding: utf-8 -*- import wikipedia site = wikipedia.getSite('fa') name =u"ائل تپه سی" page = wikipedia.Page(site, name) data = wikipedia.DataPage(page) try: items = data.get() except wikipedia.NoPage: data.createitem(u"Bot: Importing article from Persian wikipedia") except Exception,e: wikipedia.output('\03{lightred}Passed! error was : '+str(e)+' \03{default}')
----------------------------------------------------------------------
Comment By: Amir (amird)
Date: 2013-03-12 09:30
Message: duplicate of bug #3607609
----------------------------------------------------------------------
Comment By: Amir (amird) Date: 2013-02-28 02:52
Message: You don't have problem because you're not using wikidata's API. I can made a change to try again if the createitem didn't succeed but i won't solve the bug
----------------------------------------------------------------------
Comment By: reza (reza1615) Date: 2013-02-28 02:29
Message: @nobody : I said it works randomly! some times after 2 or 3 time repeating it works! as amir said may be it is wikidata's but in wikidata I didn't have problem with them!
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody) Date: 2013-02-27 23:43
Message: BTW: The bot is working for me: http://www.wikidata.org/wiki/Q5526605
----------------------------------------------------------------------
Comment By: Amir (amird) Date: 2013-02-27 22:52
Message: It's not a PWB bug. It's a wikidata's bug, tell them and i guess it's because of some special characters in the title like "ئ"
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3606277...
pywikipedia-bugs@lists.wikimedia.org