-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description :
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.
Steps to reproduce :
- Clone the repository - Link
- 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.
Additional Information :
- Python version - 3.8.10
- Render build command -
cd "Implementing REST API's" && pip install -r requirements.txt
- Render start command -
gunicorn "Implementing REST API's.app:app"
Relevant Links :
- https://community.render.com/t/module-not-found-error-in-web-service/8335
- https://community.render.com/t/module-not-found/13761
Screenshots :
Metadata
Metadata
Assignees
Labels
No labels