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?
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 wikiposta@gmail.com:
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 -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
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.
info@gno.de 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 wikiposta@gmail.com:
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 -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
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 wikiposta@gmail.com 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.
info@gno.de 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 wikiposta@gmail.com:
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 -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
-- Bináris _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
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 phoenixoverride@gmail.com 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 wikiposta@gmail.com 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.
info@gno.de 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 wikiposta@gmail.com:
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 -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
-- Bináris _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
Hi Binaris,
login2.py wasn’t shipped with compat. The login implementation looks like MediaWiki 1.27 and the current one has changed a lot. Probably it does not work anymore with compat.
Best xqt
Von meinem iPhone gesendet
Am 02.06.2021 um 07:14 schrieb Bináris wikiposta@gmail.com:
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 phoenixoverride@gmail.com 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 wikiposta@gmail.com 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.
info@gno.de 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 wikiposta@gmail.com:
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 -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
-- Bináris _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
-- Bináris _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
Line 236: self.site._token[index] = data['login']['lgtoken'] + "+\" change to:
try: self.site._token[index] = data['login']['lgtoken'] + "+\" except: pass
On Wed, Jun 2, 2021 at 10:21 AM Bináris wikiposta@gmail.com wrote:
Is there a manual to rewrite comat scripts to Pywikibot? _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
John phoenixoverride@gmail.com ezt írta (időpont: 2021. jún. 2., Sze, 16:25):
Line 236: self.site._token[index] = data['login']['lgtoken'] + "+\" change to:
try: self.site._token[index] = data['login']['lgtoken'] +
"+\" except: pass
Thank yo so much, the bot is working again! :-)))))))))))))) *################################################* *## JOHN IS THE GOD PERSONALLY! ##* *################################################*
Hi,
yes there is a manual about this:
https://www.mediawiki.org/wiki/Manual:Pywikibot/compat-to-core_conversion
The compat2core script was archived in meantime but it can still be used. It also can restored to the supported scripts. Pleas also use the task noted there for any help.
Best xqt
Am 02.06.2021 um 16:20 schrieb Bináris wikiposta@gmail.com:
Is there a manual to rewrite comat scripts to Pywikibot? _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
Please be aware that other csrf tokens will be removed with mw 1.37 an can lead the compat release to fail.
Best xqt
Am 02.06.2021 um 22:55 schrieb info@gno.de:
Hi,
yes there is a manual about this:
https://www.mediawiki.org/wiki/Manual:Pywikibot/compat-to-core_conversion
The compat2core script was archived in meantime but it can still be used. It also can restored to the supported scripts. Pleas also use the task noted there for any help.
Best xqt
Am 02.06.2021 um 16:20 schrieb Bináris wikiposta@gmail.com:
Is there a manual to rewrite comat scripts to Pywikibot? _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
info@gno.de ezt írta (időpont: 2021. jún. 2., Sze, 23:05):
Please be aware that other csrf tokens will be removed with mw 1.37 an can lead the compat release to fail.
Thank you! When is 1.37 due?
Am 03.06.2021 um 07:40 schrieb Bináris wikiposta@gmail.com:
info@gno.de ezt írta (időpont: 2021. jún. 2., Sze, 23:05):
Please be aware that other csrf tokens will be removed with mw 1.37 an can lead the compat release to fail.
Thank you! When is 1.37 due?
Current release of Wikimedia cluster is 1.37.0.-wmf.7 and you should expect problems with old tokens soon if you still are using compat release.
I have restored the compat2core script which can be used for the conversion. I propose to use both releases for your production system, compat and core. You can install also two Pythons and you can use the py launcher with windows to select which Python to be runned. Convert each script from compat to core step by step and do not hesitate ask (me) for any help. I did the same in past; now all my scripts are converted.
Best xqt
-- Bináris _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
info@gno.de ezt írta (időpont: 2021. jún. 3., Cs, 11:14):
Current release of Wikimedia cluster is 1.37.0.-wmf.7 and you should expect problems with old tokens soon if you still are using compat release.
:-(((
I have restored the compat2core script which can be used for the conversion.
Yes. I have seen. :-)
Convert each script from compat to core step by step and do not hesitate ask (me) for any help. I did the same in past; now all my scripts are converted.
OK, I am going to start with that, and thank you very much!
To convert my own replace.py is much easier than to add all features to community version. Now I have to return from far, far to understand the new concepts and being a developer again.
Additionally, I failed to install Python 3.9 on my Win7, it requires >=8.1. No I am installing 3,7 and I hope it will be supported for a long time.
Hi,
Am 03.06.2021 um 11:22 schrieb Bináris wikiposta@gmail.com:
OK, I am going to start with that, and thank you very much! To convert my own replace.py is much easier than to add all features to community version. Now I have to return from far, far to understand the new concepts and being a developer again.
I would be really happy.
Additionally, I failed to install Python 3.9 on my Win7, it requires >=8.1. No I am installing 3,7 and I hope it will be supported for a long time.
EOL date is in two years. Possibly you have Windows XX then. :-D
-- Bináris _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
The manual says:
pip install pywikibot
Pip says "Successfully installed pywikibot-6.3.0." But WHERE did it install?
Oh, I got it... c:\Python37\Lib\site-packages\pywikibot\ Sucha an obscure place! Can I just move it to root? Ha can I set it up for SVN or git, where is the source?
Bináris wikiposta@gmail.com ezt írta (időpont: 2021. jún. 3., Cs, 13:51):
The manual says:
pip install pywikibot
Pip says "Successfully installed pywikibot-6.3.0." But WHERE did it install?
(if I understood the conversation, I didn't read everything) Manual here: https://m.mediawiki.org/wiki/Manual:Pywikibot/Installation#Install_Pywikibot
It's better then pip, because here you get also the scripts and more tools
בתאריך יום ה׳, 3 ביוני 2021, 14:56, מאת Bináris wikiposta@gmail.com:
Oh, I got it... c:\Python37\Lib\site-packages\pywikibot\ Sucha an obscure place! Can I just move it to root? Ha can I set it up for SVN or git, where is the source?
Bináris wikiposta@gmail.com ezt írta (időpont: 2021. jún. 3., Cs, 13:51):
The manual says:
pip install pywikibot
Pip says "Successfully installed pywikibot-6.3.0." But WHERE did it install?
-- Bináris _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
שלום אורי דנינו shalomori123@gmail.com ezt írta (időpont: 2021. jún. 4., P, 0:38):
(if I understood the conversation, I didn't read everything) Manual here:
https://m.mediawiki.org/wiki/Manual:Pywikibot/Installation#Install_Pywikibot
Thank you!
Hi Binaris,
btw compat is for Python 2 only. We also have a phab task (T242120) to support with this convention. There is a 2to3 tool shipped with Python 3 which can do some conversions automatically. But this tool is deprecated since 3.10 and will be removed as standard library tool. I guess the are some 3rd-party tools which must be used then.
Best xqt
Am 03.06.2021 um 07:40 schrieb Bináris wikiposta@gmail.com:
info@gno.de ezt írta (időpont: 2021. jún. 2., Sze, 23:05):
Please be aware that other csrf tokens will be removed with mw 1.37 an can lead the compat release to fail.
Thank you! When is 1.37 due?
-- Bináris _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
info@gno.de ezt írta (időpont: 2021. jún. 3., Cs, 11:20):
Hi Binaris,
btw compat is for Python 2 only.
Hi,
no problem with that, I have to add some parentheses and remove u from front of strings.I use both Python branches (2 now only for compat).
Bináris
Oh there are a lot of other issues too by I guess you are familiar enough with that stuff.
Best xqt
Am 03.06.2021 um 11:24 schrieb Bináris wikiposta@gmail.com:
info@gno.de ezt írta (időpont: 2021. jún. 3., Cs, 11:20):
Hi Binaris,
btw compat is for Python 2 only.
Hi, no problem with that, I have to add some parentheses and remove u from front of strings.I use both Python branches (2 now only for compat).
Bináris _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org