Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The latest conda package (2.3.0) does not pin to pymongo<4.0 #17

Closed
ShaneHarvey opened this issue Dec 1, 2021 · 0 comments · Fixed by #18
Closed

The latest conda package (2.3.0) does not pin to pymongo<4.0 #17

ShaneHarvey opened this issue Dec 1, 2021 · 0 comments · Fixed by #18

Comments

@ShaneHarvey
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant