I think this is already solved with https://gerrit.wikimedia.org/r/c/pywikibot/core/+/709124
Anyway it is always important to Show Python and Pywikibot versions if reporting a bug.
Best
xqt
Hi Basudev,
please file this issue to phabricator bug tracker.
It is important to know which Python release and Pywikibot version are you using. Otherwise it might be impossible to help.
Surely this problam is related to type annotation which can fail for Python < 3.5.2 but we are working on it.
Best
xqt
Anyway it is always important to Show Python and Pywikibot versions if reporting a bug.
Best
xqt
Von: [email protected]
Gesendet: 17.08.2021 10:51
An: Basudev Krishna <[email protected]>,Pywikibot discussion list <[email protected]>
Betreff: AW: [pywikibot] Re: python pwb.py replace.py not working
Gesendet: 17.08.2021 10:51
An: Basudev Krishna <[email protected]>,Pywikibot discussion list <[email protected]>
Betreff: AW: [pywikibot] Re: python pwb.py replace.py not working
please file this issue to phabricator bug tracker.
It is important to know which Python release and Pywikibot version are you using. Otherwise it might be impossible to help.
Surely this problam is related to type annotation which can fail for Python < 3.5.2 but we are working on it.
Best
xqt
Von: Basudev Krishna <[email protected]>
Gesendet: 14.08.2021 16:18
An: Pywikibot discussion list <[email protected]>
Betreff: [pywikibot] Re: python pwb.py replace.py not working
Gesendet: 14.08.2021 16:18
An: Pywikibot discussion list <[email protected]>
Betreff: [pywikibot] Re: python pwb.py replace.py not working
Traceback (most recent call last):
File "/data/data/com.termux/files/home/pywikibot/pwb.py", line 249, in <module>
import pywikibot as pwb
File "/data/data/com.termux/files/home/pywikibot/pywikibot/__init__.py", line 37, in <module>
from pywikibot.bot import (
File "/data/data/com.termux/files/home/pywikibot/pywikibot/bot.py", line 1239, in <module>
class BaseBot(OptionHandler):
File "/data/data/com.termux/files/home/pywikibot/pywikibot/bot.py", line 1395, in BaseBot
func: Callable[..., Any], *args: Any,
TypeError: list expected at most 1 argument, got 2
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/data/data/com.termux/files/home/pywikibot/pywikibot/comms/http.py", line 88, in flush
log('Closing network session.')
File "/data/data/com.termux/files/home/pywikibot/pywikibot/logging.py", line 183, in log
logoutput(text, decoder, newline, VERBOSE, **kwargs)
File "/data/data/com.termux/files/home/pywikibot/pywikibot/logging.py", line 76, in logoutput
_init()
File "/data/data/com.termux/files/home/pywikibot/pywikibot/logging.py", line 35, in _init
init_routine()
File "/data/data/com.termux/files/home/pywikibot/pywikibot/tools/_deprecate.py", line 487, in wrapper
return obj(*new_args, **new_kwargs)
File "/data/data/com.termux/files/home/pywikibot/pywikibot/bot.py", line 359, in init_handlers
module_name = calledModuleName()
File "/data/data/com.termux/files/home/pywikibot/pywikibot/bot.py", line 843, in calledModuleName
return Path(pywikibot.argvu[0]).stem
AttributeError: module 'pywikibot' has no attribute 'argvu'
On Sat, Aug 14, 2021, 8:18 PM Basudev Krishna <[email protected] wrote:
Traceback (most recent call last):File "/data/data/com.termux/files/home/pywikibot/pwb.py", line 249, in <module>import pywikibot as pwbFile "/data/data/com.termux/files/home/pywikibot/pywikibot/__init__.py", line 37, in <module>from pywikibot.bot import (File "/data/data/com.termux/files/home/pywikibot/pywikibot/bot.py", line 1239, in <module>class BaseBot(OptionHandler):File "/data/data/com.termux/files/home/pywikibot/pywikibot/bot.py", line 1395, in BaseBotfunc: Callable[..., Any], *args: Any,TypeError: list expected at most 1 argument, got 2Error in atexit._run_exitfuncs:Traceback (most recent call last):File "/data/data/com.termux/files/home/pywikibot/pywikibot/comms/http.py", line 88, in flushlog('Closing network session.')File "/data/data/com.termux/files/home/pywikibot/pywikibot/logging.py", line 183, in loglogoutput(text, decoder, newline, VERBOSE, **kwargs)File "/data/data/com.termux/files/home/pywikibot/pywikibot/logging.py", line 76, in logoutput_init()File "/data/data/com.termux/files/home/pywikibot/pywikibot/logging.py", line 35, in _initinit_routine()File "/data/data/com.termux/files/home/pywikibot/pywikibot/tools/_deprecate.py", line 487, in wrapperreturn obj(*new_args, **new_kwargs)File "/data/data/com.termux/files/home/pywikibot/pywikibot/bot.py", line 359, in init_handlersmodule_name = calledModuleName()File "/data/data/com.termux/files/home/pywikibot/pywikibot/bot.py", line 843, in calledModuleNamereturn Path(pywikibot.argvu[0]).stemAttributeError: module 'pywikibot' has no attribute 'argvu'On Sat, Aug 14, 2021, 8:12 PM Zoran Dori <[email protected] wrote:Hi Basudev,have you downloaded Pywikibot via git? If it is the case, please run git submodule update --init, which will download translations, they are missing.Best regards,
Zoran Dori
MediaWiki developer
[email protected]
www.wikiteq.com
_______________________________________________суб, 14. авг 2021. у 15:53 Basudev Krishna <[email protected]> је написао/ла:Traceback (most recent call last):_______________________________________________File "/data/data/com.termux/files/home/vikaspy/pwb.py", line 399, in <module>if not main():File "/data/data/com.termux/files/home/vikaspy/pwb.py", line 391, in mainrun_python_file(filename,File "/data/data/com.termux/files/home/vikaspy/pwb.py", line 106, in run_python_fileexec(compile(source, filename, 'exec', dont_inherit=True),File "./scripts/replace.py", line 1075, in <module>main()File "./scripts/replace.py", line 929, in mainsingle_summary = i18n.twtranslate(File "/data/data/com.termux/files/home/vikaspy/pywikibot/tools/_deprecate.py", line 404, in wrapperreturn obj(*__args, **__kw)File "/data/data/com.termux/files/home/vikaspy/pywikibot/i18n.py", line 700, in twtranslateraise pywikibot.exceptions.TranslationError(pywikibot.exceptions.TranslationError: Unable to load messages package scripts.i18n for bundle replace-replacingIt can happen due to lack of i18n submodule or files. See https://www.mediawiki.org/wiki/Manual:Pywikibot/i18nCRITICAL: Exiting due to uncaught exception <class 'pywikibot.exceptions.TranslationError'>$
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]
_______________________________________________ pywikibot mailing list -- [email protected] To unsubscribe send an email to [email protected]
