Azure / azure-cli

Azure Command-Line Interface
MIT License
3.97k stars 2.95k forks source link

add libicu dependecy - https://aka.ms/dotnet-missing-libicu #29928

Open cforce opened 1 day ago

cforce commented 1 day ago

Describe the bug

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.

Related command

az deployment group create

Errors

$ az deployment group create ERROR: 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. at System.Environment.FailFast(System.String) at System.Globalization.GlobalizationMode+Settings..cctor() at System.Globalization.GlobalizationMode+Settings.get_Invariant() at System.Globalization.GlobalizationMode.get_Invariant() at System.Globalization.CultureData.CreateCultureWithInvariantData() at System.Globalization.CultureData.get_Invariant() at System.Globalization.CultureInfo..cctor() at System.Globalization.CultureInfo.get_InvariantCulture() at System.Globalization.NumberFormatInfo.get_InvariantInfo() at System.Reflection.AssemblyNameParser.ParseVersion(System.String) at System.Reflection.AssemblyNameParser.Parse() at System.Reflection.AssemblyNameParser.Parse(System.String) at System.Reflection.AssemblyName..ctor(System.String) at System.Reflection.TypeNameParser.ResolveAssembly(System.String) at System.Reflection.TypeNameParser.GetType(System.String, System.ReadOnlySpan1<System.String>, System.String) at System.Reflection.TypeNameParser+NamespaceTypeName.ResolveType(System.Reflection.TypeNameParser ByRef, System.String) at System.Reflection.TypeNameParser.Parse() at System.Reflection.TypeNameParser.GetTypeReferencedByCustomAttribute(System.String, System.Reflection.RuntimeModule) at System.Reflection.CustomAttributeTypedArgument.ResolveType(System.Reflection.RuntimeModule, System.String) at System.Reflection.CustomAttributeTypedArgument..ctor(System.Reflection.RuntimeModule, System.Reflection.CustomAttributeEncodedArgument) at System.Reflection.RuntimeCustomAttributeData.get_ConstructorArguments() at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetDynamicallyAccessedMemberTypes(System.Type) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.ValidateTrimmingAnnotations(System.Type, System.Type[], System.Type, System.Type[]) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.Populate() at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory..ctor(System.Collections.Generic.ICollection1) at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(System.Collections.Generic.ICollection1<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>, Microsoft.Extensions.DependencyInjection.ServiceProviderOptions) at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection, Microsoft.Extensions.DependencyInjection.ServiceProviderOptions) at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection) at Microsoft.Extensions.Logging.LoggerFactory.Create(System.Action1) at Bicep.Cli.Program.CreateLoggerFactory(Bicep.Cli.IOContext) at Bicep.Cli.Program.ConfigureServices(Bicep.Cli.IOContext) at Bicep.Cli.Program..ctor(Bicep.Cli.IOContext, System.Action1<Microsoft.Extensions.DependencyInjection.IServiceCollection>) at Bicep.Cli.Program+<>c__DisplayClass3_0+<<Main>b__0>d.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Bicep.Cli.Program+<>c__DisplayClass3_0+<<Main>b__0>d, bicep, Version=0.30.0.0, Culture=neutral, PublicKeyToken=null]](<<Main>b__0>d ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Bicep.Cli.Program+<>cDisplayClass3_0+<

b0>d, bicep, Version=0.30.0.0, Culture=neutral, PublicKeyToken=null]](<
b0>d ByRef) at Bicep.Cli.Program+<>c__DisplayClass3_0.
b0(System.Threading.CancellationToken) at Bicep.Cli.Program+d6.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Bicep.Cli.Program+d6, bicep, Version=0.30.0.0, Culture=neutral, PublicKeyToken=null]](d6 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Bicep.Cli.Program+d6, bicep, Version=0.30.0.0, Culture=neutral, PublicKeyToken=null]](d6 ByRef) at Bicep.Cli.Program.RunWithCancellationAsync(System.Func2<System.Threading.CancellationToken,System.Threading.Tasks.Task1>) at Bicep.Cli.Program+
d3.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Bicep.Cli.Program+
d3, bicep, Version=0.30.0.0, Culture=neutral, PublicKeyToken=null]](
d3 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Bicep.Cli.Program+
d3, bicep, Version=0.30.0.0, Culture=neutral, PublicKeyToken=null]](
d3 ByRef) at Bicep.Cli.Program.Main(System.String[]) at Bicep.Cli.Program.
(System.String[]) Cleaning up project directory and file based variables 00:00 ERROR: Job failed: exit code 1

Issue script & Debug output

missing dep

Expected behavior

dep included

Environment Summary

azure-cli-2.64.0

Additional context

No response

yonzhan commented 1 day ago

Thank you for opening this issue, we will look into it.

github-actions[bot] commented 1 day ago

Here are some similar issues that might help you. Please check if they can solve your problem.

microsoft-github-policy-service[bot] commented 1 day ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/deployments-owners.

anthony-c-martin commented 21 hours ago

Related to #29828. I have a fix out for it: #29897