You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had the following issue reported to motor today: MOTOR-862
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 am not sure why it automatically pulls in PyMongo 4.0 because the motor 2.3.0 release correctly pins to pymongo >=3.11,<4: https://github.com/mongodb/motor/blob/2.3.0/setup.py#L32. Does conda install not respect version requirements in dependencies?
The text was updated successfully, but these errors were encountered:
I had the following issue reported to motor today: MOTOR-862
I am not sure why it automatically pulls in PyMongo 4.0 because the motor 2.3.0 release correctly pins to pymongo >=3.11,<4: https://github.com/mongodb/motor/blob/2.3.0/setup.py#L32. Does conda install not respect version requirements in dependencies?
The text was updated successfully, but these errors were encountered: