Error while creating databricks custom app
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2025 11:51 AM
I am trying to create a simple databricks custom app but I am getting Error: Could not import 'app'. error.
app.yaml file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2025 03:06 PM
Seems like you are combining a file path for FLASK_APP with running a file using command. When FLASK_APP is set to a full path, Flask expects that path to point to a Python file (e.g., app.py) or package that contains the application instance.
Correct FLASK_APP and command
Adjust your app.yaml file to only point FLASK_APP to the directory containing your main Python file (app.py), and then set the command to run the file directly
RG #Driving Business Outcomes with Data Intelligence
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2025 07:23 AM
Thanks, I have modified the yaml file but still getting Error: Could not import 'app' error