raise ConfigurationError(self._incompatible_err) pymongo.errors.ConfigurationError: Server at xxx reports wire version 5, but this version of PyMongo requires at least 6 (MongoDB 3.6).

python3 Error

  File "/home/xxx/.local/lib/python3.10/site-packages/pymongo/topology_description.py", line 155, in check_compatible
    raise ConfigurationError(self._incompatible_err)
pymongo.errors.ConfigurationError: Server at xxx:27017 reports wire version 5, but this version of PyMongo requires at least 6 (MongoDB 3.6).

降低版本

$ pip3 install pymongo==3.4.0
Defaulting to user installation because normal site-packages is not writeable
Collecting pymongo==3.4.0
  Using cached pymongo-3.4.0.tar.gz (583 kB)
  Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for pymongo, since package 'wheel' is not installed.
Installing collected packages: pymongo
  Attempting uninstall: pymongo
    Found existing installation: pymongo 4.2.0
    Uninstalling pymongo-4.2.0:
      Successfully uninstalled pymongo-4.2.0
  Running setup.py install for pymongo ... done
Successfully installed pymongo-3.4.0

 

posted @ 2022-09-04 12:28  JeromePowell  阅读(1213)  评论(0编辑  收藏  举报