Bugs item #3406565, was opened at 2011-09-08 22:58 Message generated for change (Settings changed) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3406565...
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: xqt (xqt) Assigned to: Nobody/Anonymous (nobody)
Summary: ImportError in tag_nowcommons.py
Initial Comment: tag_nowcommons.py -help
results in a ImportError:
-cosmeticchanges Toggles the cosmetic_changes setting made in config.py or -cc user_config.py to its inverse and overrules it. All other settings and restrictions are untouched.
Traceback (most recent call last): File "C:\pywikibot\SVN\pywikipedia\trunk\pywikipedia\tag_nowcommons.py", line 20, in <module> from nowcommons import nowCommons File "C:\pywikibot\SVN\pywikipedia\trunk\pywikipedia\nowcommons.py", line 72, in <module> for arg in pywikibot.handleArgs(): File "C:\pywikibot\SVN\pywikipedia\trunk\pywikipedia\wikipedia.py", line 7684, in handleArgs showHelp(moduleName) File "C:\pywikibot\SVN\pywikipedia\trunk\pywikipedia\wikipedia.py", line 7973, in showHelp exec('import %s as module' % moduleName) File "<string>", line 1, in <module> File "C:\pywikibot\SVN\pywikipedia\trunk\pywikipedia\tag_nowcommons.py", line 20, in <module> from nowcommons import nowCommons ImportError: cannot import name nowCommons
C:\pywikibot\SVN\pywikipedia\trunk\pywikipedia>
This is only affected during importing the tag_nowcommons as module into wikipedia for the help message. The normal use without -help option works as expected.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3406565...
pywikipedia-bugs@lists.wikimedia.org