Page MenuHomePhabricator

Cannot run l10n_tests locally
Open, LowestPublic

Description

C:\pwb\GIT\core>py -3 pwb.py l10n_tests -v
tests: max_retries reduced from 15 to 1
Traceback (most recent call last):
  File "pwb.py", line 367, in <module>
    if not main():
  File "pwb.py", line 359, in main
    run_python_file(filename,
  File "pwb.py", line 100, in run_python_file
    exec(compile(source, filename, 'exec', dont_inherit=True),
  File ".\tests\l10n_tests.py", line 89, in <module>
    class TestValidTemplate(TestCase):
  File "C:\pwb\GIT\core\tests\utils.py", line 76, in add_metaclass
    return six.add_metaclass(cls.__metaclass__)(cls)
  File "C:\Python38\lib\site-packages\six.py", line 849, in wrapper
    return metaclass(cls.__name__, cls.__bases__, orig_vars)
  File ".\tests\l10n_tests.py", line 75, in __new__
    keys = i18n.twget_keys(package)
  File "C:\pwb\GIT\core\pywikibot\i18n.py", line 829, in twget_keys
    mod = __import__(_messages_package_name, fromlist=[str('__file__')])
ModuleNotFoundError: No module named 'scripts'
CRITICAL: Exiting due to uncaught exception <class 'ModuleNotFoundError'>

C:\pwb\GIT\core>

Event Timeline

Xqt created this task.Mar 25 2020, 7:24 AM
Restricted Application added a project: Pywikibot. · View Herald TranscriptMar 25 2020, 7:24 AM
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
Xqt triaged this task as Lowest priority.Mar 25 2020, 7:24 AM