As shown in you version.py your working copy is outdated. You need r11719 or newer which solves the outboundlocalerror. Greetings Xqt
----- Ursprüngliche Nachricht ----- Von: Bináris Gesendet: 09.07.2013 00:09 An: Pywikipedia discussion list Betreff: Re: [Pywikipedia-l] Patch.exe, what sort of message is this?
I forgot the detailes: c:\Pywikipedia>replace.py -search WARNING: Download package "patch.exe" from http://downloads.sourceforge.net/project/gnuwin32/patch/2.5.9-7/patch-2.5.9-... -bin.zip WARNING: Size of download: 126248 byte(s) WARNING: MIME type: ['application', 'x-zip-compressed'] WARNING: Extract package "patch.exe" to C:\Pywikipedia\externals\patch.exe. Traceback (most recent call last): File "C:\Pywikipedia\replace.py", line 171, in <module> import wikipedia as pywikibot File "C:\Pywikipedia\wikipedia.py", line 149, in <module> import externals # allow imports from externals File "C:\Pywikipedia\externals__init__.py", line 387, in <module> check_setup('patch.exe') File "C:\Pywikipedia\externals__init__.py", line 372, in check_setup if download_install(modules_needed[m][1], m, path): File "C:\Pywikipedia\externals__init__.py", line 315, in download_install arch.extractall(os.path.join(path, '__setup_tmp/')) UnboundLocalError: local variable 'arch' referenced before assignment
Output of version.py: c:\Pywikipedia>version.py WARNING: Download package "patch.exe" from http://downloads.sourceforge.net/project/gnuwin32/patch/2.5.9-7/patch-2.5.9-... -bin.zip WARNING: Size of download: 126248 byte(s) WARNING: MIME type: ['application', 'x-zip-compressed'] WARNING: Extract package "patch.exe" to C:\Pywikipedia\externals\patch.exe. local variable 'arch' referenced before assignment Serious import error; pywikibot not available - was it configured? Pywikipedia trunk/pywikipedia/ (r11712, 2013/07/05, 01:17:44, OUTDATED) Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] config-settings: use_api = True use_api_login = True unicode test: ok
_______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
My bot too is killed..... it can't create new Page pages:
Creating page [[Pagina:Labi 1996.djvu/43]] via API HTTPError: 500 Internal Server Error WARNING: Could not open 'http://it.wikisource.org/w/api.php'.
:-(
Alex brollo
2013/7/9 info@gno.de
As shown in you version.py your working copy is outdated. You need r11719 or newer which solves the outboundlocalerror. Greetings Xqt
Von: Bináris Gesendet: 09.07.2013 00:09 An: Pywikipedia discussion list Betreff: Re: [Pywikipedia-l] Patch.exe, what sort of message is this?
I forgot the detailes: c:\Pywikipedia>replace.py -search WARNING: Download package "patch.exe" from
http://downloads.sourceforge.net/project/gnuwin32/patch/2.5.9-7/patch-2.5.9-... -bin.zip WARNING: Size of download: 126248 byte(s) WARNING: MIME type: ['application', 'x-zip-compressed'] WARNING: Extract package "patch.exe" to C:\Pywikipedia\externals\patch.exe. Traceback (most recent call last): File "C:\Pywikipedia\replace.py", line 171, in <module> import wikipedia as pywikibot File "C:\Pywikipedia\wikipedia.py", line 149, in <module> import externals # allow imports from externals File "C:\Pywikipedia\externals__init__.py", line 387, in <module> check_setup('patch.exe') File "C:\Pywikipedia\externals__init__.py", line 372, in check_setup if download_install(modules_needed[m][1], m, path): File "C:\Pywikipedia\externals__init__.py", line 315, in download_install arch.extractall(os.path.join(path, '__setup_tmp/')) UnboundLocalError: local variable 'arch' referenced before assignment
Output of version.py: c:\Pywikipedia>version.py WARNING: Download package "patch.exe" from
http://downloads.sourceforge.net/project/gnuwin32/patch/2.5.9-7/patch-2.5.9-... -bin.zip WARNING: Size of download: 126248 byte(s) WARNING: MIME type: ['application', 'x-zip-compressed'] WARNING: Extract package "patch.exe" to C:\Pywikipedia\externals\patch.exe. local variable 'arch' referenced before assignment Serious import error; pywikibot not available - was it configured? Pywikipedia trunk/pywikipedia/ (r11712, 2013/07/05, 01:17:44, OUTDATED) Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] config-settings: use_api = True use_api_login = True unicode test: ok
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
I'm working on a non wikipedia mediawiki -- lotrowiki.com.
Attempting to use the browser function on replace (b) yields a 404 because it is looking for "lotro-wiki.com/wiki/<PAGENAME>
Not being a Python programmer, so far I have not been able to figure out where this "prefix" is coming from. It is correctly finding the hostname and the pagename... but it is inserting "wiki/" in front of the pagename.
Can someone tell me what module is doing this?
T.T.F.N. William H. Magill
lotro-wiki.com
magill@icloud.com magill@mac.com whmagill@gmail.com
On Wed, Jul 10, 2013 at 4:07 AM, William H. Magill magill@icloud.comwrote:
I'm working on a non wikipedia mediawiki -- lotrowiki.com.
Attempting to use the browser function on replace (b) yields a 404 because it is looking for "lotro-wiki.com/wiki/<PAGENAME>
Not being a Python programmer, so far I have not been able to figure out where this "prefix" is coming from. It is correctly finding the hostname and the pagename... but it is inserting "wiki/" in front of the pagename.
Can someone tell me what module is doing this?
It's nicepath() in family.py. In the family file, add:
def nicepath(self, code): return '/'
And to avoid having you back here for a very similar problem tomorrow, also add:
def scriptparth(self, code): return ''
On Wed, Jul 10, 2013 at 4:28 AM, Andre Engels andreengels@gmail.com wrote:
On Wed, Jul 10, 2013 at 4:07 AM, William H. Magill magill@icloud.comwrote:
I'm working on a non wikipedia mediawiki -- lotrowiki.com.
Attempting to use the browser function on replace (b) yields a 404 because it is looking for "lotro-wiki.com/wiki/<PAGENAME>
Not being a Python programmer, so far I have not been able to figure out where this "prefix" is coming from. It is correctly finding the hostname and the pagename... but it is inserting "wiki/" in front of the pagename.
Can someone tell me what module is doing this?
It's nicepath() in family.py. In the family file, add:
def nicepath(self, code): return '/'
And to avoid having you back here for a very similar problem tomorrow, also add:
def scriptparth(self, code): return ''
Just as I hit 'send' I noticed that there's a typo there: It should be "scriptpath", not "scriptparth".
On Jul 9, 2013, at 10:29 PM, Andre Engels andreengels@gmail.com wrote:
On Wed, Jul 10, 2013 at 4:28 AM, Andre Engels andreengels@gmail.com wrote: On Wed, Jul 10, 2013 at 4:07 AM, William H. Magill magill@icloud.com wrote: I'm working on a non wikipedia mediawiki -- lotrowiki.com.
Attempting to use the browser function on replace (b) yields a 404 because it is looking for "lotro-wiki.com/wiki/<PAGENAME>
Not being a Python programmer, so far I have not been able to figure out where this "prefix" is coming from. It is correctly finding the hostname and the pagename... but it is inserting "wiki/" in front of the pagename.
Can someone tell me what module is doing this?
It's nicepath() in family.py. In the family file, add:
def nicepath(self, code): return '/'
And to avoid having you back here for a very similar problem tomorrow, also add:
def scriptparth(self, code): return ''
Just as I hit 'send' I noticed that there's a typo there: It should be "scriptpath", not "scriptparth".
Thanks... "This family file was auto-generated by $Id: generate_family_file.py 11542 2013-05-17 19:58:40Z drtrigon $
It already contains: -------<cut here>----- def scriptpath(self, code): return { 'en': u'', }[code] -------<cut here>-----
Is that ok, or should I truncate it to match your insert...
T.T.F.N. William H. Magill
magill@icloud.com magill@mac.com whmagill@gmail.com
On Wed, Jul 10, 2013 at 4:36 AM, William H. Magill magill@icloud.comwrote:
On Jul 9, 2013, at 10:29 PM, Andre Engels andreengels@gmail.com wrote:
On Wed, Jul 10, 2013 at 4:28 AM, Andre Engels andreengels@gmail.com
wrote:
On Wed, Jul 10, 2013 at 4:07 AM, William H. Magill magill@icloud.com
wrote:
I'm working on a non wikipedia mediawiki -- lotrowiki.com.
Attempting to use the browser function on replace (b) yields a 404
because it is looking for "lotro-wiki.com/wiki/<PAGENAME>
Not being a Python programmer, so far I have not been able to figure out
where this "prefix" is coming from.
It is correctly finding the hostname and the pagename... but it is
inserting "wiki/" in front of the pagename.
Can someone tell me what module is doing this?
It's nicepath() in family.py. In the family file, add:
def nicepath(self, code): return '/'
And to avoid having you back here for a very similar problem tomorrow,
also add:
def scriptparth(self, code): return ''
Just as I hit 'send' I noticed that there's a typo there: It should be
"scriptpath", not "scriptparth".
Thanks... "This family file was auto-generated by $Id: generate_family_file.py 11542 2013-05-17 19:58:40Z drtrigon $
It already contains: -------<cut here>----- def scriptpath(self, code): return { 'en': u'', }[code] -------<cut here>-----
Is that ok, or should I truncate it to match your insert...
It's okay - both versions should probably have the same result.
It's interesting to say for a 2-days-old and by that time correctly working copy to be outdated. I can't see a reason for what properly working programs should be broken without prior notice. What was the *critical*issue for what anybody was forced to block replace.py?
Additionally, to force somebody to download and run an unknown .EXE without further eyplanation when using an open source project is very unfriendly thing and by no means the proper way of developing the framework.
First, an exe is an alien corpus here and should not be part of an open source framework. Second, majority of scripts had run correctly and without any problem by that time. Now, for I don't know what kind of development of I don't know which part of the project, properly working scripts were broken. Users who want to run simple scripts should be left to run them unless there is any critical problem.
Too many breaking changes suddenly! This was not the Pywiki way by this time and I don't like this new style!
2013/7/9 info@gno.de
As shown in you version.py your working copy is outdated. You need r11719 or newer which solves the outboundlocalerror. Greetings Xqt
Von: Bináris Gesendet: 09.07.2013 00:09 An: Pywikipedia discussion list Betreff: Re: [Pywikipedia-l] Patch.exe, what sort of message is this?
I forgot the detailes: c:\Pywikipedia>replace.py -search WARNING: Download package "patch.exe" from
http://downloads.sourceforge.net/project/gnuwin32/patch/2.5.9-7/patch-2.5.9-... -bin.zip WARNING: Size of download: 126248 byte(s) WARNING: MIME type: ['application', 'x-zip-compressed'] WARNING: Extract package "patch.exe" to C:\Pywikipedia\externals\patch.exe. Traceback (most recent call last): File "C:\Pywikipedia\replace.py", line 171, in <module> import wikipedia as pywikibot File "C:\Pywikipedia\wikipedia.py", line 149, in <module> import externals # allow imports from externals File "C:\Pywikipedia\externals__init__.py", line 387, in <module> check_setup('patch.exe') File "C:\Pywikipedia\externals__init__.py", line 372, in check_setup if download_install(modules_needed[m][1], m, path): File "C:\Pywikipedia\externals__init__.py", line 315, in download_install arch.extractall(os.path.join(path, '__setup_tmp/')) UnboundLocalError: local variable 'arch' referenced before assignment
Output of version.py: c:\Pywikipedia>version.py WARNING: Download package "patch.exe" from
http://downloads.sourceforge.net/project/gnuwin32/patch/2.5.9-7/patch-2.5.9-... -bin.zip WARNING: Size of download: 126248 byte(s) WARNING: MIME type: ['application', 'x-zip-compressed'] WARNING: Extract package "patch.exe" to C:\Pywikipedia\externals\patch.exe. local variable 'arch' referenced before assignment Serious import error; pywikibot not available - was it configured? Pywikipedia trunk/pywikipedia/ (r11712, 2013/07/05, 01:17:44, OUTDATED) Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] config-settings: use_api = True use_api_login = True unicode test: ok
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l