Last modified: 2014-05-14 20:49:35 UTC
I:\py\rewrite>pwb.py harvest_template -ref:template:Infobox_-_sídlo -template:"Infobox - sídlo" -namespace:0 obrázek P18 obec P131 město P131 obvod P131 psč P281 web P856 commons P373 vlajka P41 znak P94 pečeť P158 Configuration variable 'use_api' is defined but unknown. Misspelled? Traceback (most recent call last): File "I:\py\rewrite\pwb.py", line 126, in <module> argvu = pwb.argvu[1:] AttributeError: 'module' object has no attribute 'argvu' <type 'exceptions.AttributeError'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
Is this a nightly or a git checkout? What is the output of pwb version.py, and what version of Windows are you using? Have you updated seperate files?
Windows 8.1 [Version 6.3.9600] pywikipedia core (version 4704 from may 4th) updated by svn (revert to version from 20th april does not solve this bug) I:\py\rewrite>pwb.py version Traceback (most recent call last): File "I:\py\rewrite\pwb.py", line 126, in <module> argvu = pwb.argvu[1:] AttributeError: 'module' object has no attribute 'argvu' <type 'exceptions.AttributeError'>
SVN checkout from where? Are you sure you don't have any local changes? I cannot reproduce this on Windows 7. What's the contents of your user-config.py? Any overrides in userinterfaces?
Looks like JAn Dudík has modified his pwb.py
(In reply to Merlijn van Deen from comment #3) > SVN checkout from where? > > Are you sure you don't have any local changes? I cannot reproduce this on > Windows 7. > > What's the contents of your user-config.py? Any overrides in userinterfaces? SVN from https://github.com/wikimedia/pywikibot-core/trunk I have no local changes in core branch user_config.py (copy from compat): #-*- coding: utf-8 -*- mylang = 'cs' family = 'wikipedia' #console_encoding = 'windows-1250' transliteration_target = console_encoding log = ['*'] put_throttle = 2 cosmetic_changes = True use_api = True userinterface = 'terminal' userinterface_lang = 'cs' password_file= 'passfile' cosmetic_changes_enable['wikipedia'] = ('cs', 'dsb', 'hsb', 'csb') ....
(In reply to Betacommand from comment #4) > Looks like JAn Dudík has modified his pwb.py I have deleted this file and restored it from svn - same problem, only line 134
Very strange -- even with that user-config I can't reproduce it.... Could you try to make a clean checkout, and run pwb.py login without having user-config.py there, and follow the prompts, and see if it works then? In the meanwhile, I'll try and find a Windows 8 host to test.
On second computer with same version of pywikibot and python but with Windows 7 there is no problem. Problem started, when i updated bot by svn - last good version was ca from 20th april. Replacing files from nightly does not solve problem. Actually I am not able to run any script from core, because of error with pwb.py
Deleting all files (includig svn, git etc. directories) in core and replacing from nightly solved problem - I will check it in next days
OK, that's strange. I would expect it to be related to this commit: https://github.com/wikimedia/pywikibot-core/commit/aea29ea9ecf83d509698b2a78b0959bf09a5dbb6 but that's from October (I'm not sure which svn version that is -- sorry). I *think* something got out of sync between your filesystem and svn, but I'm not sure why or how. Maybe github's svn bridge is not as stable as we would hope...
Reinstalling of bot solved problem