https://pulumi.com logo
#python
Title
# python
f

flat-river-10700

11/14/2018, 10:20 PM
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

white-balloon-205

11/14/2018, 10:22 PM
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

flat-river-10700

11/14/2018, 10:22 PM
Thanks!
e

elegant-planet-7298

11/15/2018, 7:48 AM
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

flat-river-10700

11/15/2018, 5:10 PM
Not yet
w

white-balloon-205

11/15/2018, 5:11 PM
Let me look into this. /cc also @incalculable-sundown-82514
i

incalculable-sundown-82514

11/15/2018, 7:50 PM
@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

flat-river-10700

11/15/2018, 9:23 PM
Will do, thanks
e

elegant-planet-7298

11/15/2018, 10:24 PM
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()