Bug Report: Latest python image tag 3.12.9 breaks CircleCI pipeline for poetry installs: "error while loading shared libraries: libpython3.12"
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- docker, python
- Lĩnh vực
- devops, infrastructure
Hướng nghiên cứu
Start with the config.yml example and compare the 3.12.9 and 3.12.8 image behavior during the poetry install step. Review the linked PR #262 and reproduce the libpython3.12.so.1.0 loader error. Done means the 3.12.9 image installs packages successfully and the provided pytest command can run.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Note: We also welcome PRs to fix bugs! This helps us take action faster where a bug has been identified!
For our official CircleCI Docker Convenience Image support policy, please see CircleCI docs.
This policy outlines the release, update, and deprecation policy for CircleCI Docker Convenience Images.
Describe the bug
When using the latest python image 3.12.9 the poetry install fails with error:
/home/circleci/.local/share/pypoetry/venv/bin/python: error while loading shared libraries: libpython3.12.so.1.0: cannot open shared object file: No such file or directory
Exited with code exit status 127
.
I believe this is due to the PR merged on Friday 7th February as our builds have been failing since then:
https://github.com/CircleCI-Public/cimg-python/pull/262
To Reproduce
In config.yml I have a job like so (job name and directory names removed for security):
<job-name>:
executor:
name: python/default
tag: "3.12"
working_directory: ~/repo
steps:
- checkout
- restore_cache:
key: deps-{{ checksum "./.pre-commit-config.yaml" }}-py3108
- run:
name: Install dependencies
command: pip install pre-commit
- run:
name: Run static checks
command: pre-commit run --all
- save_cache:
key: deps-{{ checksum "./.pre-commit-config.yaml" }}-py3108
paths:
- /home/circleci/.local # For pre-commit executable
- /home/circleci/.cache # For pre-commit cache (installed hooks)
- python/install-packages:
app-dir: <dir>
pkg-manager: poetry
- run:
name: Run Tests
working_directory: <dir>
command: poetry run pytest tests
Note that I am using the python3 orb:
orbs:
python: circleci/[email protected]
I believe this pulls down the latest python 3.12.* image as our builds started failing since the latest release.
Expected behavior
Package install succeeds
Workarounds
Pinning the tag to the penultimate image version (3.12.8) fixes the issue:
executor:
name: python/default
tag: "3.12.8"
Screenshots and Build Links
If possible, add screenshots and links to jobs to help explain your problem.
Additional context
Add any other context about the problem here.
- Ngôn ngữ chính
- Dockerfile
- Star
- 34
- Fork
- 33
- Merge trung bình
- 4 giờ 29 phút
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CircleCI-Public/cimg-python
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
CircleCI-Public/cimg-python#304 ·
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
CircleCI-Public/cimg-python#303 ·
-
Bug Report: Re-support 3.13.0Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
CircleCI-Public/cimg-python#260 ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
CircleCI-Public/cimg-python#258 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
CircleCI-Public/cimg-python#250 · 5 bình luận ·
Tất cả issue của CircleCI-Public/cimg-python
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
transitmatters/shutdown-tracker#155 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area:plugins kind:bug priority:p2 ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
JWhite212/SignalLadder#214 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: NetworkPolicyOperator removes finalizers added by the EKS network policy controller, which adds them backCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởbug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
strimzi/strimzi-kafka-operator#13360 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100