[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pywikipediabot-users
Subject:    Re: [pywikibot] BotPasswords question
From:       André Costa <lokal.profil () gmail ! com>
Date:       2016-08-11 11:06:49
Message-ID: CAPzQtCa8ZQ_GuWwsys_BtnpPU9BohuiFwT0Wcx1yUMVF0onkVA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Patch merged into master

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

On 10 Aug 2016 21:33, "André Costa" <lokal.profil@gmail.com> 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 <lists@revi.pe.kr> 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 <lokal.profil@gmail.com>:
>>
>>> 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 <lists@revi.pe.kr> 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
>>>> pywikibot@lists.wikimedia.org
>>>> https://lists.wikimedia.org/mailman/listinfo/pywikibot
>>>>
>>>>
>>>
>>> _______________________________________________
>>> pywikibot mailing list
>>> pywikibot@lists.wikimedia.org
>>> https://lists.wikimedia.org/mailman/listinfo/pywikibot
>>>
>>>
>>
>>
>> --
>>  - revi
>>    Wikimedian
>>    [[m:User:-revi]] <https://meta.wikimedia.org/wiki/User:-revi>
>>
>> _______________________________________________
>> pywikibot mailing list
>> pywikibot@lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/pywikibot
>>
>>
>

[Attachment #5 (text/html)]

<p dir="ltr">Patch merged into master <br></p>
<p dir="ltr">------<br>
André Costa<br>
GLAM Developer<br>
Wikimedia Sverige</p>
<div class="gmail_extra"><br><div class="gmail_quote">On 10 Aug 2016 21:33, \
&quot;André Costa&quot; &lt;<a \
href="mailto:lokal.profil@gmail.com">lokal.profil@gmail.com</a>&gt; wrote:<br \
type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div \
dir="ltr"><div><div><div><div>Hum.<br></div><div><br>Something subtle is happening \
here.<br></div><br>When I log in using the following in my <span \
style="font-family:monospace,monospace">user_config.py</span><span \
style="font-family:arial,helvetica,sans-serif">:</span><span \
style="font-family:monospace,monospace"><br>password_file = \
&quot;secretPassword&quot;<br>usernames[&#39;commons&#39;][&#39;commons&#39;<wbr>] = \
u&#39;COHBot@GAR&#39;</span><br></div>and with &quot;<span \
style="font-family:monospace,monospace">(&#39;COHBot@GAR&#39;, \
&lt;GeneratedPassword&gt;)</span>&quot; in a file called secretPassword the bot logs \
in as <span style="font-family:arial,helvetica,sans-serif">&quot;COHBot@GAR&quot;<br></span><br></div>but \
without the <span style="font-family:monospace,monospace">password_file</span><span \
style="font-family:arial,helvetica,sans-serif"> line I simply get:<br><span \
style="font-family:monospace,monospace">Username &#39;COHBot@GAR&#39; does not exist \
on commons:commons.</span><br><br></span></div><div><span \
style="font-family:arial,helvetica,sans-serif">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.<br><br></span></div><div><span \
style="font-family:arial,helvetica,sans-serif">Tracking this on <a \
href="https://phabricator.wikimedia.org/T142623" \
target="_blank">https://phabricator.wikimedia.<wbr>org/T142623</a> and I&#39;ll put \
together a patch. Untill then you can use the password_file \
solution.<br><br></span></div><div><span \
style="font-family:arial,helvetica,sans-serif">/André<br></span></div><div><span \
style="font-family:arial,helvetica,sans-serif"><br><br></span></div><div><span \
style="font-family:arial,helvetica,sans-serif"></span><br></div><div><span \
style="font-family:arial,helvetica,sans-serif"></span></div><div><span \
style="font-family:monospace,monospace"><br></span></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On 10 August 2016 at 16:39, Yongmin \
Hong <span dir="ltr">&lt;<a href="mailto:lists@revi.pe.kr" \
target="_blank">lists@revi.pe.kr</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Ok, I modified the \
user-config.py to &quot;usernames [&#39;wikipedia&#39;][&#39;ko&#39;] = \
u&#39;Revibot@Pywikibot&#39;&quot; (no &quot;&quot;, of course), and tried the login \
again:</div><div><br></div><div>Result is here[1].</div><div><br></div><div>[1]:  <a \
href="https://gist.github.com/revi/86feefedcc46a99c71d561d8c0c8f421" \
target="_blank">https://gist.github.com/r<wbr>evi/86feefedcc46a99c71d561d8c0<wbr>c8f421</a></div><div><br></div><div>Thanks.</div><div><div><div><br></div><div \
class="gmail_extra"><br><div class="gmail_quote">2016-08-10 23:30 GMT+09:00 André \
Costa <span dir="ltr">&lt;<a href="mailto:lokal.profil@gmail.com" \
target="_blank">lokal.profil@gmail.com</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br><br>In your user config \
you should stick Revibot@Pywikibot as your password and the generated bot password as \
the password.<br><br></div>I&#39;we used this both in my user_config and also in a \
&quot;password_file&quot; and both work.<br><br></div>Cheers,<br></div>André / \
Lokal_Profil<br></div><div class="gmail_extra"><br><div \
class="gmail_quote"><div><div>On 10 August 2016 at 16:12, Yongmin Hong <span \
dir="ltr">&lt;<a href="mailto:lists@revi.pe.kr" \
target="_blank">lists@revi.pe.kr</a>&gt;</span> wrote:<br></div></div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div><div dir="ltr">Hello.<div><br></div><div>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&#39;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.)</div><div><br></div><div>There&#39;s no guide whatsoever, even in <a \
href="https://www.mediawiki.org/wiki/Manual:Bot_passwords" \
target="_blank">[[mw:Manual:Bot Passwords]]</a>  nor Pywikibot manual, what should be \
put. For example, I don&#39;t know if I should put just &#39;Revibot&#39; for the \
username part, or I need to say &quot;Revibot@Pywikibot&quot; on the \
user-config.py.</div><div><br></div><div>(I tried Revibot and the generated bot \
password, which gave me the following error:</div><div><br></div><div>   Password for \
user Revibot on wikidata:wikidata (no characters will be shown):  </div><div>   \
Logging in to wikidata:wikidata as Revibot</div><div>   ERROR: Login failed \
(Failed).</div><div><br></div><div>Any idea?</div><div><br \
clear="all"><div>Thanks,</div><span><font color="#888888">-- <br><div \
data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div \
dir="ltr"><div><div dir="ltr">  - revi<div>     Wikimedian</div><div>     <a \
href="https://meta.wikimedia.org/wiki/User:-revi" \
target="_blank">[[m:User:-revi]]</a></div></div></div></div></div></div></div></div></div>
 </font></span></div></div>
<br></div></div>______________________________<wbr>_________________<br>
pywikibot mailing list<br>
<a href="mailto:pywikibot@lists.wikimedia.org" \
target="_blank">pywikibot@lists.wikimedia.org</a><br> <a \
href="https://lists.wikimedia.org/mailman/listinfo/pywikibot" rel="noreferrer" \
target="_blank">https://lists.wikimedia.org/ma<wbr>ilman/listinfo/pywikibot</a><br> \
<br></blockquote></div><br></div> \
<br>______________________________<wbr>_________________<br> pywikibot mailing \
list<br> <a href="mailto:pywikibot@lists.wikimedia.org" \
target="_blank">pywikibot@lists.wikimedia.org</a><br> <a \
href="https://lists.wikimedia.org/mailman/listinfo/pywikibot" rel="noreferrer" \
target="_blank">https://lists.wikimedia.org/ma<wbr>ilman/listinfo/pywikibot</a><br> \
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div \
data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div \
dir="ltr"><div><div dir="ltr">  - revi<div>     Wikimedian</div><div>     <a \
href="https://meta.wikimedia.org/wiki/User:-revi" \
target="_blank">[[m:User:-revi]]</a></div></div></div></div></div></div></div></div></div>
 </div></div></div></div>
<br>______________________________<wbr>_________________<br>
pywikibot mailing list<br>
<a href="mailto:pywikibot@lists.wikimedia.org" \
target="_blank">pywikibot@lists.wikimedia.org</a><br> <a \
href="https://lists.wikimedia.org/mailman/listinfo/pywikibot" rel="noreferrer" \
target="_blank">https://lists.wikimedia.org/ma<wbr>ilman/listinfo/pywikibot</a><br> \
<br></blockquote></div><br></div> </blockquote></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
pywikibot mailing list
pywikibot@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic