Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python example 01_simple_virtual_machine is not working (anymore) #42

Open
gzeel opened this issue Oct 3, 2023 · 3 comments
Open

Python example 01_simple_virtual_machine is not working (anymore) #42

gzeel opened this issue Oct 3, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@gzeel
Copy link

gzeel commented Oct 3, 2023

Summary

I've tried to deploy a vm with you 01_simple_virtual_machine_python example. A few weeks a go it worked. When I want to try it again today it doesn't. I've tried it on MacOS and Debian (in WSL).

Diagnostics

1.0.0

    error: Program failed with an unhandled exception:
    Traceback (most recent call last):
      File "/opt/homebrew/bin/pulumi-language-python-exec", line 197, in <module>
        loop.run_until_complete(coro)
      File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
        return future.result()
               ^^^^^^^^^^^^^^^
      File "/Users/gerrit/Code/les-05/pulumi-esxi/venv/lib/python3.11/site-packages/pulumi/runtime/stack.py", line 137, in run_in_stack
        await run_pulumi_func(lambda: Stack(func))
      File "/Users/gerrit/Code/les-05/pulumi-esxi/venv/lib/python3.11/site-packages/pulumi/runtime/stack.py", line 51, in run_pulumi_func
        await wait_for_rpcs()
      File "/Users/gerrit/Code/les-05/pulumi-esxi/venv/lib/python3.11/site-packages/pulumi/runtime/stack.py", line 121, in wait_for_rpcs
        raise exception
      File "/Users/gerrit/Code/les-05/pulumi-esxi/venv/lib/python3.11/site-packages/pulumi/output.py", line 172, in run
        is_known = await self._is_known
                   ^^^^^^^^^^^^^^^^^^^^
      File "/Users/gerrit/Code/les-05/pulumi-esxi/venv/lib/python3.11/site-packages/pulumi/output.py", line 103, in is_value_known
        return await is_known and not contains_unknowns(await future)
               ^^^^^^^^^^^^^^
      File "/Users/gerrit/Code/les-05/pulumi-esxi/venv/lib/python3.11/site-packages/pulumi/runtime/resource.py", line 872, in do_register
        resolver = await prepare_resource(res, ty, custom, remote, props, opts, typ)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/gerrit/Code/les-05/pulumi-esxi/venv/lib/python3.11/site-packages/pulumi/runtime/resource.py", line 176, in prepare_resource
        serialized_props = await rpc.serialize_properties(
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/gerrit/Code/les-05/pulumi-esxi/venv/lib/python3.11/site-packages/pulumi/runtime/rpc.py", line 209, in serialize_properties
        result = await serialize_property(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/gerrit/Code/les-05/pulumi-esxi/venv/lib/python3.11/site-packages/pulumi/runtime/rpc.py", line 562, in serialize_property
        raise ValueError(f"unexpected input of type {type(value).__name__}")
    ValueError: unexpected input of type _GenericAlias

As far as I can debug it is in the part:

network_interfaces=Sequence[NetworkInterfaceArgs(
                        virtual_network="default"
                    )])

Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

@gzeel gzeel added the bug Something isn't working label Oct 3, 2023
@TeRua
Copy link

TeRua commented Jan 15, 2024

Try without Sequence.

network_interfaces=[NetworkInterfaceArgs(virtual_network="default")]

@edmondshtogu
Copy link
Collaborator

Hi @gzeel did you try the suggestion from @TeRua?

@edmondshtogu
Copy link
Collaborator

There is another chance that you might be using a different pulumi version from what I have used in the package
https://github.com/pulumiverse/pulumi-esxi-native/blob/main/provider/go.mod#L9-L10

Can you share the version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants