Martimpassos added a comment.
Hello, I'm getting this same error when trying to instantiate specific
objects. This works:
claim = pywikibot.Claim(repo, 'P180')
target = pywikibot.ItemPage(repo, 'Q10332140')
claim.setTarget(target)
item.addClaim(claim, summary='Adding
Chicocvenancio added a comment.
@Mohinem how are you trying to login? There is no login required for
Wikimedia wikis.
TASK DETAIL
https://phabricator.wikimedia.org/T136114
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Chicocvenancio
Cc:
Mohinem added a comment.
I'm trying tologin, but I'm getting this-
WARNING: API error mwoauth-invalid-authorization-invalid-user: The
authorization headers in your request are for a user that does not exist here
Traceback (most recent call last):
File "/srv/paws/pwb/pwb.py",
Chicocvenancio added a comment.
PAWS will auto connect your username to several wikis.TASK DETAILhttps://phabricator.wikimedia.org/T136114EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ChicocvenancioCc: Viztor, Chicocvenancio, yuvipanda, MisterSynergy,
Dvorapa added a comment.
In T136114#4726253, @Framawiki wrote:
Or use -lang:xx arg for provided scripts.
The default used wiki used is http://test.wikipedia.org/.
In my experience I could never use -lang without having the same wiki connected to the username in user-config.pyTASK
Framawiki added a comment.
Or use -lang:xx arg for provided scripts.
The default used wiki used is http://test.wikipedia.org/.TASK DETAILhttps://phabricator.wikimedia.org/T136114EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Chicocvenancio, FramawikiCc:
Chicocvenancio added a comment.
Or define it in code.TASK DETAILhttps://phabricator.wikimedia.org/T136114EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ChicocvenancioCc: Viztor, Chicocvenancio, yuvipanda, MisterSynergy, WalterKlosse, MarcoAurelio, Abbe98,
Dvorapa added a comment.
In T136114#4725329, @Viztor wrote:
This is still an existing bug. So if I fill in my home wiki information in user-config.py. it work successfully, but not if I don't.
I have a theory about what happened, so basically the script is trying to log me into a wikimedia site
MarcoAurelio added a comment.
In T136114#3493304, @yuvipanda wrote:
@MarcoAurelio - is that showing up at paws.tools.wmflabs.org and not at paws.wmflabs.org? Or is it showing up at both?
Sorry for the late reply @yuvipanda. I will test again just to be sure but if my memory does not fail it was
yuvipanda added a comment.
@MarcoAurelio - is that showing up at paws.tools.wmflabs.org and not at paws.wmflabs.org? Or is it showing up at both?TASK DETAILhttps://phabricator.wikimedia.org/T136114EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: yuvipandaCc:
MarcoAurelio added a comment.
marcoaurelio@PAWS:~$ pwb.py redirect do -family:wikibooks -lang:es
Traceback (most recent call last):
File "/srv/paws/pwb/pwb.py", line 262, in
if not main():
File "/srv/paws/pwb/pwb.py", line 255, in main
run_python_file(filename, [filename] + args,
MarcoAurelio added a comment.
@yuvipanda
marcoaurelio@PAWS:~$ pwb.py login -family:wikibooks -lang:es
Traceback (most recent call last):
File "/srv/paws/pwb/pwb.py", line 262, in
if not main():
File "/srv/paws/pwb/pwb.py", line 255, in main
run_python_file(filename, [filename] +
MisterSynergy added a comment.
Works for me as well.TASK DETAILhttps://phabricator.wikimedia.org/T136114EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MisterSynergyCc: yuvipanda, MisterSynergy, WalterKlosse, MarcoAurelio, Abbe98, pywikibot-bugs-list,
Dvorapa added a comment.
@yuvipanda It works as expected for me.TASK DETAILhttps://phabricator.wikimedia.org/T136114EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: DvorapaCc: yuvipanda, MisterSynergy, WalterKlosse, MarcoAurelio, Abbe98, pywikibot-bugs-list,
yuvipanda added a comment.
@MisterSynergy can you (and others!) try out a new install at https://paws.tools.wmflabs.org? All your old files will still be here, but the authentication (and other code) is vastly improved and stable. I'll point paws.wmflabs.org to this in the next few days. Try it
WalterKlosse added a comment.
Thank youTASK DETAILhttps://phabricator.wikimedia.org/T136114EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WalterKlosseCc: WalterKlosse, MarcoAurelio, Abbe98, pywikibot-bugs-list, Framawiki, Tgr, matej_suchanek, Urbanecm,
Urbanecm added a comment.
You're not right. Only 308 Wikipedias and 909 wikis in together ;). You may use https://meta.wikimedia.org/wiki/User:Krinkle/Tools/Global_SUL when signed as your bot to create an account at all wikis by a script.
urbanecm@notebook
WalterKlosse added a comment.
Yesbut it existing thousands of wikisTASK DETAILhttps://phabricator.wikimedia.org/T136114EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WalterKlosseCc: WalterKlosse, MarcoAurelio, Abbe98, pywikibot-bugs-list, Framawiki, Tgr,
Urbanecm added a comment.
As I said: The script tries to login at all existent wikis so you'll have to create your account at it by visiting it for the first time.TASK DETAILhttps://phabricator.wikimedia.org/T136114EMAIL
WalterKlosse added a comment.
When i login site that is writen in the error the error show another wikiTASK DETAILhttps://phabricator.wikimedia.org/T136114EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WalterKlosseCc: WalterKlosse, MarcoAurelio, Abbe98,
Urbanecm added a comment.
Hmm... I've got it. The tools tries to browse ALL wikis per interwiki. You'll need to visit all wikis when logged in to be sure you have an account at all of them. This is totally irelevant to PAWS.TASK DETAILhttps://phabricator.wikimedia.org/T136114EMAIL
Urbanecm added a comment.
Why are you trying to edit wikipedia:ar then? By the way try pwb.py commonscat -start:Category:! -summary:"Přidáno commonscat za použití bota" (note the quotes).TASK DETAILhttps://phabricator.wikimedia.org/T136114EMAIL
WalterKlosse added a comment.
I login on Commons manually but then it write
pywikibot.exceptions.NoUsername: Failed OAuth authentication for wikipedia:ar: The authorization headers in your request are for a user that does not exist hereTASK DETAILhttps://phabricator.wikimedia.org/T136114EMAIL
Framawiki added a comment.
The account was already created on commonswiki, per CentalAuth.TASK DETAILhttps://phabricator.wikimedia.org/T136114EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: FramawikiCc: WalterKlosse, MarcoAurelio, Abbe98, pywikibot-bugs-list,
Urbanecm added a comment.
Just login on Commons manually before you run the bot for the first time.
Dne so 15. čvc 2017 21:06 uživatel WalterKlosse <
no-re...@phabricator.wikimedia.org> napsal:
WalterKlosse added a comment.
I have the same problem after i login i write pwb.py commonscat
WalterKlosse added a comment.
I have the same problem after i login i write pwb.py commonscat -start:Category:! -summary:Přidáno commonscat za použití bota and it respond this:
WARNING CommonscatBot.init set the Bot.site property; this is only needed when the Bot accesses many sites.
Retrieving
MarcoAurelio added a comment.
@Dvorapa: would you please tell me how to do that? I am new to the PAWS
platform. Thanks.TASK DETAILhttps://phabricator.wikimedia.org/T136114EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MarcoAurelioCc: MarcoAurelio, Abbe98,
27 matches
Mail list logo