Hi @Hasse_Hellstrom!
I am pretty certain this is because you have a version of PyMongo installed alongside an incompatible version of the bson library (that PyMongo uses).
The quickest solution is probably to uninstall both PyMongo & bson, and then re-install PyMongo. You don’t need to re-install the bson library becaause it will be automatically reinstalled at the correct version.
python -m pip uninstall pymongo bson
python -m pip install pymongo
Let me know if this doesn’t fix your problem!