This just started today on the version of pywikibot used on the Wikimedia Toolforge
Traceback (most recent call last): File "/var/spool/gridengine/execd/tools-sgewebgrid-generic-0902/job_scripts/451453", line 26, in <module> import pywikibot File "/shared/pywikipedia/core/pywikibot/__init__.py", line 59, in <module> import pywikibot.textlib as textlib File "/shared/pywikipedia/core/pywikibot/textlib.py", line 45, in <module> import mwparserfromhell File "/shared/pywikipedia/core/mwparserfromhell/__init__.py", line 34, in <module> from . import (definitions, nodes, parser, smart_list, string_mixin, File "/shared/pywikipedia/core/mwparserfromhell/nodes/__init__.py", line 32, in <module> from ..string_mixin import StringMixIn File "/shared/pywikipedia/core/mwparserfromhell/string_mixin.py", line 86 yield from self.__unicode__() ^ SyntaxError: invalid syntax
Somehow you are using a development version of mwparserfromhell that has dropped support for Python 2.7. It is not clear to me why Toolforge is making development versions available to people by default. You need to either switch to Python 3.4+ or use the latest stable release of mwparserfromhell (v0.5.4) which still has Python 2 support.
On Jan 14, 2020, at 6:37 AM, Russell Blau russblau@imapmail.org wrote:
This just started today on the version of pywikibot used on the Wikimedia Toolforge
Traceback (most recent call last): File "/var/spool/gridengine/execd/tools-sgewebgrid-generic-0902/job_scripts/451453", line 26, in <module> import pywikibot File "/shared/pywikipedia/core/pywikibot/__init__.py", line 59, in <module> import pywikibot.textlib as textlib File "/shared/pywikipedia/core/pywikibot/textlib.py", line 45, in <module> import mwparserfromhell File "/shared/pywikipedia/core/mwparserfromhell/__init__.py", line 34, in <module> from . import (definitions, nodes, parser, smart_list, string_mixin, File "/shared/pywikipedia/core/mwparserfromhell/nodes/__init__.py", line 32, in <module> from ..string_mixin import StringMixIn File "/shared/pywikipedia/core/mwparserfromhell/string_mixin.py", line 86 yield from self.__unicode__() ^ SyntaxError: invalid syntax
-- Russell Blau russblau@imapmail.org
pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot
Hi,
On 2020-01-14 03:37, Russell Blau wrote:
This just started today on the version of pywikibot used on the Wikimedia Toolforge
Sorry, this is on me, I forgot that we used the develop version of mwparserfromhell in a few places (which we shouldn't have been doing...).
I patched[1] the update script to use the last stable mwph version and kicked off a manual run so it should be fixed in a few minutes.
[1] https://github.com/pywikibot/Pywikibot-nightly-creator/pull/8
-- Legoktm