Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialyukadev
5,785 PointsWhy am I getting "Exception: Install 'email_validator'..." when running app_tests.py?
I am trying to run the test on the taco cat challenge but I am getting this error message.
treehouse:~/workspace$ python app_tests.py
Traceback (most recent call last):
File "/home/treehouse/workspace/app_tests.py", line 6, in <module>
import tacocat
File "/home/treehouse/workspace/tacocat.py", line 5, in <module>
import forms
File "/home/treehouse/workspace/forms.py", line 11, in <module>
class RegisterForm(Form):
File "/home/treehouse/workspace/forms.py", line 16, in RegisterForm
Email(),
File "/usr/local/lib/python3.9/site-packages/wtforms/validators.py", line 332, in init
raise Exception("Install 'email_validator' for email validation support.")
Exception: Install 'email_validator' for email validation support.
treehouse:~/workspace$
What does it mean to install email validator for email validation support?
Here is a link to snapshot of my workspace: https://w.trhou.se/a3b7p5sr5l
1 Answer
Jennifer Nordell
Treehouse TeacherHi there, yukadev! You will need to use pip
to install the email-validator To do this, enter pip install email-validator
in the console and wait for it to install.
This should clear up that error and move you further down the path!
Hope this helps!
yukadev
5,785 Pointsyukadev
5,785 PointsIt worked! I didn't realize that the install gets entered in the console. Thank you very much!