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-7 -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-7 -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