Error -
INIT_REPORT Init Duration: 10042.52 ms Phase: init Status: timeout
START RequestId: 60e08380-f0d0-416a-90aa-b1554103895f Version: $LATEST
[INFO] 2024-04-11T07:28:44.433Z 60e08380-f0d0-416a-90aa-b1554103895f Found credentials in environment variables.
**Creating temp file**
**Temp file created**
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 aka.ms/dotnet-missing-libicu for more information.
RequestId: 60e08380-f0d0-416a-90aa-b1554103895f Error: Runtime exited with error: signal: aborted
Runtime.ExitError
END RequestId: 60e08380-f0d0-416a-90aa-b1554103895f
REPORT RequestId: 60e08380-f0d0-416a-90aa-b1554103895f Duration: 1892.88 ms Billed Duration: 1893 ms Memory Size: 4096 MB Max Memory Used: 222 MB
The code is very straightforward:
- Code: Select all
from spire.xls import *
print("Creating temp file")
with tempfile.NamedTemporaryFile(suffix=".xlsx", delete=True) as temp_file:
temp_file.write(file_path)
# Get the file name
temp_file_name = temp_file.name
print("Temp file created")
workbook = Workbook()
It is very clear from the log error that it failed to create an instance of the Workbook class and threw the "Couldn't find a valid ICU package" error.
I am using Python image in the docker file and Windows to create and push the code