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.
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.
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'