M
M
Michael2014-03-20 20:32:40
Flask
Michael, 2014-03-20 20:32:40

How to fix pymongo import error?

Hello,
when importing a module, pymongo gives an error:
File "..../python2.7/site-packages/flask_pymongo/__init__.py", line 37, in
from pymongo.read_preferences import ReadPreference
ImportError: No module named read_preferences

What is the module And what package does it come with?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2014-03-20
@nextel

Everything was decided, he simply imported the module from the main directory where pymongo was not spawned, and not from one of the virtual environments as it should have been, everything was decided by editing the paths to the desired package repository.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question