This message was deleted.
# general
s
This message was deleted.
a
Full error log:
Copy code
I0211 09:18:33.444138   40005 plugins.go:77] gatherPluginsFromProgram(): gathering plugins from language host
I0211 09:18:33.444418   40005 plugins.go:588] GetPluginPath(language, python, <nil>): found on $PATH /usr/local/bin/pulumi-language-python
I0211 09:18:33.444462   40005 plugin.go:124] Launching plugin 'python' from '/usr/local/bin/pulumi-language-python' with args: 127.0.0.1:57525
I0211 09:18:33.494424   40005 langruntime_plugin.go:178] langhost[python].GetPluginInfo() executing
I0211 09:18:33.495787   40005 langruntime_plugin.go:91] langhost[python].GetRequiredPlugins(proj=zeljko,pwd=/path/,program=.) executing
I0211 09:18:33.565153   40005 langruntime_plugin.go:100] langhost[python].GetRequiredPlugins(proj=zeljko,pwd=/path/,program=.) failed: err=exit status 1

I0211 09:18:33.848736   40005 sink.go:154] defaultSink::Error(error: failed to discover plugin requirements: exit status 1
<http://github.com/pulumi/pulumi/sdk/v2/go/common/resource/plugin.GetRequiredPlugins|github.com/pulumi/pulumi/sdk/v2/go/common/resource/plugin.GetRequiredPlugins>
	/private/tmp/pulumi-20210204-32106-fnbw58/sdk/go/common/resource/plugin/host.go:471
<http://github.com/pulumi/pulumi/pkg/v2/engine.gatherPluginsFromProgram|github.com/pulumi/pulumi/pkg/v2/engine.gatherPluginsFromProgram>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/engine/plugins.go:79
<http://github.com/pulumi/pulumi/pkg/v2/engine.installPlugins|github.com/pulumi/pulumi/pkg/v2/engine.installPlugins>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/engine/update.go:214
<http://github.com/pulumi/pulumi/pkg/v2/engine.newUpdateSource|github.com/pulumi/pulumi/pkg/v2/engine.newUpdateSource>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/engine/update.go:364
<http://github.com/pulumi/pulumi/pkg/v2/engine.newDeployment|github.com/pulumi/pulumi/pkg/v2/engine.newDeployment>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/engine/deployment.go:156
<http://github.com/pulumi/pulumi/pkg/v2/engine.update|github.com/pulumi/pulumi/pkg/v2/engine.update>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/engine/update.go:439
<http://github.com/pulumi/pulumi/pkg/v2/engine.Update|github.com/pulumi/pulumi/pkg/v2/engine.Update>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/engine/update.go:182
<http://github.com/pulumi/pulumi/pkg/v2/backend/httpstate.(*cloudBackend).runEngineAction|github.com/pulumi/pulumi/pkg/v2/backend/httpstate.(*cloudBackend).runEngineAction>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/backend/httpstate/backend.go:1041
<http://github.com/pulumi/pulumi/pkg/v2/backend/httpstate.(*cloudBackend).apply|github.com/pulumi/pulumi/pkg/v2/backend/httpstate.(*cloudBackend).apply>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/backend/httpstate/backend.go:949
<http://github.com/pulumi/pulumi/pkg/v2/backend.PreviewThenPrompt|github.com/pulumi/pulumi/pkg/v2/backend.PreviewThenPrompt>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/backend/apply.go:115
<http://github.com/pulumi/pulumi/pkg/v2/backend.PreviewThenPromptThenExecute|github.com/pulumi/pulumi/pkg/v2/backend.PreviewThenPromptThenExecute>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/backend/apply.go:200
<http://github.com/pulumi/pulumi/pkg/v2/backend/httpstate.(*cloudBackend).Update|github.com/pulumi/pulumi/pkg/v2/backend/httpstate.(*cloudBackend).Update>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/backend/httpstate/backend.go:836
<http://github.com/pulumi/pulumi/pkg/v2/backend.UpdateStack|github.com/pulumi/pulumi/pkg/v2/backend.UpdateStack>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/backend/stack.go:84
<http://github.com/pulumi/pulumi/pkg/v2/backend/httpstate.(*cloudStack).Update|github.com/pulumi/pulumi/pkg/v2/backend/httpstate.(*cloudStack).Update>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/backend/httpstate/stack.go:148
main.newUpCmd.func1
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/cmd/pulumi/up.go:138
main.newUpCmd.func3
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/cmd/pulumi/up.go:378
<http://github.com/pulumi/pulumi/sdk/v2/go/common/util/cmdutil.RunResultFunc.func1|github.com/pulumi/pulumi/sdk/v2/go/common/util/cmdutil.RunResultFunc.func1>
	/private/tmp/pulumi-20210204-32106-fnbw58/sdk/go/common/util/cmdutil/exit.go:112
<http://github.com/spf13/cobra.(*Command).execute|github.com/spf13/cobra.(*Command).execute>
	/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846
<http://github.com/spf13/cobra.(*Command).ExecuteC|github.com/spf13/cobra.(*Command).ExecuteC>
	/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950
<http://github.com/spf13/cobra.(*Command).Execute|github.com/spf13/cobra.(*Command).Execute>
	/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
main.main
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/cmd/pulumi/main.go:48
runtime.main
	/usr/local/Cellar/go/1.15.7_1/libexec/src/runtime/proc.go:204
runtime.goexit
	/usr/local/Cellar/go/1.15.7_1/libexec/src/runtime/asm_amd64.s:1374
)
error: failed to discover plugin requirements: exit status 1
<http://github.com/pulumi/pulumi/sdk/v2/go/common/resource/plugin.GetRequiredPlugins|github.com/pulumi/pulumi/sdk/v2/go/common/resource/plugin.GetRequiredPlugins>
	/private/tmp/pulumi-20210204-32106-fnbw58/sdk/go/common/resource/plugin/host.go:471
