Hi John,
I used a login2.py I am not sure it is my former experiment or an official
script.
With login.py it is
Traceback (most recent call last):
File "C:\Pywikipediacompat\login.py", line 480, in <module>
main()
File "C:\Pywikipediacompat\login.py", line 475, in main
loginMan.login()
File "C:\Pywikipediacompat\login.py", line 349, in login
cookiedata = self.getCookie(api)
File "C:\Pywikipediacompat\login.py", line 263, in getCookie
self.site._token[index] = data['login']['lgtoken'] + "+\\"
KeyError: 'lgtoken'
And with login2:
Traceback (most recent call last):
File "C:\Pywikipediacompat\login2.py", line 496, in <module>
main()
File "C:\Pywikipediacompat\login2.py", line 491, in main
loginMan.login()
File "C:\Pywikipediacompat\login2.py", line 365, in login
cookiedata = self.getCookie(api)
File "C:\Pywikipediacompat\login2.py", line 213, in getCookie
result = data['query']['tokens']['logintoken']
KeyError: 'tokens'
NB login.py definitely gives this answer for the CORRECT password only.
Otherwise it runs without error and says:
Login failed. Wrong password or CAPTCHA answer?
John <[email protected]> ezt írta (időpont: 2021. jún. 1., K,
21:51):
> What error message are you getting? I patched that locally when it
> happened and I cannot reference a clean copy of compat any more. Knowing
> the error would let me narrow it down.
>
> On Tue, Jun 1, 2021 at 3:38 PM Bináris <[email protected]> wrote:
>
>> Thank you, that was not quite the asnwer I hoped.
>> I have many own extensions to replace.py, but I appreciate your effort,
>> and I wll try to write a list with the standard features.
>> Yes, this is the only reason I have Python 2.
>>
>> <[email protected]> ezt írta (időpont: 2021. jún. 1., K, 19:57):
>>
>>>
>>> Hi Binaris,
>>>
>>> I remember there was an issue but I am not able to investigate into this
>>> matter. The compat branch is very outdated and does only support Python 2.
>>> My Python developing version is 3.9, the production system runs with 3.7
>>> and for some reason I have also 3.5 installed which is the default
>>> environment on tools.
>>>
>>> The only way I can support you is to re-implement the missing
>>> functionality. Where is the lag in core? What are you missing?
>>>
>>> Best
>>> xqt
>>>
>>> > Am 01.06.2021 um 08:51 schrieb Bináris <[email protected]>:
>>> >
>>> >
>>> > Hi folks,
>>> >
>>> > I remember that a point the login process of compat was broken, and
>>> developers told they didn't bother any more to correct it. [1]
>>> > I intensively used compat, because the new replace.py is not in the
>>> vicinity of my compat version.
>>> > But last year there was a problem where all bots were forcedly logged
>>> out, and now I cannot use my bot.
>>> >
>>> > Has anything happened since [1]? Or can you give me any hint, how to
>>> begin to solve it on my own?
>>> >
>>> > --
>>> > Bináris
>>> > _______________________________________________
>>> > pywikibot mailing list -- [email protected]
>>> > To unsubscribe send an email to [email protected]
>>> _______________________________________________
>>> pywikibot mailing list -- [email protected]
>>> To unsubscribe send an email to [email protected]
>>>
>>
>>
>> --
>> Bináris
>> _______________________________________________
>> pywikibot mailing list -- [email protected]
>> To unsubscribe send an email to [email protected]
>>
> _______________________________________________
> pywikibot mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
>
--
Bináris
_______________________________________________
pywikibot mailing list -- [email protected]
To unsubscribe send an email to [email protected]