awslabs / aws-lambda-powershell-runtime

This new PowerShell custom runtime for AWS Lambda makes it even easier to run Lambda functions written in PowerShell to process events.
Apache License 2.0
57 stars 17 forks source link

Missing ICU package #33

Closed juancrl closed 3 weeks ago

juancrl commented 3 weeks ago

I've rebuilt the powershell-runtime to allow Amazon Linux 2023... But now I'm getting "Process terminated. Couldn't find a valid ICU package installed on the system. Please install libicu (or icu-libs) using your package manager and try again. Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. Please see https://aka.ms/dotnet-missing-libicu for more information." when starting my Lambda function. I can imagine this package is missing ?

austoonz commented 3 weeks ago

In your Lambda Function, try setting the environment variable DOTNET_SYSTEM_GLOBALIZATION_INVARIANT to 1.

juancrl commented 3 weeks ago

Thanks Andrew !!! Working 105% perfectly !! (And now I realize the env var is documented in the given link :-( ... Well, the power of reading :-) )

julianwood commented 3 weeks ago

Glad its working.