[FEATURE] Update python3.10.x to python3.12.x or later
Description
The new nova speech to speech model: nova sonic. Their python sdk need to update to python3.12.x . The detail link: https://github.com/awslabs/aws-sdk-python/issues/8
Severity
Critical
Additional Information
I try to update to 3.12.x. Create a new Dockerfile like below. But the images dev env can't task use , there are error mesage "root@6440c9ccb2fb:/app# task use USE_AGENT=agents/examples/default task: [use] ln -sf /app/agents/examples/default/manifest.json ./agents/ task: [use] ln -sf /app/agents/examples/default/property.json ./agents/ task: [build-agent] ./scripts/install_deps_and_build.sh linux x64 && mv bin/main bin/worker install dependencies... Get all installed packages... Filter compatible packages... Attempting to retrieve information about locked packages from manifest-lock.json... Collect all candidate packages... Resolving packages..."
Dockerfile ` FROM ghcr.io/ten-framework/ten_agent_build:0.5.0
ENV DEBIAN_FRONTEND=noninteractive ENV TZ=Asia/Shanghai
RUN apt-get update && apt-get install -y
wget
build-essential
libssl-dev
zlib1g-dev
libbz2-dev
libreadline-dev
libsqlite3-dev
libncursesw5-dev
xz-utils
tk-dev
libxml2-dev
libxmlsec1-dev
libffi-dev
liblzma-dev
tzdata
&& ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime
&& dpkg-reconfigure -f noninteractive tzdata
WORKDIR /tmp
RUN wget https://www.python.org/ftp/python/3.12.1/Python-3.12.1.tgz
&& tar xzf Python-3.12.1.tgz
&& cd Python-3.12.1
&& ./configure --enable-optimizations
&& make altinstall
RUN update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.12 1
&& update-alternatives --install /usr/bin/python python /usr/local/bin/python3.12 1
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3
RUN rm -rf /tmp/Python-3.12.1*
&& apt-get clean
&& rm -rf /var/lib/apt/lists/*
`
The stuck reason is that the memory lack.
Tasks: 7 total, 2 running, 5 sleeping, 0 stopped, 0 zombie %Cpu(s): 51.0 us, 3.5 sy, 0.0 ni, 44.3 id, 0.0 wa, 0.0 hi, 0.0 si, 1.2 st MiB Mem : 15779.7 total, 428.1 free, 10062.2 used, 5289.4 buff/cache MiB Swap: 0.0 total, 0.0 free, 0.0 used. 5340.2 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
573 root 20 0 2235092 918880 16980 R 98.3 5.7 8:56.63 tman
1 root 20 0 4628 2028 1484 S 0.0 0.0 0:00.01 bash
9 root 20 0 4628 3048 2440 S 0.0 0.0 0:00.02 bash
41 root 20 0 4628 3340 2700 S 0.0 0.0 0:00.05 bash
554 root 20 0 1241812 17804 12540 S 0.0 0.1 0:00.07 task
564 root 20 0 4496 3848 3316 S 0.0 0.0 0:00.00 bash
579 root 20 0 7300 3268 2736 R 0.0 0.0 0:00.00 top