pulumi / pulumi-command

Apache License 2.0
57 stars 23 forks source link

pulumi_command.common has no attribute Logging #445

Closed bonovoxly closed 1 month ago

bonovoxly commented 1 month ago

What happened?

Using the latest pulumi command returns this error (just started happening this morning):

 AttributeError: module 'pulumi_command.common' has no attribute 'Logging'

Example

some snippets:

from pulumi_command import local
# not sure this is what is causing it, as on preview the error occurs 
# (and it might be erroring at Installing requirements?). again not sure, just posting this quickly.
        self.local_command = local.Command(f"{self.lambda_name}_zip", 
                                           create=command_zip,
                                           update=command_zip,
                                           triggers=[{"contentHash": content_hash}],
                                           asset_paths=[f"{self.src_path}/{self.lambda_name}.zip"]
                                           )

Output of pulumi about

# NOTE - also occurs in a GitHub action, so not just a Mac bug...
pulumi about  
CLI          
Version      3.112.0
Go Version   go1.22.1
Go Compiler  gc

Plugins
NAME        VERSION
aws         5.43.0
aws-iam     0.2.0
command     0.11.0
kubernetes  4.11.0
python      unknown

Host     
OS       darwin
Version  14.5
Arch     arm64

Additional context

verified no error in 0.10.0.

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

thomas11 commented 1 month ago

Hi @bonovoxly, thank you for reporting this. I can see a weird change in the Python SDK in v0.11.0 and will investigate. Are you able to stay on v0.10.0 in the meantime?

bonovoxly commented 1 month ago

@thomas11 yeah we can. just wanted to make sure that IF it was a bug, someone was notified.

(I was secretly hoping it was user error ;) )

iwahbe commented 1 month ago

This is due to https://github.com/pulumi/pulumi/issues/16221.

thomas11 commented 1 month ago

Fixed in v0.11.1.