Last modified: 2014-05-14 20:49:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T66899, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64899 - object has no atribute 'argvu'
object has no atribute 'argvu'
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized critical
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-05 14:44 UTC by JAn Dudík
Modified: 2014-05-14 20:49 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description JAn Dudík 2014-05-05 14:44:10 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
Comment 1 Merlijn van Deen (test) 2014-05-05 15:27:19 UTC
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?
Comment 2 JAn Dudík 2014-05-05 19:14:12 UTC
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'>
Comment 3 Merlijn van Deen (test) 2014-05-05 19:20:15 UTC
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?
Comment 4 Betacommand 2014-05-05 19:49:19 UTC
Looks like JAn Dudík has modified his pwb.py
Comment 5 JAn Dudík 2014-05-05 20:23:13 UTC
(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')

....
Comment 6 JAn Dudík 2014-05-05 20:27:02 UTC
(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
Comment 7 Merlijn van Deen (test) 2014-05-05 20:55:17 UTC
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.
Comment 8 JAn Dudík 2014-05-06 20:43:58 UTC
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
Comment 9 JAn Dudík 2014-05-06 20:49:00 UTC
Deleting all files (includig svn, git etc. directories) in core and replacing  from nightly solved problem - I will check it in next days
Comment 10 Merlijn van Deen (test) 2014-05-06 20:53:04 UTC
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...
Comment 11 JAn Dudík 2014-05-14 20:49:35 UTC
Reinstalling of bot solved problem

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links