You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing an issue with importing the BookReview class in my app.py file. The code works perfectly fine when running locally; however, I encounter a ModuleNotFoundError when deploying the application, specifically on the Render platform.
Navigate to the project directory - Implementing REST API's
Run the application locally using : python app.py
Confirm that the application runs without any import errors.
Deploy the application on Render.
Observe the ModuleNotFoundError: No module named 'book_review' error during deployment.
Expected Behavior :
The BookReview class should be successfully imported both locally and when deployed on Render, and the application should run without any import errors in both environments.
Actual Behavior :
The code works without issues when running locally but encounters a ModuleNotFoundError when deploying on Render.
Description :
I am facing an issue with importing the
BookReview
class in myapp.py
file. The code works perfectly fine when running locally; however, I encounter aModuleNotFoundError
when deploying the application, specifically on the Render platform.Steps to reproduce :
Implementing REST API's
python app.py
ModuleNotFoundError: No module named 'book_review'
error during deployment.Expected Behavior :
The
BookReview
class should be successfully imported both locally and when deployed on Render, and the application should run without any import errors in both environments.Actual Behavior :
The code works without issues when running locally but encounters a
ModuleNotFoundError
when deploying on Render.Additional Information :
cd "Implementing REST API's" && pip install -r requirements.txt
gunicorn "Implementing REST API's.app:app"
Relevant Links :
Screenshots :
The text was updated successfully, but these errors were encountered: