Run.py error - no module named bson

C:\Users\GuyPython\Desktop\Mongodb\M220>python run.py
Traceback (most recent call last):
File “run.py”, line 1, in
from mflix.factory import create_app
File “C:\Users\GuyPython\Desktop\Mongodb\M220\mflix\factory.py”, line 9, in
from bson import json_util, ObjectId
ImportError: No module named bson

I was having the same problems with “flask” and some others, to which I installed flask and the other and it worked, but then another error appears.

If you’re having to do this, then you most likely have missed this installation step:


Please refer back to Lecture: README

1 Like