Apps commands only accept relative path to app.yml
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 82/100
Rechercherichtung
Beginne in libs/apps/runlocal/spec.go ungefähr bei Zeile 40, wo der Pfad von --entry-point mit dem App-Pfad kombiniert wird. Reproduziere das Problem mit einem absoluten app.yml-Pfad und überprüfe, dass der Befehl erfolgreich startet und die localhost-URL anstelle von "no python file found" ausgibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Go
- Sterne
- 409
- Forks
- 253
- Ø Merge
- 1 T. 14 Std.
- Gemergte PRs (30 T.)
- 208
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus databricks/cli
-
DABs
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
databricks/cli#6670 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
bundle validate does not catch missing trigger.table_update.condition with multiple tablesEvtl. vergeben @yuri-rod hat das vor 4 Tagen übernommen. OffenDABs Enhancement
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
databricks/cli#7101 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
databricks/cli#7100 ·
Maintainer antworten meist innerhalb von 1 Tag
-
DABs Enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
databricks/cli#7099 ·
Maintainer antworten meist innerhalb von 1 Tag
-
DABs
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
databricks/cli#7032 ·
Maintainer antworten meist innerhalb von 1 Tag
Ähnliche Issues
-
compress: block buffers get re-zeroed on every call, and the zeroing is immediately overwrittenOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
ClickHouse/ch-go#1218 ·
Maintainer antworten meist innerhalb von 13 Tagen
-
automation models
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
podman-container-tools/podman#30031 ·
Maintainer antworten meist innerhalb von 1 Tag