doomedraven / Tools

Combination of different utilities, have fun!
MIT License
202 stars 96 forks source link

Error: cannot import name 'abc' from 'bson.py3compat #71

Closed ClaudioWayne closed 3 years ago

ClaudioWayne commented 3 years ago

This is opensource and you getting free support so be friendly!

Prerequisites

Please answer the following questions for yourself before submitting an issue.

Expected Behavior

Error when starting Cape-Services

Current Behavior

Hi Doomedraven,

with the new installation of the dependencies via requirements.txt i get following error when starting Cape-Services:

ImportError: cannot import name 'abc' from 'bson.py3compat

Quick Search:

https://pymongo.readthedocs.io/en/stable/installation.html

Do not install the “bson” package from pypi. PyMongo comes with its own bson package; doing “pip install bson” or “easy_install bson” installs a third-party package that is incompatible with PyMongo

Maybe bson should be removed according to docs of pymongo if no other dependencies requires the bson pip package.

What worked for me:

pip uninstall bson
pip uninstall pymongo
pip install pymongo

Have a good one,

Claudio

doomedraven commented 3 years ago

ah good one thanks, going to remove that from requirements