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

Synchro failing - cannot import name 'SocketInfo' from 'pymongo.pool

    • Type: Icon: Build Failure Build Failure
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Synchro tests are failing due to the renaming in PYTHON-3879:

       [2023/08/08 20:52:31.886] Successfully installed pymongo-4.5.0.dev0
       [2023/08/08 20:52:31.886] synchro37 run-test: commands[2] | python3 -m synchro.synchrotest --with-xunit --xunit-file=xunit-synchro-results -v -w /data/mci/0791f5ec4e5e69af018b433d6acfcc04/src/.tox/synchro37/tmp/mongo-python-driver --check-exclude-patterns
       [2023/08/08 20:52:32.404] Traceback (most recent call last):
       [2023/08/08 20:52:32.404]   File "/opt/python/3.7/lib/python3.7/runpy.py", line 183, in _run_module_as_main
       [2023/08/08 20:52:32.404]     mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
       [2023/08/08 20:52:32.404]   File "/opt/python/3.7/lib/python3.7/runpy.py", line 109, in _get_module_details
       [2023/08/08 20:52:32.404]     __import__(pkg_name)
       [2023/08/08 20:52:32.404]   File "/data/mci/0791f5ec4e5e69af018b433d6acfcc04/src/synchro/__init__.py", line 99, in <module>
       [2023/08/08 20:52:32.404]     from pymongo.pool import _METADATA, Pool, SocketInfo, _PoolClosedError
       [2023/08/08 20:52:32.404] ImportError: cannot import name 'SocketInfo' from 'pymongo.pool' (/data/mci/0791f5ec4e5e69af018b433d6acfcc04/src/.tox/synchro37/tmp/mongo-python-driver/pymongo/pool.py)
      

      https://spruce.mongodb.com/task/motor_main__ssl~nossl_tox_env~synchro37_os~rhel84_test_3.6_standalone_332360be4a66b34b12dcb47276a3c894215cad2a_23_08_08_20_34_03/logs?execution=0&sortBy=STATUS&sortDir=ASC

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

              Created:
              Updated:
              Resolved: