Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Apps commands only accept relative path to app.yml

Aperta Adatta ai principianti
#6,910 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
82/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go
Ambito
cli

Direzione di ricerca

Inizia da libs/apps/runlocal/spec.go, intorno alla riga 40, dove il percorso di --entry-point viene combinato con il percorso dell’app. Riproduci il problema con un percorso assoluto di app.yml e verifica che il comando si avvii correttamente e stampi l’URL localhost invece di "no python file found".

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

CLI
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
  1. Run databricks apps run-local --entry-point <path> with an absolute path
  2. 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
Lingua principale
Go
Stelle
403
Fork
244
Merge medio
1g 11h
PR unite (30g)
276

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di databricks/cli

Tutte le issue di databricks/cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.