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

bson is outdated and needs to be replaced by pymongo #296

Closed
caseyclements opened this issue Jul 25, 2024 · 0 comments · Fixed by #297
Closed

bson is outdated and needs to be replaced by pymongo #296

caseyclements opened this issue Jul 25, 2024 · 0 comments · Fixed by #297

Comments

@caseyclements
Copy link
Contributor

The problem

The PyMongo Installation docs clearly states "Do not install the “bson” package from pypi. PyMongo comes with its own bson package; doing “pip install bson” or “easy_install bson” installs a third-party package that is incompatible with PyMongo."

The bson package in pypi has not been updated in pypi since 2020. Any environment containing both bson and pymongo is likely to break.

Expected behavior

A one-line change. Any requirement from the extra bson dependency will be achieved by installing pymongo extra instead.

Steps to reproduce the behavior

A simple example that demonstrates how bson has gone out-of-date.

docker run -it --rm python:3.11 bash
pip install bson
python -c "from bson.errors import InvalidId"
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