Python Driver 4.2.0 Beta Available

The Python Driver team is pleased to announce the 4.2.0b0 version of PyMongo. Due to technical limitations we cannot release on PyPI, but it can be installed from the tagged version as:

pip install "pymongo@git+ssh://git@github.com/mongodb/mongo-python-driver.git@4.2.0b0"

To see the full set of changes, check out the release notes.

If you run into any issues, please file an issue on JIRA or GitHub.

I get error using the pip install command as following:

Collecting pymongo@ git+ssh://git@github.com/mongodb/mongo-python-driver.git@4.2.0b0
Cloning ssh://@github.com/mongodb/mongo-python-driver.git (to revision 4.2.0b0) to /tmp/pip-install-sm3q8b_2/pymongo_b5fd34b4fda24d418051342d53dcb804
Running command git clone --filter=blob:none --quiet 'ssh://
@github.com/mongodb/mongo-python-driver.git’ /tmp/pip-install-sm3q8b_2/pymongo_b5fd34b4fda24d418051342d53dcb804
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet ‘ssh://****@github.com/mongodb/mongo-python-driver.git’ /tmp/pip-install-sm3q8b_2/pymongo_b5fd34b4fda24d418051342d53dcb804 did not run successfully.
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet ‘ssh://****@github.com/mongodb/mongo-python-driver.git’ /tmp/pip-install-sm3q8b_2/pymongo_b5fd34b4fda24d418051342d53dcb804 did not run successfully.
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available.
You should consider upgrading via the ‘/usr/local/bin/python -m pip install --upgrade pip’ command.

You can use https instead:
pip install https://github.com/mongodb/mongo-python-driver/archive/4.2.0b0.zip

Actually we just released PyMongo 4.2.0 today so you can install via:
pip install --upgrade pymongo==4.2.0

3 Likes

This topic was automatically closed after 90 days. New replies are no longer allowed.