diff --git a/.vscode/settings.json b/.vscode/settings.json index 2c4fbeb900..002a1e60a7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -18,4 +18,4 @@ "python.analysis.stubPath": ".vscode", "jupyter.interactiveWindow.cellMarker.codeRegex": "^# COMMAND ----------|^# Databricks notebook source|^(#\\s*%%|#\\s*\\|#\\s*In\\[\\d*?\\]|#\\s*In\\[ \\])", "jupyter.interactiveWindow.cellMarker.default": "# COMMAND ----------" -} \ No newline at end of file +} diff --git a/cmd/labs/project/installer.go b/cmd/labs/project/installer.go index 10540f9045..4902e614e5 100644 --- a/cmd/labs/project/installer.go +++ b/cmd/labs/project/installer.go @@ -107,6 +107,10 @@ func (i *installer) Install(ctx context.Context, offlineInstall bool) error { return fmt.Errorf("lib: %w", err) } } + + if _, err := os.Stat(i.LibDir()); os.IsNotExist(err) { + return fmt.Errorf("no local installation found: %w", err) + } err = i.setupPythonVirtualEnvironment(ctx, w) if err != nil { return fmt.Errorf("python: %w", err)