Hello! I’m trying to run the CLI on an M1 Mac, and...
# dotnet
l
Hello! I’m trying to run the CLI on an M1 Mac, and I get the following exception. This is a known problem that the grpc plugin are not available for osx-arm64, but I’m not sure why the CLI wants to run these during a
pulumi up
operation.
Copy code
Unhandled exception. System.IO.FileNotFoundException: Error loading native library. Not found in any of the possible locations: /Users/tm/git/pronghorn/Programs/OperatingEnvironment/bin/Debug/net6.0/libgrpc_csharp_ext.arm64.dylib,/Users/tm/git/pronghorn/Programs/OperatingEnvironment/bin/Debug/net6.0/runtimes/osx-arm64/native/libgrpc_csharp_ext.arm64.dylib,/Users/tm/git/pronghorn/Programs/OperatingEnvironment/bin/Debug/net6.0/../../runtimes/osx-arm64/native/libgrpc_csharp_ext.arm64.dylib
       at Grpc.Core.Internal.UnmanagedLibrary.FirstValidLibraryPath(String[] libraryPathAlternatives)
       at Grpc.Core.Internal.UnmanagedLibrary..ctor(String[] libraryPathAlternatives)
       at Grpc.Core.Internal.NativeExtension.LoadNativeMethodsUsingExplicitLoad()
       at Grpc.Core.Internal.NativeExtension.LoadNativeMethods()
       at Grpc.Core.Internal.NativeExtension..ctor()
       at Grpc.Core.Internal.NativeExtension.Get()
       at Grpc.Core.Internal.NativeMethods.Get()
       at Grpc.Core.GrpcEnvironment.GrpcNativeInit()
       at Grpc.Core.GrpcEnvironment..ctor()
       at Grpc.Core.GrpcEnvironment.AddRef()
       at Grpc.Core.Channel..ctor(String target, ChannelCredentials credentials, IEnumerable`1 options)
       at Pulumi.GrpcEngine..ctor(String engine)
       at Pulumi.Deployment..ctor()
       at Pulumi.Deployment.<>c__102`1.<RunAsync>b__102_0()
       at Pulumi.Deployment.CreateRunnerAndRunAsync(Func`1 deploymentFactory, Func`2 runAsync)
       at Program.<Main>$(String[] args) in /Users/tm/git/pronghorn/Programs/OperatingEnvironment/Program.cs:line 9
       at Program.<Main>(String[] args)
 
    error: an unhandled error occurred: Program exited with non-zero exit code: 134
t
This is unexpected… We have folks with M1s on the team and .NET projects definitely work for them. Could you please open an issue with a repro? https://github.com/pulumi/pulumi/issues/new?assignees=&amp;labels=kind%2Fbug%2Cneeds-triage&amp;template=bug.yaml
l
Will do. There's a very easy fix, but you may want to include this with your package.
Happy to contribute a PR
Actually, I was running older version of the package. This issue has already been addressed by your team. Updating my package to latest resolved this.
🎉 1