Patch merged into master

------
André Costa
GLAM Developer
Wikimedia Sverige

On 10 Aug 2016 21:33, "André Costa" <[email protected]> wrote:

> Hum.
>
> Something subtle is happening here.
>
> When I log in using the following in my user_config.py:
> password_file = "secretPassword"
> usernames['commons']['commons'] = u'COHBot@GAR'
> and with "('COHBot@GAR', <GeneratedPassword>)" in a file called
> secretPassword the bot logs in as "COHBot@GAR"
>
> but without the password_file line I simply get:
> Username 'COHBot@GAR' does not exist on commons:commons.
>
> This is because login.py calls check_user_exists() before asking you for
> the password and that function does not deal with the BotPassword username.
>
> Tracking this on https://phabricator.wikimedia.org/T142623 and I'll put
> together a patch. Untill then you can use the password_file solution.
>
> /André
>
>
>
>
>
> On 10 August 2016 at 16:39, Yongmin Hong <[email protected]> wrote:
>
>> Hi,
>>
>> Ok, I modified the user-config.py to "usernames ['wikipedia']['ko'] =
>> u'Revibot@Pywikibot'" (no "", of course), and tried the login again:
>>
>> Result is here[1].
>>
>> [1]: https://gist.github.com/revi/86feefedcc46a99c71d561d8c0c8f421
>>
>> Thanks.
>>
>>
>> 2016-08-10 23:30 GMT+09:00 André Costa <[email protected]>:
>>
>>> Hi,
>>>
>>> In your user config you should stick Revibot@Pywikibot as your password
>>> and the generated bot password as the password.
>>>
>>> I'we used this both in my user_config and also in a "password_file" and
>>> both work.
>>>
>>> Cheers,
>>> André / Lokal_Profil
>>>
>>> On 10 August 2016 at 16:12, Yongmin Hong <[email protected]> wrote:
>>>
>>>> Hello.
>>>>
>>>> I was following recent update on the list and tried to get bot
>>>> passwords for the time being. (I have few bots, and I don't want to
>>>> maintain 4n bits of random numbers, so I just decided to stick to
>>>> BotPasswords, which just have one stuff for each bot to write down.)
>>>>
>>>> There's no guide whatsoever, even in [[mw:Manual:Bot Passwords]]
>>>> <https://www.mediawiki.org/wiki/Manual:Bot_passwords> nor Pywikibot
>>>> manual, what should be put. For example, I don't know if I should put just
>>>> 'Revibot' for the username part, or I need to say "Revibot@Pywikibot"
>>>> on the user-config.py.
>>>>
>>>> (I tried Revibot and the generated bot password, which gave me the
>>>> following error:
>>>>
>>>>   Password for user Revibot on wikidata:wikidata (no characters will be
>>>> shown):
>>>>   Logging in to wikidata:wikidata as Revibot
>>>>   ERROR: Login failed (Failed).
>>>>
>>>> Any idea?
>>>>
>>>> Thanks,
>>>> --
>>>>  - revi
>>>>    Wikimedian
>>>>    [[m:User:-revi]] <https://meta.wikimedia.org/wiki/User:-revi>
>>>>
>>>> _______________________________________________
>>>> pywikibot mailing list
>>>> [email protected]
>>>> https://lists.wikimedia.org/mailman/listinfo/pywikibot
>>>>
>>>>
>>>
>>> _______________________________________________
>>> pywikibot mailing list
>>> [email protected]
>>> https://lists.wikimedia.org/mailman/listinfo/pywikibot
>>>
>>>
>>
>>
>> --
>>  - revi
>>    Wikimedian
>>    [[m:User:-revi]] <https://meta.wikimedia.org/wiki/User:-revi>
>>
>> _______________________________________________
>> pywikibot mailing list
>> [email protected]
>> https://lists.wikimedia.org/mailman/listinfo/pywikibot
>>
>>
>
_______________________________________________
pywikibot mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot

Reply via email to