https://bugzilla.wikimedia.org/show_bug.cgi?id=64899
Bug ID: 64899 Summary: object has no atribute 'argvu' Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: critical Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jan.dudik@gmail.com Web browser: --- Mobile Platform: ---
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
https://bugzilla.wikimedia.org/show_bug.cgi?id=64899
Merlijn van Deen valhallasw@arctus.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |valhallasw@arctus.nl
--- Comment #1 from Merlijn van Deen valhallasw@arctus.nl --- 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?
https://bugzilla.wikimedia.org/show_bug.cgi?id=64899
--- Comment #2 from JAn Dudík jan.dudik@gmail.com --- 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'>
https://bugzilla.wikimedia.org/show_bug.cgi?id=64899
--- Comment #3 from Merlijn van Deen valhallasw@arctus.nl --- 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?
https://bugzilla.wikimedia.org/show_bug.cgi?id=64899
Betacommand Phoenixoverride@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Phoenixoverride@gmail.com
--- Comment #4 from Betacommand Phoenixoverride@gmail.com --- Looks like JAn Dudík has modified his pwb.py
https://bugzilla.wikimedia.org/show_bug.cgi?id=64899
--- Comment #5 from JAn Dudík jan.dudik@gmail.com --- (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')
....
https://bugzilla.wikimedia.org/show_bug.cgi?id=64899
--- Comment #6 from JAn Dudík jan.dudik@gmail.com --- (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
https://bugzilla.wikimedia.org/show_bug.cgi?id=64899
--- Comment #7 from Merlijn van Deen valhallasw@arctus.nl --- 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.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64899
--- Comment #8 from JAn Dudík jan.dudik@gmail.com --- 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
https://bugzilla.wikimedia.org/show_bug.cgi?id=64899
--- Comment #9 from JAn Dudík jan.dudik@gmail.com --- Deleting all files (includig svn, git etc. directories) in core and replacing from nightly solved problem - I will check it in next days
https://bugzilla.wikimedia.org/show_bug.cgi?id=64899
--- Comment #10 from Merlijn van Deen valhallasw@arctus.nl --- OK, that's strange. I would expect it to be related to this commit:
https://github.com/wikimedia/pywikibot-core/commit/aea29ea9ecf83d509698b2a78...
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...
pywikipedia-bugs@lists.wikimedia.org