Failed to Establish Connection

Hello Expert,

This is Abhishek Raj, I am not able to established Connection , could you please.
I am sending my issues below please go and suggest me ,

Microsoft Windows [Version 6.3.9600]
© 2013 Microsoft Corporation. All rights reserved.

D:\MongoDbPython\mflix-python(1)>pytest -m test_db_connection
ImportError while loading conftest ‘D:\MongoDbPython\mflix-python(1)\tests\conft
est.py’.
tests\conftest.py:2: in
from mflix.factory import create_app
mflix\factory.py:6: in
from flask_bcrypt import Bcrypt
E ModuleNotFoundError: No module named ‘flask_bcrypt’

D:\MongoDbPython\mflix-python(1)>pytest -m test_db_connection
ImportError while loading conftest ‘D:\MongoDbPython\mflix-python(1)\tests\conft
est.py’.
tests\conftest.py:2: in
from mflix.factory import create_app
mflix\factory.py:9: in
from bson import json_util, ObjectId
E ModuleNotFoundError: No module named ‘bson’

D:\MongoDbPython\mflix-python(1)>pytest -m test_db_connection
============================= test session starts =============================
platform win32 – Python 3.6.5, pytest-4.0.0, py-1.5.3, pluggy-0.8.0
rootdir: D:\MongoDbPython\mflix-python(1), inifile:
plugins: remotedata-0.2.1, openfiles-0.3.0, flask-0.14.0, doctestplus-0.1.3, arr
aydiff-0.2
collected 39 items / 1 errors / 39 deselected

=================================== ERRORS ====================================
________________ ERROR collecting tests/test_db_connection.py _________________
c:\users\araj\appdata\local\continuum\anaconda3\lib\site-packages_pytest\python
.py:450: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
c:\users\araj\appdata\local\continuum\anaconda3\lib\site-packages\py_path\local
.py:668: in pyimport
import (modname)
E File “D:\MongoDbPython\mflix-python(1)\tests\test_db_connection.py”, line
17
E db = MongoClient(config['mongodb+srv://m220student:@mflix-
q0fyq.mongodb.net/test?retryWrites=true
E
^
E SyntaxError: EOL while scanning string literal
!!! Interrupted: 1 errors during collection !!!
=================== 39 deselected, 1 error in 0.81 seconds ====================

D:\MongoDbPython\mflix-python(1)>

Thankyou

As mentioned twice before, it looks like you’re missing a bunch of Python modules that are needed.

I installed almost but still m getting same thing.

Please run below code to install all dependencies inside mflix project director.

pip install requirements.txt