Apps commands only accept relative path to app.yml
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Start at libs/apps/runlocal/spec.go around line 40, where the --entry-point path is combined with the app path. Reproduce with an absolute app.yml path and verify that the command starts successfully and prints the localhost URL instead of "no python file found".
Written by the indexing model from the issue text.
Description
Describe the issue
When running databricks apps run-local --entry-point <path> if the path is not relative, the app won't start and instead exit with Error: no python file found.
The problem is this line which just places the path passed with --entry-point after the app path (in my case the working directory):
https://github.com/databricks/cli/blob/419b912bb18dd06d6be2a657d7cef7cbb9e12932/libs/apps/runlocal/spec.go#L40
Steps to reproduce the behavior
- Run
databricks apps run-local --entry-point <path>with an absolute path - See error:
Error: no python file found
Expected Behavior
The app starts with something like: To access your app go to http://localhost:8001
Actual Behavior
The app stops with: Error: no python file found
OS and CLI version
Databricks CLI v1.19.0
MacOS 26.3.1 (a) (25D771280a)
Is this a regression?
I'm not sure, this is the first time I encountered it
Debug Logs
23:06:25 Info: start pid=59821 version=1.19.0 args="databricks, apps, run-local, --entry-point, /var/folders/y5/****/app.yml, --log-level=debug"
23:06:25 Debug: Found bundle root at /Users/****/Projects/**** (file /Users/****/Projects/****/databricks.yml) pid=59821
23:06:25 Info: Phase: load pid=59821
23:06:25 Debug: Apply pid=59821 mutator=EntryPoint
23:06:25 Debug: Apply pid=59821 mutator=scripts.preinit
23:06:25 Debug: No script defined for preinit, skipping pid=59821 mutator=scripts.preinit
23:06:25 Debug: Apply pid=59821 mutator=ProcessRootIncludes
23:06:25 Debug: Apply pid=59821 mutator=VerifyCliVersion
23:06:25 Debug: Apply pid=59821 mutator=EnvironmentsToTargets
23:06:25 Debug: Apply pid=59821 mutator=ComputeIdToClusterId
23:06:25 Debug: Apply pid=59821 mutator=InitializeVariables
23:06:25 Debug: Apply pid=59821 mutator=DefineDefaultTarget(default)
23:06:25 Debug: Apply pid=59821 mutator=validate:no_variable_reference_in_resource_key
23:06:25 Debug: Apply pid=59821 mutator=validate:unique_resource_keys
23:06:25 Debug: Apply pid=59821 mutator=SelectDefaultTarget
23:06:25 Debug: Apply pid=59821 mutator=SelectDefaultTarget mutator=SelectTarget(dev)
Using profile: ****
23:06:27 Debug: Loading **** profile from /Users/****/.databrickscfg pid=59821 sdk=true
23:06:27 Debug: [Local Cache] using cache key: **** pid=59821
23:06:27 Debug: [Local Cache] cache hit pid=59821
23:06:27 Debug: Resolved cloud from hostname: "Azure" pid=59821 sdk=true
23:06:27 Debug: Resolved token_audience from host metadata token_federation_default_oidc_audiences: "https://adb-****.azuredatabricks.net/oidc/v1/token" pid=59821 sdk=true
23:06:27 Debug: Resolved discovery_url from host metadata: "https://adb-****.azuredatabricks.net/oidc/.well-known/oauth-authorization-server" pid=59821 sdk=true
Error: no python file found
23:06:27 Info: failed execution pid=59821 exit_code=1 error="no python file found"
23:06:27 Debug: no telemetry logs to upload pid=59821
- Dominant language
- Go
- Stars
- 403
- Forks
- 244
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 263
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from databricks/cli
-
DABs
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
databricks/cli#6670 ·
Maintainers usually reply within 1 day
-
DABs PyDABs
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
databricks/cli#3926 · 4 comments ·
Maintainers usually reply within 1 day
-
DABs
Difficulty 3/5 1-2 days Newbie friendliness 68/100
databricks/cli#6901 ·
Maintainers usually reply within 1 day
-
Feature request: allow bundle init --config-file to read from Unity Catalog VolumesPossibly taken @leprpht claimed this 6 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 68/100
databricks/cli#6786 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
databricks/cli#6785 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
accepted bug wg/router-models-inference-runtime
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
vllm-project/semantic-router#4524 · 1 comment ·
Maintainers usually reply within 1 day
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
aws/aws-sdk-go-v2#3576 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 2 days
-
enhancement needs-verification phase-2-optimize
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
FootprintAI/Containarium#2277 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 92/100
Maintainers usually reply within 1 day