Apps commands only accept relative path to app.yml
维护者通常 1 天内回复
评估
调研方向
从 libs/apps/runlocal/spec.go 大约第 40 行开始查看,那里会将 --entry-point 路径与应用路径结合起来。使用绝对的 app.yml 路径重现问题,并验证命令能够成功启动且打印 localhost URL,而不是 "no python file found"。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Go
- 星标
- 404
- 派生
- 246
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 268
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
databricks/cli 的其他 Issue
-
DABs
难度 2/5 1-3 小时 新手友好度 68/100
databricks/cli#6670 ·
维护者通常 1 天内回复
-
DABs
难度 5/5 一周以上 新手友好度 18/100
databricks/cli#7002 ·
维护者通常 1 天内回复
-
DABs
难度 4/5 3-5 天 新手友好度 35/100
databricks/cli#6986 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 55/100
databricks/cli#6978 ·
维护者通常 1 天内回复
-
immutable_folder cannot be used with a mode: development target可能已有人在做 @andrewnester 于 2 天前认领。 未关闭Bug DABs
难度 4/5 3-5 天 新手友好度 48/100
databricks/cli#6963 · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
bug go
难度 2/5 1-3 小时 新手友好度 82/100
genkit-ai/genkit#6761 · 1 条评论 ·
维护者通常 2 天内回复
-
ready
难度 2/5 1-3 小时 新手友好度 92/100
kubeflow/pipelines#14784 · 1 条评论 ·
维护者通常 2 天内回复
-
bug frontend good first issue
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
trust: update-propagation-directive requires developer mode while add and remove do not可能已有人在做 @bhuvan-somisetty 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
oalders/clodhopper#133 ·