Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpython3.7.2 make test failed #79872

Closed
WencanDeng mannequin opened this issue Jan 9, 2019 · 4 comments
Closed

cpython3.7.2 make test failed #79872

WencanDeng mannequin opened this issue Jan 9, 2019 · 4 comments
Labels
3.7 (EOL) end of life build The build process and cross-build

Comments

@WencanDeng
Copy link
Mannequin

WencanDeng mannequin commented Jan 9, 2019

BPO 35691
Nosy @vstinner, @tirkarthi
Superseder
  • bpo-27807: Prevent site-packages .pth files from causing test_site failure: test_site.test_startup_imports() failure
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2020-03-18.15:14:15.834>
    created_at = <Date 2019-01-09.01:39:49.527>
    labels = ['build', '3.7']
    title = 'cpython3.7.2 make test failed'
    updated_at = <Date 2020-03-18.15:14:44.498>
    user = 'https://bugs.python.org/WencanDeng'

    bugs.python.org fields:

    activity = <Date 2020-03-18.15:14:44.498>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-03-18.15:14:15.834>
    closer = 'vstinner'
    components = ['Build']
    creation = <Date 2019-01-09.01:39:49.527>
    creator = 'Wencan Deng'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 35691
    keywords = []
    message_count = 4.0
    messages = ['333271', '333274', '364524', '364525']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'xtreak', 'Wencan Deng']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '27807'
    type = 'compile error'
    url = 'https://bugs.python.org/issue35691'
    versions = ['Python 3.7']

    @WencanDeng
    Copy link
    Mannequin Author

    WencanDeng mannequin commented Jan 9, 2019

    os: Linux skynet 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
    gcc: gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516

    FAIL: test_startup_imports (test.test_site.StartupImportTests)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/home/wencan/Downloads/Python-3.7.2/Lib/test/test_site.py", line 532, in test_startup_imports
        self.assertFalse(modules.intersection(collection_mods), stderr)
    AssertionError: {'collections', 'operator', 'functools', 'types', 'keyword', 'reprlib', 'heapq'} is not false : import _frozen_importlib # frozen
    import _imp # builtin
    import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
    import '_warnings' # <class '_frozen_importlib.BuiltinImporter'>
    import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
    # installing zipimport hook
    import 'zipimport' # <class '_frozen_importlib.BuiltinImporter'>
    # installed zipimport hook
    import '_frozen_importlib_external' # <class '_frozen_importlib.FrozenImporter'>
    import '_io' # <class '_frozen_importlib.BuiltinImporter'>
    import 'marshal' # <class '_frozen_importlib.BuiltinImporter'>
    import 'posix' # <class '_frozen_importlib.BuiltinImporter'>
    import _thread # previously loaded ('_thread')
    import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
    import _weakref # previously loaded ('_weakref')
    import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
    # /home/wencan/Downloads/Python-3.7.2/build/../Lib/encodings/__pycache__/__init__.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/build/../Lib/encodings/__init__.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/build/../Lib/encodings/__pycache__/__init__.cpython-37.pyc'
    # /home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/codecs.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/build/../Lib/codecs.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/codecs.cpython-37.pyc'
    import '_codecs' # <class '_frozen_importlib.BuiltinImporter'>
    import 'codecs' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f07a940>
    # /home/wencan/Downloads/Python-3.7.2/build/../Lib/encodings/__pycache__/aliases.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/build/../Lib/encodings/aliases.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/build/../Lib/encodings/__pycache__/aliases.cpython-37.pyc'
    import 'encodings.aliases' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f095358>
    import 'encodings' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f07a3c8>
    # /home/wencan/Downloads/Python-3.7.2/build/../Lib/encodings/__pycache__/utf_8.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/build/../Lib/encodings/utf_8.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/build/../Lib/encodings/__pycache__/utf_8.cpython-37.pyc'
    import 'encodings.utf_8' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f099080>
    import '_signal' # <class '_frozen_importlib.BuiltinImporter'>
    # /home/wencan/Downloads/Python-3.7.2/build/../Lib/encodings/__pycache__/latin_1.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/build/../Lib/encodings/latin_1.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/build/../Lib/encodings/__pycache__/latin_1.cpython-37.pyc'
    import 'encodings.latin_1' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f099b38>
    # /home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/io.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/build/../Lib/io.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/io.cpython-37.pyc'
    # /home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/abc.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/build/../Lib/abc.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/abc.cpython-37.pyc'
    import '_abc' # <class '_frozen_importlib.BuiltinImporter'>
    import 'abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f0a4160>
    import 'io' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f099d68>
    # /home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/_bootlocale.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/build/../Lib/_bootlocale.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/_bootlocale.cpython-37.pyc'
    import '_locale' # <class '_frozen_importlib.BuiltinImporter'>
    import '_bootlocale' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f0a4780>
    Python 3.7.2 (default, Jan  9 2019, 09:31:17) 
    [GCC 6.3.0 20170516] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    # /home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/site.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/build/../Lib/site.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/site.cpython-37.pyc'
    # /home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/os.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/build/../Lib/os.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/os.cpython-37.pyc'
    # /home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/stat.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/build/../Lib/stat.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/stat.cpython-37.pyc'
    import '_stat' # <class '_frozen_importlib.BuiltinImporter'>
    import 'stat' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f042128>
    # /home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/posixpath.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/build/../Lib/posixpath.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/posixpath.cpython-37.pyc'
    # /home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/genericpath.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/build/../Lib/genericpath.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/genericpath.cpython-37.pyc'
    import 'genericpath' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f046be0>
    import 'posixpath' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f042860>
    # /home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/_collections_abc.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/build/../Lib/_collections_abc.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/_collections_abc.cpython-37.pyc'
    import '_collections_abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f050278>
    import 'os' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f0afda0>
    # /home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/_sitebuiltins.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/build/../Lib/_sitebuiltins.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/build/../Lib/__pycache__/_sitebuiltins.cpython-37.pyc'
    import '_sitebuiltins' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f034198>
    # /home/wencan/Downloads/Python-3.7.2/Lib/__pycache__/types.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/Lib/types.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/Lib/__pycache__/types.cpython-37.pyc'
    import 'types' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f0080b8>
    # /home/wencan/Downloads/Python-3.7.2/Lib/importlib/__pycache__/__init__.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/Lib/importlib/__init__.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/Lib/importlib/__pycache__/__init__.cpython-37.pyc'
    # /home/wencan/Downloads/Python-3.7.2/Lib/__pycache__/warnings.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/Lib/warnings.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/Lib/__pycache__/warnings.cpython-37.pyc'
    import 'warnings' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f008f98>
    import 'importlib' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f008b70>
    # /home/wencan/Downloads/Python-3.7.2/Lib/importlib/__pycache__/util.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/Lib/importlib/util.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/Lib/importlib/__pycache__/util.cpython-37.pyc'
    # /home/wencan/Downloads/Python-3.7.2/Lib/importlib/__pycache__/abc.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/Lib/importlib/abc.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/Lib/importlib/__pycache__/abc.cpython-37.pyc'
    # /home/wencan/Downloads/Python-3.7.2/Lib/importlib/__pycache__/machinery.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/Lib/importlib/machinery.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/Lib/importlib/__pycache__/machinery.cpython-37.pyc'
    import 'importlib.machinery' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f01cb70>
    import 'importlib.abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f01c320>
    # /home/wencan/Downloads/Python-3.7.2/Lib/__pycache__/contextlib.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/Lib/contextlib.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/Lib/__pycache__/contextlib.cpython-37.pyc'
    # /home/wencan/Downloads/Python-3.7.2/Lib/collections/__pycache__/__init__.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/Lib/collections/__init__.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/Lib/collections/__pycache__/__init__.cpython-37.pyc'
    # /home/wencan/Downloads/Python-3.7.2/Lib/__pycache__/operator.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/Lib/operator.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/Lib/__pycache__/operator.cpython-37.pyc'
    import '_operator' # <class '_frozen_importlib.BuiltinImporter'>
    import 'operator' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3efd12b0>
    # /home/wencan/Downloads/Python-3.7.2/Lib/__pycache__/keyword.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/Lib/keyword.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/Lib/__pycache__/keyword.cpython-37.pyc'
    import 'keyword' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3efdd358>
    # /home/wencan/Downloads/Python-3.7.2/Lib/__pycache__/heapq.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/Lib/heapq.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/Lib/__pycache__/heapq.cpython-37.pyc'
    # extension module '_heapq' loaded from '/home/wencan/Downloads/Python-3.7.2/build/build/lib.linux-x86_64-3.7/_heapq.cpython-37m-x86_64-linux-gnu.so'
    # extension module '_heapq' executed from '/home/wencan/Downloads/Python-3.7.2/build/build/lib.linux-x86_64-3.7/_heapq.cpython-37m-x86_64-linux-gnu.so'
    import '_heapq' # <_frozen_importlib_external.ExtensionFileLoader object at 0x7fac3efe3278>
    import 'heapq' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3efddcc0>
    import 'itertools' # <class '_frozen_importlib.BuiltinImporter'>
    # /home/wencan/Downloads/Python-3.7.2/Lib/__pycache__/reprlib.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/Lib/reprlib.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/Lib/__pycache__/reprlib.cpython-37.pyc'
    import 'reprlib' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3efe3358>
    import '_collections' # <class '_frozen_importlib.BuiltinImporter'>
    import 'collections' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3efb4470>
    # /home/wencan/Downloads/Python-3.7.2/Lib/__pycache__/functools.cpython-37.pyc matches /home/wencan/Downloads/Python-3.7.2/Lib/functools.py
    # code object from '/home/wencan/Downloads/Python-3.7.2/Lib/__pycache__/functools.cpython-37.pyc'
    import '_functools' # <class '_frozen_importlib.BuiltinImporter'>
    import 'functools' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3efb4860>
    import 'contextlib' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f01c9e8>
    import 'importlib.util' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f011630>
    # possible namespace for /usr/local/lib/python3.7/site-packages/sphinxcontrib
    import 'site' # <_frozen_importlib_external.SourceFileLoader object at 0x7fac3f0adac8>

    @WencanDeng WencanDeng mannequin added 3.7 (EOL) end of life build The build process and cross-build labels Jan 9, 2019
    @tirkarthi
    Copy link
    Member

    Searching for the error message I reported a very similar one in the past bpo-34177 that is caused due to installed python causing some problem being imported in the test

    @vstinner
    Copy link
    Member

    It's likely a duplicate of bpo-28087.

    @vstinner
    Copy link
    Member

    Oops, I mean: bpo-27807 "Prevent site-packages .pth files from causing test_site failure".

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life build The build process and cross-build
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants