Open tiltowait opened 1 month ago
Looks like an issue with mongomock
that can be fixed in https://github.com/mongomock/mongomock/issues/889. While this version is unavailable, did you try to install setuptools
? It seems to help:
mongomock_motor/$ python3 -V
Python 3.12.4
mongomock_motor/$ python3 -m venv .venv
mongomock_motor/$ source .venv/bin/activate
mongomock_motor/$ python3 -m pip install -r requirements.txt setuptools
...
mongomock_motor/$ make test
... 32 passed ...
I get the following error trying to import mongomock-motor in Python 3.12. I have run
python3.12 -m ensurepip --upgrade
, which is a commonly suggested fix for this issue with pkgutil.I'm using mongomock-motor 0.0.30, poetry 1.8.3, and Python 3.12.3.