'How to fix "Exception: Install 'email_validator' for email validation support" in Heroku? [closed]

When I open my app in Heroku, it gives me this error:

2022-04-10T19:49:02.067488+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=likeblogs.herokuapp.com request_id=765d2963-1ae8-47f4-958f-672ee4a7d99a fwd="189.102.131.238" dyno= connect= service= status=503 bytes= protocol=https
2022-04-10T19:49:02.751766+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=likeblogs.herokuapp.com request_id=00210037-68e7-4cd7-aa1c-c5cb9c1e8143 fwd="189.102.131.238" dyno= connect= service= status=503 bytes= protocol=https

I have already declared the requirements.txt and set gunicorn and in my Procfile like this :

web: gunicorn main.py:app

I have these errors:

screenshot of error



Solution 1:[1]

Maybe you mean

web: gunicorn main:app

The .py shouldn't be included: the format is $(MODULE_NAME):$(VARIABLE_NAME).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tim