Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-813

Test failure - AttributeError: module 'typing' has no attribute 'NoReturn'

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.5.1
    • Affects Version/s: None
    • Component/s: None
    • None

       [2021/08/13 14:27:54.868] + PYTHON_BINARY=/opt/mongodbtoolchain/v2/bin/python3.6
       [2021/08/13 14:27:54.868] + TOX_BINARY=
       [2021/08/13 14:27:54.868] + TOX_ENV=tornado_git-py36
       [2021/08/13 14:27:54.868] + INSTALL_TOX=true
       [2021/08/13 14:27:54.868] + VIRTUALENV='/opt/mongodbtoolchain/v2/bin/python3.6 -m virtualenv'
       [2021/08/13 14:27:54.868] + AUTH=noauth
       [2021/08/13 14:27:54.868] + SSL=nossl
       [2021/08/13 14:27:54.868] + CERT_DIR=/data/mci/31dca0ed291d4a734d3a74014714ffa8/src/../drivers-tools/.evergreen/x509gen
       [2021/08/13 14:27:54.868] + sh /data/mci/31dca0ed291d4a734d3a74014714ffa8/src/.evergreen/run-tox.sh
       [2021/08/13 14:27:54.870] + set -o errexit
       [2021/08/13 14:27:54.870] + AUTH=noauth
       [2021/08/13 14:27:54.870] + SSL=nossl
       [2021/08/13 14:27:54.870] + '[' noauth '!=' noauth ']'
       [2021/08/13 14:27:54.870] + '[' nossl '!=' nossl ']'
       [2021/08/13 14:27:54.870] + '[' tornado_git-py36 = synchro37 ']'
       [2021/08/13 14:27:54.870] + '[' true = true ']'
       [2021/08/13 14:27:54.870] + /opt/mongodbtoolchain/v2/bin/python3.6 -m virtualenv motorenv
       [2021/08/13 14:27:55.008] Using base prefix '/opt/mongodbtoolchain/revisions/0d5a071f1db663c050a1d7f330c13f46e62d6d4f/stow/osx-python3-v2.A3L'
       [2021/08/13 14:27:55.008] New python executable in /data/mci/31dca0ed291d4a734d3a74014714ffa8/src/motorenv/bin/python3.6
       [2021/08/13 14:27:55.008] Also creating executable in /data/mci/31dca0ed291d4a734d3a74014714ffa8/src/motorenv/bin/python
       [2021/08/13 14:28:03.257] Installing setuptools, pip, wheel...done.
       [2021/08/13 14:28:03.257] GLOB sdist-make: /data/mci/31dca0ed291d4a734d3a74014714ffa8/src/setup.py
       [2021/08/13 14:28:03.550] tornado_git-py36 create: /data/mci/31dca0ed291d4a734d3a74014714ffa8/src/.tox/tornado_git-py36
       [2021/08/13 14:28:04.070] tornado_git-py36 installdeps: git+https://github.com/tornadoweb/tornado.git, aiohttp
       [2021/08/13 14:28:11.481] tornado_git-py36 inst: /data/mci/31dca0ed291d4a734d3a74014714ffa8/src/.tox/.tmp/package/1/motor-2.5.1.dev0.zip
       [2021/08/13 14:28:15.126] tornado_git-py36 installed: aiohttp==3.7.4.post0,async-timeout==3.0.1,attrs==21.2.0,cffi==1.14.6,chardet==4.0.0,cryptography==3.4.7,idna==3.2,idna-ssl==1.1.0,motor @ file:///data/mci/31dca0ed291d4a734d3a74014714ffa8/src/.tox/.tmp/package/1/motor-2.5.1.dev0.zip,multidict==5.1.0,pycparser==2.20,pymongo==3.12.0,pymongocrypt==1.1.1,tornado @ git+https://github.com/tornadoweb/tornado.git@aa9d32d5e89b290dad69e0c6655b7497ea492e45,typing-extensions==3.10.0.0,yarl==1.6.3
       [2021/08/13 14:28:15.127] tornado_git-py36 run-test-pre: PYTHONHASHSEED='3523339814'
       [2021/08/13 14:28:15.127] tornado_git-py36 run-test: commands[0] | python --version
       [2021/08/13 14:28:15.132] Python 3.6.0
       [2021/08/13 14:28:15.132] tornado_git-py36 run-test: commands[1] | python setup.py test --xunit-output=xunit-results
       [2021/08/13 14:28:16.828] running test
       [2021/08/13 14:28:16.828] running egg_info
       [2021/08/13 14:28:16.828] writing motor.egg-info/PKG-INFO
       [2021/08/13 14:28:16.828] writing dependency_links to motor.egg-info/dependency_links.txt
       [2021/08/13 14:28:16.829] writing requirements to motor.egg-info/requires.txt
       [2021/08/13 14:28:16.829] writing top-level names to motor.egg-info/top_level.txt
       [2021/08/13 14:28:16.840] reading manifest file 'motor.egg-info/SOURCES.txt'
       [2021/08/13 14:28:16.840] reading manifest template 'MANIFEST.in'
       [2021/08/13 14:28:16.851] adding license file 'LICENSE'
       [2021/08/13 14:28:16.851] writing manifest file 'motor.egg-info/SOURCES.txt'
       [2021/08/13 14:28:18.197] running build_ext
       [2021/08/13 14:28:18.197] Running tests...
       [2021/08/13 14:28:18.197] ----------------------------------------------------------------------
       [2021/08/13 14:28:18.197]   asyncio_tests (unittest.loader._FailedTest) ... ERROR (0.000s)
       [2021/08/13 14:28:18.197]   tornado_tests (unittest.loader._FailedTest) ... ERROR (0.000s)
       [2021/08/13 14:28:18.197] ======================================================================
       [2021/08/13 14:28:18.197] ERROR [0.000s]: asyncio_tests (unittest.loader._FailedTest)
       [2021/08/13 14:28:18.197] ----------------------------------------------------------------------
       [2021/08/13 14:28:18.197] ImportError: Failed to import test module: asyncio_tests
       [2021/08/13 14:28:18.197] Traceback (most recent call last):
       [2021/08/13 14:28:18.197]   File "/opt/mongodbtoolchain/revisions/0d5a071f1db663c050a1d7f330c13f46e62d6d4f/stow/osx-python3-v2.A3L/lib/python3.6/unittest/loader.py", line 462, in _find_test_path
       [2021/08/13 14:28:18.197]     package = self._get_module_from_name(name)
       [2021/08/13 14:28:18.197]   File "/data/mci/31dca0ed291d4a734d3a74014714ffa8/src/test/__init__.py", line 78, in _get_module_from_name
       [2021/08/13 14:28:18.197]     return super()._get_module_from_name(name)
       [2021/08/13 14:28:18.197]   File "/opt/mongodbtoolchain/revisions/0d5a071f1db663c050a1d7f330c13f46e62d6d4f/stow/osx-python3-v2.A3L/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
       [2021/08/13 14:28:18.197]     __import__(name)
       [2021/08/13 14:28:18.197]   File "/data/mci/31dca0ed291d4a734d3a74014714ffa8/src/test/asyncio_tests/__init__.py", line 27, in <module>
       [2021/08/13 14:28:18.197]     from motor import motor_asyncio
       [2021/08/13 14:28:18.197]   File "/data/mci/31dca0ed291d4a734d3a74014714ffa8/src/motor/__init__.py", line 35, in <module>
       [2021/08/13 14:28:18.197]     from .motor_tornado import *
       [2021/08/13 14:28:18.197]   File "/data/mci/31dca0ed291d4a734d3a74014714ffa8/src/motor/motor_tornado.py", line 18, in <module>
       [2021/08/13 14:28:18.197]     from .frameworks import tornado as tornado_framework
       [2021/08/13 14:28:18.197]   File "/data/mci/31dca0ed291d4a734d3a74014714ffa8/src/motor/frameworks/tornado/__init__.py", line 22, in <module>
       [2021/08/13 14:28:18.197]     import tornado.process
       [2021/08/13 14:28:18.197]   File "/data/mci/31dca0ed291d4a734d3a74014714ffa8/src/.tox/tornado_git-py36/lib/python3.6/site-packages/tornado/process.py", line 29, in <module>
       [2021/08/13 14:28:18.197]     from tornado.concurrent import (
       [2021/08/13 14:28:18.197]   File "/data/mci/31dca0ed291d4a734d3a74014714ffa8/src/.tox/tornado_git-py36/lib/python3.6/site-packages/tornado/concurrent.py", line 34, in <module>
       [2021/08/13 14:28:18.197]     from tornado.log import app_log
       [2021/08/13 14:28:18.197]   File "/data/mci/31dca0ed291d4a734d3a74014714ffa8/src/.tox/tornado_git-py36/lib/python3.6/site-packages/tornado/log.py", line 34, in <module>
       [2021/08/13 14:28:18.197]     from tornado.escape import _unicode
       [2021/08/13 14:28:18.197]   File "/data/mci/31dca0ed291d4a734d3a74014714ffa8/src/.tox/tornado_git-py36/lib/python3.6/site-packages/tornado/escape.py", line 27, in <module>
       [2021/08/13 14:28:18.197]     from tornado.util import unicode_type
       [2021/08/13 14:28:18.197]   File "/data/mci/31dca0ed291d4a734d3a74014714ffa8/src/.tox/tornado_git-py36/lib/python3.6/site-packages/tornado/util.py", line 170, in <module>
       [2021/08/13 14:28:18.197]     ) -> typing.NoReturn:
       [2021/08/13 14:28:18.197] AttributeError: module 'typing' has no attribute 'NoReturn'
      

      https://evergreen.mongodb.com/task/motor_test_macos__ssl~nossl_tox_env_osx~tornado_git_py36_os~macos_1014_test_latest_standalone_baa0bf27c77ed546d943cdc344d986dce4ec7c3b_21_08_12_16_27_40

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: