Bugs item #3400045, was opened at 2011-08-29 07:36 Message generated for change (Comment added) made by valhallasw You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3400045...
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: confirmed Status: Pending Resolution: Fixed
Priority: 7 Private: No Submitted By: xqt (xqt)
Assigned to: Merlijn S. van Deen (valhallasw)
Summary: generate_family_file brocken with mw 1.17
Initial Comment: generate_family_file is brocken with mediawiki 1.17:
C:\pywikibot\PWB>generate_family_file.py Usage: %s <url> <short name> Example: %s http://www.mywiki.bogus/wiki/Main_Page mywiki This will create the file families/mywiki_family.py Please insert URL to wiki: http://techessentials.org/wiki/Main_Page Please insert a short name (eg: freeciv): myWiki Generating family file from http://techessentials.org/wiki/Main_Page *** WARNING: Api does not seem to be enabled on http://techessentials.org/wiki/Main_Page Traceback (most recent call last): File "C:\pywikibot\PWB\generate_family_file.py", line 261, in <module> FamilyFileGenerator(*sys.argv[1:]).run() File "C:\pywikibot\PWB\generate_family_file.py", line 60, in run w = Wiki(self.base_url) File "C:\pywikibot\PWB\generate_family_file.py", line 235, in __init__ self.server = self.REwgServer.search(data).groups()[0] AttributeError: 'NoneType' object has no attribute 'groups'
The requested wg-strings are missed on the given main page main page (http://techessentials.org/wiki/Main_Page)
See also here: http://pastebin.com/ZJiX1hGA for an other site
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-09-18 17:28
Message: for >= 1.17.0: fixed in r9528/r9529:
valhallasw@dorthonion:~/src/pwb_trunk_ssh$ python generate_family_file.py http://techessentials.org/wiki/Main_Page techessentials Generating family file from http://techessentials.org/wiki/Main_Page
================================== api url: http://techessentials.org/w/api.php MediaWiki version: 1.17.0 ==================================
Determining other languages... Loading wikis... * en... in cache Retrieving namespaces... en Writing families/techessentials_family.py...
Can you give an example for a non-working wiki for v=1.11 and v=1.16.2? 1.16.2 *should* just work, 1.11 might just be too old.
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2011-08-30 07:32
Message: It also does not work with mw 1.11 and 1.16.2
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3400045...