Attempting to `pulumi up` with this example: <http...
# python
f
Attempting to
pulumi up
with this example: https://github.com/pulumi/examples/tree/master/aws-py-webserver It never creates anything after doing a
pulumi up
. I see this in the output:
Copy code
Diagnostics:
  pulumi:pulumi:Stack (webserver-py-python-webserver-testing):
    /home/wes/.pulumi/bin/pulumi-language-python-exec:57: RuntimeWarning: coroutine 'run_in_stack' was never awaited
      pulumi.runtime.run_in_stack(lambda: runpy.run_path(args.PROGRAM, run_name='__main__'))
w
Note that we are in progress on updating this example to the latest version of Pulumi. https://github.com/pulumi/examples/pull/180 If you pull in those changes, the example should work for you.
f
Thanks!
e
I'm getting that same error just running my regular stack with pulumi 16.4 and pulumi-gcp 16.2
Were you able to get your version working @flat-river-10700?
f
Not yet
w
Let me look into this. /cc also @incalculable-sundown-82514
i
@flat-river-10700 can you update your CLI to the latest version? 0.16.4? we made some changes to Python components that ship as part of the CLI that you need here.
sorry for the bumpiness here!
f
Will do, thanks
e
Not sure about you Wes. But for me updating the CLI from 16.2 to 16.4 did change the error message to:
Copy code
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
        exec(code, run_globals)
      File "./__main__.py", line 85, in <module>
        pulumi.output('cluster-id', cluster.id)
    TypeError: 'module' object is not callable
    error: an unhandled error occurred: Program exited with non-zero exit code: 1
All good now. I just had to change pulumi.output() -> pulumi.export()