TEN-framework / TEN-framework/ten-framework
[FEATURE] Update python3.10.x to python3.12.x or later
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 11.1k
- Forks
- 1.4k
- Avg merge
- 2d 15m
- Merged PRs (30d)
- 22
Description
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/*
`
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the repository's Python version and build-image configuration, then inspect scripts/install_deps_and_build.sh, manifest-lock.json, and the task use/build-agent path mentioned in the report. Use the supplied Dockerfile experiment as context. Done means the project supports Python 3.12 or later and the reported dependency resolution and agent build complete successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- build-system, devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100