Cant run pytest -m connection Error ModuleNotFoundError

Joined
Jun 25, 2021
Messages
80
Reaction score
3
Points
8
I can´t get Test code because I have installed the modules with pip command but when I run pytest-m connection command I get the error
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’t’
 
OP
J
Joined
Jun 25, 2021
Messages
80
Reaction score
3
Points
8
I can´t get Test code because I have installed the modules with pip command but when I run pytest-m connection command I get the error
tests\conftest.py:2: in error “ModuleNotFoundError:
from mflix.factory import create_app
mflix\factory.py:6: in
from flask_bcrypt import Bcrypt
E ModuleNotFoundError: No module named ‘flask_bcrypt’t’
thanks in advance for any help
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,765
Reaction score
2,105
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
So you've done "pip install Bcrypt" or "pip3 install Bcrypt" depending on what version of Python you are using. Then do "pip list" or "pip3 list", you should see Bcrypt listed one of the modules. If you don't see it listed there, that's why you are getting that error.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top