I have been running the git version of Pywikibot on several accounts for Toolforge for years. This way I have an easy way to control upgrades.
Due to T280806 I upgraded one of the accounts. I'm on the latest version now
$ git pull origin master From https://gerrit.wikimedia.org/r/pywikibot/core * branch master -> FETCH_HEAD Already up to date.
$ git rev-parse HEAD 2cf5b090d79cd8a27ad8c446286bc89a7f1083ff
$ git submodule update --recursive --remote Submodule path 'scripts/i18n': checked out '184a0978948d3b0a59b3c133024a87ade720a4f9'
But it crashes hard
$ python3 pwb.py version.py Pywikibot is missing a MediaWiki markup parser which is necessary. Please update the required module with either pip install "mwparserfromhell>=0.5.0" or pip install "wikitextparser>=0.47.5" Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/mnt/nfs/labstore-secondary-tools-project/geograph/pywikibot/pywikibot/comms/http.py", line 88, in flush log('Closing network session.') File "/mnt/nfs/labstore-secondary-tools-project/geograph/pywikibot/pywikibot/logging.py", line 193, in log logoutput(text, decoder, newline, VERBOSE, **kwargs) File "/mnt/nfs/labstore-secondary-tools-project/geograph/pywikibot/pywikibot/logging.py", line 79, in logoutput _init() File "/mnt/nfs/labstore-secondary-tools-project/geograph/pywikibot/pywikibot/logging.py", line 38, in _init init_routine() File "/mnt/nfs/labstore-secondary-tools-project/geograph/pywikibot/pywikibot/tools/_deprecate.py", line 487, in wrapper return obj(*new_args, **new_kwargs) File "/mnt/nfs/labstore-secondary-tools-project/geograph/pywikibot/pywikibot/bot.py", line 398, in init_handlers if pywikibot.Site.__doc__ != 'TEST': # set by aspects.DisableSiteMixin AttributeError: module 'pywikibot' has no attribute 'Site'
Two parts (probably introduced in T106763)
- If this such an important dependency, why isn't it in Toolforge?
- AttributeError should be resolved