<http://github.com/pulumi/pulumi/pkg/v2/engine.gatherPluginsFromProgram|github.com/pulumi/pulumi/pkg/v2/engine.gatherPluginsFromProgram>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/engine/plugins.go:79
<http://github.com/pulumi/pulumi/pkg/v2/engine.installPlugins|github.com/pulumi/pulumi/pkg/v2/engine.installPlugins>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/engine/update.go:214
<http://github.com/pulumi/pulumi/pkg/v2/engine.newUpdateSource|github.com/pulumi/pulumi/pkg/v2/engine.newUpdateSource>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/engine/update.go:364
<http://github.com/pulumi/pulumi/pkg/v2/engine.newDeployment|github.com/pulumi/pulumi/pkg/v2/engine.newDeployment>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/engine/deployment.go:156
<http://github.com/pulumi/pulumi/pkg/v2/engine.update|github.com/pulumi/pulumi/pkg/v2/engine.update>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/engine/update.go:439
<http://github.com/pulumi/pulumi/pkg/v2/engine.Update|github.com/pulumi/pulumi/pkg/v2/engine.Update>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/engine/update.go:182
<http://github.com/pulumi/pulumi/pkg/v2/backend/httpstate.(*cloudBackend).runEngineAction|github.com/pulumi/pulumi/pkg/v2/backend/httpstate.(*cloudBackend).runEngineAction>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/backend/httpstate/backend.go:1041
<http://github.com/pulumi/pulumi/pkg/v2/backend/httpstate.(*cloudBackend).apply|github.com/pulumi/pulumi/pkg/v2/backend/httpstate.(*cloudBackend).apply>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/backend/httpstate/backend.go:949
<http://github.com/pulumi/pulumi/pkg/v2/backend.PreviewThenPrompt|github.com/pulumi/pulumi/pkg/v2/backend.PreviewThenPrompt>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/backend/apply.go:115
<http://github.com/pulumi/pulumi/pkg/v2/backend.PreviewThenPromptThenExecute|github.com/pulumi/pulumi/pkg/v2/backend.PreviewThenPromptThenExecute>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/backend/apply.go:200
<http://github.com/pulumi/pulumi/pkg/v2/backend/httpstate.(*cloudBackend).Update|github.com/pulumi/pulumi/pkg/v2/backend/httpstate.(*cloudBackend).Update>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/backend/httpstate/backend.go:836
<http://github.com/pulumi/pulumi/pkg/v2/backend.UpdateStack|github.com/pulumi/pulumi/pkg/v2/backend.UpdateStack>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/backend/stack.go:84
<http://github.com/pulumi/pulumi/pkg/v2/backend/httpstate.(*cloudStack).Update|github.com/pulumi/pulumi/pkg/v2/backend/httpstate.(*cloudStack).Update>
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/backend/httpstate/stack.go:148
main.newUpCmd.func1
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/cmd/pulumi/up.go:138
main.newUpCmd.func3
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/cmd/pulumi/up.go:378
<http://github.com/pulumi/pulumi/sdk/v2/go/common/util/cmdutil.RunResultFunc.func1|github.com/pulumi/pulumi/sdk/v2/go/common/util/cmdutil.RunResultFunc.func1>
	/private/tmp/pulumi-20210204-32106-fnbw58/sdk/go/common/util/cmdutil/exit.go:112
<http://github.com/spf13/cobra.(*Command).execute|github.com/spf13/cobra.(*Command).execute>
	/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846
<http://github.com/spf13/cobra.(*Command).ExecuteC|github.com/spf13/cobra.(*Command).ExecuteC>
	/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950
<http://github.com/spf13/cobra.(*Command).Execute|github.com/spf13/cobra.(*Command).Execute>
	/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
main.main
	/private/tmp/pulumi-20210204-32106-fnbw58/pkg/cmd/pulumi/main.go:48
runtime.main
	/usr/local/Cellar/go/1.15.7_1/libexec/src/runtime/proc.go:204
runtime.goexit
	/usr/local/Cellar/go/1.15.7_1/libexec/src/runtime/asm_amd64.s:1374
b
can you try run
pip3 install -r requirements.txt
inside your virtualenv and see if that helps?
a
I tend to run
pip install -r requirements.txt --upgrade
to get the latest version of the plugins. Usually fixes stuff.
a
hmm - upgrading did temporarily fix this, but now I’m seeing it again after applying a few more updates
reading through https://github.com/pulumi/pulumi/issues/4848 - this is caused by not activating the proper env, presumably when I reopened a terminal, my path reverted and pulumi found the wrong python installation
.. this was very frustrating to debug
a
I have this on my `Pulumi.yaml`:
Copy code
name: <redacted>
runtime:
  name: python
  options:
    virtualenv: venv
Essentially it tells Pulumi that my virtualenv is in the folder
virtualenv
, and this way I never actually have to activate it. 😸
a
did not know about
options.virtualenv
, nice one @ambitious-father-68746! I will definitely be using this 🥲
a
Pulumi is the gift that keeps on giving 🙂