Page MenuHomePhabricator

Travis test 3.5_with_system_site_packages fails completely since few days
Closed, ResolvedPublic

Description

pywikibot (unittest.loader._FailedTest) ... ERROR
tests (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: pywikibot (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: pywikibot
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/loader.py", line 462, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
    __import__(name)
  File "/home/travis/build/wikimedia/pywikibot/pywikibot/__init__.py", line 25, in <module>
    from pywikibot.bot import (
  File "/home/travis/build/wikimedia/pywikibot/pywikibot/bot.py", line 105, in <module>
    from pywikibot import config2 as config
  File "/home/travis/build/wikimedia/pywikibot/pywikibot/config2.py", line 48, in <module>
    from distutils.version import StrictVersion
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 577, in module_from_spec
  File "/home/travis/virtualenv/python3.5_with_system_site_packages/lib/python3.5/site-packages/_distutils_hack/__init__.py", line 82, in create_module
    return importlib.import_module('._distutils', 'setuptools')
  File "/home/travis/virtualenv/python3.5_with_system_site_packages/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 981, in _gcd_import
  File "<frozen importlib._bootstrap>", line 931, in _sanity_check
SystemError: Parent module 'setuptools' not loaded, cannot perform relative import


======================================================================
ERROR: tests (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/loader.py", line 462, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
    __import__(name)
  File "/home/travis/build/wikimedia/pywikibot/tests/__init__.py", line 28, in <module>
    from pywikibot import config
  File "/home/travis/build/wikimedia/pywikibot/pywikibot/__init__.py", line 25, in <module>
    from pywikibot.bot import (
  File "/home/travis/build/wikimedia/pywikibot/pywikibot/bot.py", line 105, in <module>
    from pywikibot import config2 as config
  File "/home/travis/build/wikimedia/pywikibot/pywikibot/config2.py", line 48, in <module>
    from distutils.version import StrictVersion
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 577, in module_from_spec
  File "/home/travis/virtualenv/python3.5_with_system_site_packages/lib/python3.5/site-packages/_distutils_hack/__init__.py", line 82, in create_module
    return importlib.import_module('._distutils', 'setuptools')
  File "/home/travis/virtualenv/python3.5_with_system_site_packages/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 981, in _gcd_import
  File "<frozen importlib._bootstrap>", line 931, in _sanity_check
SystemError: Parent module 'setuptools' not loaded, cannot perform relative import

https://travis-ci.org/github/wikimedia/pywikibot/jobs/722763290

Event Timeline

Xqt created this task.Tue, Sep 1, 12:35 PM
Restricted Application added a project: Pywikibot. · View Herald TranscriptTue, Sep 1, 12:35 PM
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
Xqt triaged this task as High priority.Tue, Sep 1, 12:35 PM
Xqt added a subscriber: Dvorapa.

Change 623592 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] Remove socket_timeout fix in config2.py

https://gerrit.wikimedia.org/r/623592

Change 623592 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Remove socket_timeout fix in config2.py

https://gerrit.wikimedia.org/r/623592

Xqt added a comment.Tue, Sep 1, 3:34 PM

Now we have the Problem within Tools:

======================================================================
ERROR: pywikibot (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: pywikibot
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/loader.py", line 462, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
    __import__(name)
  File "/home/travis/build/wikimedia/pywikibot/pywikibot/__init__.py", line 25, in <module>
    from pywikibot.bot import (
  File "/home/travis/build/wikimedia/pywikibot/pywikibot/bot.py", line 105, in <module>
    from pywikibot import config2 as config
  File "/home/travis/build/wikimedia/pywikibot/pywikibot/config2.py", line 55, in <module>
    from pywikibot.tools import issue_deprecation_warning
  File "/home/travis/build/wikimedia/pywikibot/pywikibot/tools/__init__.py", line 26, in <module>
    from distutils.version import LooseVersion, Version
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 577, in module_from_spec
  File "/home/travis/virtualenv/python3.5_with_system_site_packages/lib/python3.5/site-packages/_distutils_hack/__init__.py", line 82, in create_module
    return importlib.import_module('._distutils', 'setuptools')
  File "/home/travis/virtualenv/python3.5_with_system_site_packages/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 981, in _gcd_import
  File "<frozen importlib._bootstrap>", line 931, in _sanity_check
SystemError: Parent module 'setuptools' not loaded, cannot perform relative import


======================================================================
ERROR: tests (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/loader.py", line 462, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
    __import__(name)
  File "/home/travis/build/wikimedia/pywikibot/tests/__init__.py", line 28, in <module>
    from pywikibot import config
  File "/home/travis/build/wikimedia/pywikibot/pywikibot/__init__.py", line 25, in <module>
    from pywikibot.bot import (
  File "/home/travis/build/wikimedia/pywikibot/pywikibot/bot.py", line 105, in <module>
    from pywikibot import config2 as config
  File "/home/travis/build/wikimedia/pywikibot/pywikibot/config2.py", line 55, in <module>
    from pywikibot.tools import issue_deprecation_warning
  File "/home/travis/build/wikimedia/pywikibot/pywikibot/tools/__init__.py", line 26, in <module>
    from distutils.version import LooseVersion, Version
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 577, in module_from_spec
  File "/home/travis/virtualenv/python3.5_with_system_site_packages/lib/python3.5/site-packages/_distutils_hack/__init__.py", line 82, in create_module
    return importlib.import_module('._distutils', 'setuptools')
  File "/home/travis/virtualenv/python3.5_with_system_site_packages/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 981, in _gcd_import
  File "<frozen importlib._bootstrap>", line 931, in _sanity_check
SystemError: Parent module 'setuptools' not loaded, cannot perform relative import

Change 623617 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] Do not install setuptools 50.0.0

https://gerrit.wikimedia.org/r/623617

Xqt closed this task as Resolved.Wed, Sep 2, 4:52 AM
Xqt claimed this task.

Solved upstream with setuptools50.0.3

Change 623617 abandoned by Xqt:
[pywikibot/core@master] [bugfix] Do not install setuptools 50.0.0

Reason:
Solved upstream

https://gerrit.wikimedia.org/r/623617