Bugs item #3406565, was opened at 2011-09-08 13:58 Message generated for change (Comment added) 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: Closed
Resolution: None Priority: 5 Private: No Submitted By: xqt (xqt)
Assigned to: xqt (xqt)
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.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-07-09 02:48
Message: self.done() in r10449
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3406565...
pywikipedia-bugs@lists.wikimedia.org