Run.py ImportError json_util

Following the README for m220. I am unable to execute run.py without ImportError

python run.py
Traceback (most recent call last):
File “run.py”, line 1, in
from mflix.factory import create_app
File “/Users/dbindra/Downloads/mflix-python/mflix/factory.py”, line 9, in
from bson import json_util, ObjectId
ImportError: cannot import name ‘json_util’ from ‘bson’ (/Users/dbindra/Downloads/mflix-python/bson/init.py)
(mflix) SEAVVMDBINDRA:mflix-python dbindra$ which python
/Users/dbindra/anaconda3/envs/mflix/bin/python

Can you make a suggestion to resolve?

1 Like