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

creamy-knife-53051

02/18/2021, 1:25 PM
HI! i think there's a problem with pulumi-python v2.21
Copy code
File "/usr/local/lib/python3.7/site-packages/pulumi/runtime/resource.py", line 358, in do_register
        resolver = await prepare_resource(res, ty, custom, props, opts)
      File "/usr/local/lib/python3.7/site-packages/pulumi/runtime/resource.py", line 86, in prepare_resource
        serialized_props = await rpc.serialize_properties(props, property_dependencies_resources, res.translate_input_property)
      File "/usr/local/lib/python3.7/site-packages/pulumi/runtime/rpc.py", line 78, in serialize_properties
        result = await serialize_property(v, deps, input_transformer)
      File "/usr/local/lib/python3.7/site-packages/pulumi/runtime/rpc.py", line 199, in serialize_property
        value = await serialize_property(output.future(), deps, input_transformer)
      File "/usr/local/lib/python3.7/site-packages/pulumi/runtime/rpc.py", line 185, in serialize_property
        future_return = await asyncio.ensure_future(awaitable)
      File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 116, in get_value
        val = await self._future
      File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 116, in get_value
        val = await self._future
      File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 116, in get_value
        val = await self._future
      [Previous line repeated 1 more time]
      File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 157, in run
        value = await self._future
      File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 382, in gather_futures
        return await asyncio.gather(*value_futures_list)
      File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 116, in get_value
        val = await self._future
      File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 178, in run
        transformed: Input[U] = func(value)
      File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 266, in from_input
        dict_items = [[k, Output.from_input(v)] for k, v in val.items()]
      File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 266, in <listcomp>
        dict_items = [[k, Output.from_input(v)] for k, v in val.items()]
      File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 272, in from_input
        list_items: List[Union[Any, Awaitable[Any], Output[Any]]] = [Output.from_input(v) for v in val]
      File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 272, in <listcomp>
        list_items: List[Union[Any, Awaitable[Any], Output[Any]]] = [Output.from_input(v) for v in val]
      File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 266, in from_input
        dict_items = [[k, Output.from_input(v)] for k, v in val.items()]
      File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 266, in <listcomp>
        dict_items = [[k, Output.from_input(v)] for k, v in val.items()]
      File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 274, in from_input
        output: Output[T] = cast(Output[T], Output.all(*list(list_items))) # type: ignore
      File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 388, in all
        raise ValueError("Output.all() was supplied no inputs")
    ValueError: Output.all() was supplied no inputs
    error: an unhandled error occurred: Program exited with non-zero exit code: 1
It doesn't happen with pulumi==2.20.0 (tested with pulumi cli 2.14 and 2.21)
b

broad-dog-22463

02/18/2021, 1:38 PM
Hi @creamy-knife-53051 I am wondering if this is due to this behaviour change . https://github.com/pulumi/pulumi/pull/6269
As per the thread right above your message
c

creamy-knife-53051

02/18/2021, 1:40 PM
I Saw that.. but in my piece of code i don't use output.all... I have to change something in my code ?
b

broad-dog-22463

02/18/2021, 1:44 PM
you don't use Output.all anywhere?
c

creamy-knife-53051

02/18/2021, 2:04 PM
define anywhere 😄 In that particular stack, i refer only to output of another stack eg:
Copy code
network_interfaces=[{
                                          "accessConfig": [{}],
                                          "network": parentStack.get_output('vpc_id'),
                                          "subnetwork": parentStack.get_output('subnet_id'),
                                      }],
b

broad-dog-22463

02/18/2021, 2:20 PM
ok, this feels lile a bug then - can you open an issue on pulumi/pulumi describing this so that one of the team can look at this?
c

creamy-knife-53051

02/18/2021, 2:24 PM
yup!
b

broad-dog-22463

02/18/2021, 2:24 PM
thank you!
c

creamy-knife-53051

02/18/2021, 2:39 PM
I hope I explained myself
b

broad-dog-22463

02/18/2021, 2:42 PM
Thank you so much
r

red-match-15116

02/18/2021, 3:15 PM
Thanks for reporting this! Seems like my output.all change inadvertently caused this. Will look into it first thing today.
❤️ 1
Fix incoming: https://github.com/pulumi/pulumi/pull/6381 We’ll do a patch release once this is in.
Alright folks, v2.21.1 is out and includes the fix to this bug.
c

creamy-knife-53051

02/19/2021, 7:37 AM
thankyou