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

The latest conda package (2.3.0) not pinned pymongo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Unknown
    • Resolution: Fixed
    • None
    • 2.5.1
    • None
    • None

    Description

      Today, when I installed motor 2.3.0 with the command 

      conda install motor

      It also installed pymongo 4.0 that is incompatible with motor.
      It crashed with the following error:

      Traceback (most recent call last):
      ...
      File "/opt/conda/envs/doogle_server/lib/python3.9/site-packages/motor/__init__.py", line 35, in <module>
      from .motor_tornado import *
      File "/opt/conda/envs/doogle_server/lib/python3.9/site-packages/motor/motor_tornado.py", line 17, in <module>
      from . import core, motor_gridfs
      File "/opt/conda/envs/doogle_server/lib/python3.9/site-packages/motor/core.py", line 27, in <module>
      import pymongo.mongo_replica_set_client
      ModuleNotFoundError: No module named 'pymongo.mongo_replica_set_client'
      

      I solve it (as a workaround) by using the pipy package (2.5.0) that pinned the pymongo version

      pip install motor

      I think it worth adding the latest motor releases to conda channel to avoid such an issue 

      Thank you

      Attachments

        Issue Links

          Activity

            People

              steve.silvester@mongodb.com Steve Silvester
              motibz@mobileye.com Mordechai Ben Zechariah
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: