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

The latest conda package (2.3.0) not pinned pymongo

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

      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

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