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&group_…
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&group_…
Bugs item #3404473, was opened at 2011-09-05 16:41
Message generated for change (Comment added) made by avicennasis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3404473&group_…
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: Avicennasis (avicennasis)
Assigned to: xqt (xqt)
Summary: redirect.py Swedish localization
Initial Comment:
redirect.py shouldn't be changing from the Swedish Localization of Redirect to English when fixing double redirects.
Currently, It will change "#OMDIRIGERING [[Foo]]" to "#REDIRECT [[Foo]]" on SvWp, which it should not do. The Swedish redirect, if already in use, should remain.
python version.py
Pywikipedia [http] trunk/pywikipedia (r9483, 2011/08/29, 19:17:43)
Python 2.6.5 (r265:79063, Jun 12 2010, 17:07:01)
[GCC 4.3.4 20090804 (release) 1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: Avicennasis (avicennasis)
Date: 2011-09-15 22:02
Message:
That it is - "return '1.17wmf1'". I don't believe I've touched either
redirect.py or wikipedia_family.py files directly.
I've updated to r9520, and this is still happening.
http://sv.wikipedia.org/w/index.php?title=Stadener,_Sam&diff=prev&oldid=149…
Thinking perhaps I may have tinkered with some setting somewhere, I
downloaded the latest nightly (r9525) and used it for a separate
installation. I ran Generate_user_files.py (with no further modifications
to the user-config file), then login.py, then redirect.py, and it still
happens -
http://sv.wikipedia.org/w/index.php?title=Anv%C3%A4ndare:Avicennasis/sandbo…
I also tried the newest nightly on a windows box with a different version
of python:
Pywikipedia [http] trunk/pywikipedia (r9525, 2011/09/14, 22:54:59)
Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit
(AMD64)]
config-settings:
use_api = True
use_api_login = True
unicode test: triggers problem #3081100
The results I got were the same:
http://sv.wikipedia.org/w/index.php?title=Anv%C3%A4ndare:Avicennasis/sandbo…
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-09-08 17:04
Message:
I've no idea for that because neighter the wikipedia.py parts nor
redirect.py has been changed since release r9483. Could you check the next
edits of redirect.py manually. Do you have any modifications on these two
files or in wikipedia_family.py? Could you check de funktion version() in
wikipedia_family.py. Just search for "def version(". next code line must
be:
return '1.17wmf1'
----------------------------------------------------------------------
Comment By: Avicennasis (avicennasis)
Date: 2011-09-06 16:29
Message:
That works - it returns the "OMDIRIGERING". Hmm. I'll update to the latest
nightly and try again when AvicBot is unblocked on SvWp here shortly. I
have no idea why that happened to begin with, though.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-09-06 12:30
Message:
Hm, I tried it again with my bot and it works as expected:
http://sv.wikipedia.org/w/index.php?title=Manga%C3%A5r&diff=prev&oldid=1486…
Could you put these 3 lines given apove into a file e.g. named
redir_test.py and run it in your DOS-box. What is the result?
----------------------------------------------------------------------
Comment By: Avicennasis (avicennasis)
Date: 2011-09-06 07:19
Message:
http://sv.wikipedia.org/w/index.php?title=V%C3%A4rldsm%C3%A4sterskap_i_bask…
and
http://sv.wikipedia.org/w/index.php?title=VM_i_basket&diff=prev&oldid=14855…
are examples. And I'm currently running this through Cygwin on a Windows
box - I'm not sure how to access (if possible) IDLE from that side.
The Windows side does return it properly, though.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-09-06 04:15
Message:
Do you have a sample for me? I found the bot works fine:
http://sv.wikipedia.org/w/index.php?title=Stora_saltsj%C3%B6n&diff=prev&old…
try the following IDLE commants:
import wikipedia as wp
site = wp.getSite('sv')
site.redirect()
this should print: u'OMDIRIGERING'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3404473&group_…
Bugs item #3408700, was opened at 2011-09-13 16:56
Message generated for change (Comment added) made by wikipedian
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3408700&group_…
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: solve_disambiguation
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Daniel Herding (wikipedian)
Assigned to: Nobody/Anonymous (nobody)
Summary: [rewrite] bot requires login on wikis it won't touch
Initial Comment:
In today's SVN version of the rewrite branch, I'm trying to run
solve_disambiguation -lang:de MSSR
and change the link to "Moldauische Sozialistische Sowjetrepublik". In my user-config.py, I have entered my Bot login for the de Wikipedia.
However, while replacing, the bot crashes because it doesn't have a login for the be (Belarusian) Wikipedia. This happens because in the treat() method of solve_disambiguation, all links are checked, and interwiki links are skipped. To test whether a link is an interwiki link, it compares sites. The Link.site() getter calls the parse() method, which does an API siteinfo request on be: to check whether the wiki is capitalizing titles. For this API request, you need a be: login.
This means that, to run solve_disambiguation.py, you need a login on ALL Wikipedias.
I think that you shouldn't have to do any API requests just to parse a link. Not only do you need a login, but it also slows the bot down.
------
C:\Users\dh\pywikipedia-rewrite>scripts\solve_disambiguation.py -lang:de MSSR
0 - Abkürzung
1 - Mes Souliers Sont Rouges
2 - Moldauische Sozialistische Sowjetrepublik
3 - Redemptoristinnen
4 - Sekundärradar
5 - Wikipedia:Begriffsklärung
Found 3 references.
Will work on 1 pages.
Retrieving 1 pages from wikipedia:de.
>>> Transnistrien-Konflikt <<<
e [[staatliche Souveränität]]. Die Bevölkerung der früheren [[MSSR]] war aufgrun
d der Geschichte Bessarabiens sehr heterogen und
Option (#, r#, [s]kip link, [e]dit page, [n]ext page, [u]nlink, [q]uit,
[t]ag template {{dn}},
[m]ore context, show [d]isambiguation page, [l]ist, [a]dd new): 2
Traceback (most recent call last):
File "C:\Users\dh\pywikipedia-rewrite\scripts\solve_disambiguation.py", line 1
095, in <module>
main()
File "C:\Users\dh\pywikipedia-rewrite\scripts\solve_disambiguation.py", line 1
090, in main
bot.run()
File "C:\Users\dh\pywikipedia-rewrite\scripts\solve_disambiguation.py", line 9
87, in run
if not self.treat(refPage, disambPage):
File "C:\Users\dh\pywikipedia-rewrite\scripts\solve_disambiguation.py", line 6
11, in treat
if foundlink.site != disambPage.site:
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\page.py", line 2380, in site
self.parse()
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\page.py", line 2363, in parse
if self._site.case() == 'first-letter':
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\site.py", line 973, in case
return self.siteinfo['case']
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\site.py", line 967, in siteinfo
self._getsiteinfo()
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\site.py", line 924, in _getsiteinfo
sidata = sirequest.submit()
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\data\api.py", line 220, in submit
self.site.login(False)
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\site.py", line 706, in login
user=self._username[sysop])
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\__init__.py", line 124, in wrapper
return method(*__args, **__kw)
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\__init__.py", line 124, in wrapper
return method(*__args, **__kw)
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\login.py", line 105, in __init__
'wiki_code': self.site.code})
pywikibot.exceptions.NoUsername: ERROR: Username for wikipedia:be is undefined.
If you have an account for that site, please add a line to user-config.py:
usernames['wikipedia']['be'] = 'myUsername'
----------------------------------------------------------------------
>Comment By: Daniel Herding (wikipedian)
Date: 2011-09-15 19:20
Message:
Just realized that there is a separate tracker for the rewrite branch. This
bug has been known there since January 2011. :(
https://jira.toolserver.org/browse/PYWP-10
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3408700&group_…
Patches item #3408799, was opened at 2011-09-13 16:46
Message generated for change (Tracker Item Submitted) made by loxley
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3408799&group_…
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: K.-M. Hansche (loxley)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix search api properties
Initial Comment:
Only recent versions of the search-api return properties via srprop. I'm not sure which api-level introduced them, however they aren't there at level 14.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3408799&group_…
Bugs item #3408700, was opened at 2011-09-13 16:56
Message generated for change (Tracker Item Submitted) made by wikipedian
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3408700&group_…
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: solve_disambiguation
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Daniel Herding (wikipedian)
Assigned to: Nobody/Anonymous (nobody)
Summary: [rewrite] bot requires login on wikis it won't touch
Initial Comment:
In today's SVN version of the rewrite branch, I'm trying to run
solve_disambiguation -lang:de MSSR
and change the link to "Moldauische Sozialistische Sowjetrepublik". In my user-config.py, I have entered my Bot login for the de Wikipedia.
However, while replacing, the bot crashes because it doesn't have a login for the be (Belarusian) Wikipedia. This happens because in the treat() method of solve_disambiguation, all links are checked, and interwiki links are skipped. To test whether a link is an interwiki link, it compares sites. The Link.site() getter calls the parse() method, which does an API siteinfo request on be: to check whether the wiki is capitalizing titles. For this API request, you need a be: login.
This means that, to run solve_disambiguation.py, you need a login on ALL Wikipedias.
I think that you shouldn't have to do any API requests just to parse a link. Not only do you need a login, but it also slows the bot down.
------
C:\Users\dh\pywikipedia-rewrite>scripts\solve_disambiguation.py -lang:de MSSR
0 - Abkürzung
1 - Mes Souliers Sont Rouges
2 - Moldauische Sozialistische Sowjetrepublik
3 - Redemptoristinnen
4 - Sekundärradar
5 - Wikipedia:Begriffsklärung
Found 3 references.
Will work on 1 pages.
Retrieving 1 pages from wikipedia:de.
>>> Transnistrien-Konflikt <<<
e [[staatliche Souveränität]]. Die Bevölkerung der früheren [[MSSR]] war aufgrun
d der Geschichte Bessarabiens sehr heterogen und
Option (#, r#, [s]kip link, [e]dit page, [n]ext page, [u]nlink, [q]uit,
[t]ag template {{dn}},
[m]ore context, show [d]isambiguation page, [l]ist, [a]dd new): 2
Traceback (most recent call last):
File "C:\Users\dh\pywikipedia-rewrite\scripts\solve_disambiguation.py", line 1
095, in <module>
main()
File "C:\Users\dh\pywikipedia-rewrite\scripts\solve_disambiguation.py", line 1
090, in main
bot.run()
File "C:\Users\dh\pywikipedia-rewrite\scripts\solve_disambiguation.py", line 9
87, in run
if not self.treat(refPage, disambPage):
File "C:\Users\dh\pywikipedia-rewrite\scripts\solve_disambiguation.py", line 6
11, in treat
if foundlink.site != disambPage.site:
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\page.py", line 2380, in site
self.parse()
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\page.py", line 2363, in parse
if self._site.case() == 'first-letter':
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\site.py", line 973, in case
return self.siteinfo['case']
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\site.py", line 967, in siteinfo
self._getsiteinfo()
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\site.py", line 924, in _getsiteinfo
sidata = sirequest.submit()
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\data\api.py", line 220, in submit
self.site.login(False)
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\site.py", line 706, in login
user=self._username[sysop])
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\__init__.py", line 124, in wrapper
return method(*__args, **__kw)
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\__init__.py", line 124, in wrapper
return method(*__args, **__kw)
File "C:\Program Files\Python\lib\site-packages\pywikipediabot-2.0alpha-py2.7.
egg\pywikibot\login.py", line 105, in __init__
'wiki_code': self.site.code})
pywikibot.exceptions.NoUsername: ERROR: Username for wikipedia:be is undefined.
If you have an account for that site, please add a line to user-config.py:
usernames['wikipedia']['be'] = 'myUsername'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3408700&group_…
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&group_…
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&group_…
Bugs item #3404473, was opened at 2011-09-05 22:41
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3404473&group_…
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: Avicennasis (avicennasis)
Assigned to: xqt (xqt)
Summary: redirect.py Swedish localization
Initial Comment:
redirect.py shouldn't be changing from the Swedish Localization of Redirect to English when fixing double redirects.
Currently, It will change "#OMDIRIGERING [[Foo]]" to "#REDIRECT [[Foo]]" on SvWp, which it should not do. The Swedish redirect, if already in use, should remain.
python version.py
Pywikipedia [http] trunk/pywikipedia (r9483, 2011/08/29, 19:17:43)
Python 2.6.5 (r265:79063, Jun 12 2010, 17:07:01)
[GCC 4.3.4 20090804 (release) 1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-09-08 23:04
Message:
I've no idea for that because neighter the wikipedia.py parts nor
redirect.py has been changed since release r9483. Could you check the next
edits of redirect.py manually. Do you have any modifications on these two
files or in wikipedia_family.py? Could you check de funktion version() in
wikipedia_family.py. Just search for "def version(". next code line must
be:
return '1.17wmf1'
----------------------------------------------------------------------
Comment By: Avicennasis (avicennasis)
Date: 2011-09-06 22:29
Message:
That works - it returns the "OMDIRIGERING". Hmm. I'll update to the latest
nightly and try again when AvicBot is unblocked on SvWp here shortly. I
have no idea why that happened to begin with, though.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-09-06 18:30
Message:
Hm, I tried it again with my bot and it works as expected:
http://sv.wikipedia.org/w/index.php?title=Manga%C3%A5r&diff=prev&oldid=1486…
Could you put these 3 lines given apove into a file e.g. named
redir_test.py and run it in your DOS-box. What is the result?
----------------------------------------------------------------------
Comment By: Avicennasis (avicennasis)
Date: 2011-09-06 13:19
Message:
http://sv.wikipedia.org/w/index.php?title=V%C3%A4rldsm%C3%A4sterskap_i_bask…
and
http://sv.wikipedia.org/w/index.php?title=VM_i_basket&diff=prev&oldid=14855…
are examples. And I'm currently running this through Cygwin on a Windows
box - I'm not sure how to access (if possible) IDLE from that side.
The Windows side does return it properly, though.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-09-06 10:15
Message:
Do you have a sample for me? I found the bot works fine:
http://sv.wikipedia.org/w/index.php?title=Stora_saltsj%C3%B6n&diff=prev&old…
try the following IDLE commants:
import wikipedia as wp
site = wp.getSite('sv')
site.redirect()
this should print: u'OMDIRIGERING'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3404473&group_…
Bugs item #3406565, was opened at 2011-09-08 22:58
Message generated for change (Tracker Item Submitted) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3406565&group_…
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: InportError 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&group_…
Patches item #3406436, was opened at 2011-09-08 19:42
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3406436&group_…
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: Fixed
Priority: 5
Private: No
Submitted By: Meno25 (meno25)
>Assigned to: xqt (xqt)
Summary: Patch to clean_sandbox.py and fixes.py
Initial Comment:
Please apply the provided patch. It contains updates to clean_sandbox.py and fixes.py.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-09-08 22:44
Message:
done in r9515/9516. I putted the -exceptinsidetag into the fixes.py
record.
Thanks!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3406436&group_…
Bugs item #3406291, was opened at 2011-09-08 16:48
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3406291&group_…
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: Invalid
Priority: 5
Private: No
Submitted By: MGA73 (mga73)
>Assigned to: xqt (xqt)
Summary: tag_nowcommons.py does not work
Initial Comment:
I have been using tag_nowcommons.py to tag files with a {{nowcommons}} but it does not work anymore.
"python tag_nowcommons.py -lang:en" gives this error:
Traceback (most recent call last):
File "tag_nowcommons.py", line 67, in <module>
main(sys.argv[1:])
File "tag_nowcommons.py", line 36, in main
raise add_text.NoEnoughData('You have to specify the generator you want to use for the script!')
NameError: global name 'add_text' is not defined
__version__ = '$Id: tag_nowcommons.py 9482 2011-08-29 16:32:37Z xqt $'
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-09-08 22:08
Message:
You haven't specified the generator like -file, -page, -ref, -cat etc. you
want to use for the script. Use -help for help and see these options
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3406291&group_…