Patches item #3436146, was opened at 2011-11-10 08:00 Message generated for change (Comment added) made by solab You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3436146...
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: solab (solab) Assigned to: Nobody/Anonymous (nobody) Summary: Compatibilit pywikipedia and mw 1.18.0beta1
Initial Comment: I upgraded MW to 1.18.0.beta1.
the get.py is now broken..
Question is pywikipedia compatible with mw 1.18.0beta1?
Regards G
----------------------------------------------------------------------
Comment By: solab (solab)
Date: 2011-11-11 02:54
Message: Double check non Problem with mediawiki 1.17
python get.py -family:solab Xx -v Config.py - base_dir: /opt/tools/mybot/pywikipedia - done. Pywikipediabot [http] trunk/pywikipedia (r9753, 2011/11/11, 10:12:19) Python 2.7.2+ (default, Oct 4 2011, 20:06:09) [GCC 4.6.1] ###### Sleeping for 1.0 seconds, 2011-11-11 11:53:12 ==== API action:query ==== inprop: protection|subjectid rvprop: content|ids|flags|timestamp|user|comment|size prop: revisions|info titles: Xx rvlimit: 1 ---------------- Requesting API query from solab:en getting huge siprop magicwords... ==== API action:query ==== meta: siteinfo siprop: magicwords ---------------- Requesting API query from solab:en Test
----------------------------------------------------------------------
Comment By: solab (solab) Date: 2011-11-11 02:49
Message: python get.py -family:solab Xx -v Config.py - base_dir: /opt/tools/mybot/pywikipedia - done. Pywikipediabot [http] trunk/pywikipedia (r9753, 2011/11/11, 10:12:19) Python 2.7.2+ (default, Oct 4 2011, 20:06:09) [GCC 4.6.1] ###### Sleeping for 1.0 seconds, 2011-11-11 11:45:28 ==== API action:query ==== inprop: protection|subjectid rvprop: content|ids|flags|timestamp|user|comment|size prop: revisions|info titles: Xx rvlimit: 1 ---------------- Requesting API query from solab:en {u'lastrevid': 8645, u'pageid': 1831, u'title': u'Xx', u'counter': 0, u'length': 4, u'protection': [], u'touched': u'2011-11-10T17:58:41Z', u'new': u'', u'ns': 0} Traceback (most recent call last): File "get.py", line 33, in <module> main() File "get.py", line 29, in main pywikibot.output(page.get(), toStdout = True) File "/opt/tools/mybot/pywikipedia/wikipedia.py", line 694, in get expandtemplates = expandtemplates) File "/opt/tools/mybot/pywikipedia/wikipedia.py", line 788, in _getEditPage raise ServerError('ServerError: No textarea found in %s' % self) pywikibot.exceptions.ServerError: ServerError: No textarea found in [[en:Xx]]
& File uploaded
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2011-11-11 02:41
Message: You must checkout the new pywikibot release from svn first to use the -verbose option. Could you also upload the new family file.
----------------------------------------------------------------------
Comment By: solab (solab) Date: 2011-11-11 02:33
Message: ==STEP1== python generate_family_file.py http://localhost/solab solab Generating family file from http://localhost/solab
================================== api url: http://localhost/solab/api.php MediaWiki version: 1.18.0beta1 ==================================
Determining other languages... Loading wikis... * en... in cache Retrieving namespaces... en Writing families/solab_family.py... families/solab_family.py already exists. Overwrite? (y/n)y ==STEP 2== python get.py -family:solab Xx -v Config.py - base_dir: /opt/tools/mybot/pywikipedia - done. Pywikipediabot [http] trunk/pywikipedia (r9739, 2011/11/10, 07:39:48) Python 2.7.2+ (default, Oct 4 2011, 20:06:09) [GCC 4.6.1] Sleeping for 1.0 seconds, 2011-11-11 11:30:20 ==== API action:query ==== inprop: protection|subjectid rvprop: content|ids|flags|timestamp|user|comment|size prop: revisions|info titles: Xx rvlimit: 1 ---------------- Requesting API query from solab:en Traceback (most recent call last): File "get.py", line 33, in <module> main() File "get.py", line 29, in main pywikibot.output(page.get(), toStdout = True) File "/opt/tools/mybot/pywikipedia/wikipedia.py", line 694, in get expandtemplates = expandtemplates) File "/opt/tools/mybot/pywikipedia/wikipedia.py", line 786, in _getEditPage raise ServerError('ServerError: No textarea found in %s' % self) pywikibot.exceptions.ServerError: ServerError: No textarea found in [[en:Xx]]
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2011-11-11 02:17
Message: In addition to valhallasws suggestion please run your command line again with -verbose option:
python get.py -family:solab Xx -v
I've added a debugging code to the wikipedia library which gives additional information about the page call and the servers response. Please post it.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw) Date: 2011-11-11 02:09
Message: Looks like it should work. Two things that might work: a) generate a family file using generate_family_file.py -- maybe there is something in the file I overlooked. To do this, run: generate_family_file.py <url of a wiki page> solab
b) change 1.18.0beta1 to 1.18 or 1.18.0 (if this fixes it, there is a bug in the version detection code), or to 1.17 (if that fixes it, there is some bigger bug somewhere)
Thanks!
----------------------------------------------------------------------
Comment By: solab (solab) Date: 2011-11-11 02:00
Message: solab_family.py.buggy uploaded
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2011-11-11 01:55
Message: as solab_family.py is not a part of the framework, we need its content.
----------------------------------------------------------------------
Comment By: solab (solab) Date: 2011-11-11 01:33
Message: Veriosn Python 2.7.2+ (default, Oct 4 2011, 20:06:09) [GCC 4.6.1] config-settings: use_api = True use_api_login = True unicode test: ok user-config.py mylang = 'en' family = 'solab' usernames['solab']['en'] = u'xxxx'
MediaWiki 1.18.0beta1 ==Log== python get.py -family:solab Xx Traceback (most recent call last): File "get.py", line 33, in <module> main() File "get.py", line 29, in main pywikibot.output(page.get(), toStdout = True) File "/opt/tools/mybot/pywikipedia/wikipedia.py", line 694, in get expandtemplates = expandtemplates) File "/opt/tools/mybot/pywikipedia/wikipedia.py", line 786, in _getEditPage raise ServerError('ServerError: No textarea found in %s' % self)
==Family== solab_family.py
pywikibot.exceptions.ServerError: ServerError: No textarea found in [[en:Xx]]
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw) Date: 2011-11-10 08:11
Message: Please add the output from version.py, your user-config.py, your family file and the output you get when running get.py.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3436146...
pywikipedia-bugs@lists.wikimedia.org