Skip to content

Cannot import NotMasterError from pymongo.errors #31

Open
@Alge

Description

@Alge

Doens't seem to be compatible with Pymongo 4.3.3

Traceback (most recent call last):
  File "/home/...", line 34, in <module>
    import db
  File "/../db.py", line 2, in <module>
    import mongo_proxy
  File "/home/../env/lib/python3.11/site-packages/mongo_proxy/__init__.py", line 3, in <module>
    from .pymongo3_durable_cursor import PyMongo3DurableCursor
  File "/home/.../env/lib/python3.11/site-packages/mongo_proxy/pymongo3_durable_cursor.py", line 31, in <module>
    from pymongo.errors import NotMasterError
ImportError: cannot import name 'NotMasterError' from 'pymongo.errors' (/home/../env/lib/python3.11/site-packages/pymongo/errors.py)
(env) m

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions