Skip to content

Fix run pre-script for python 3.13t installation process - #9391

Closed
atalman wants to merge 5 commits into
mainfrom
atalman-patch-16
Closed

Fix run pre-script for python 3.13t installation process#9391
atalman wants to merge 5 commits into
mainfrom
atalman-patch-16

Conversation

@atalman

@atalman atalman commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

Linux failure : https://github.com/pytorch/vision/actions/runs/22097230572/job/63857381286

Could not solve for environment specs
The following packages are incompatible
├─ libwebp =* * is installable with the potential options
│  ├─ libwebp [1.0.0|1.0.1] would require
│  │  └─ libtiff >=4.0.9,<4.7.0 * with the potential options
│  │     ├─ libtiff [4.0.10|4.0.9|4.1.0|4.5.0|4.5.1] would require
│  │     │  └─ xz >=5.2.4,<6.0a0 *, which can be installed;
│  │     ├─ libtiff 4.0.9 would require
│  │     │  └─ xz >=5.2.3,<6.0a0 *, which can be installed;
│  │     ├─ libtiff [4.1.0|4.2.0|4.4.0] would require
│  │     │  └─ xz >=5.2.5,<6.0a0 *, which can be installed;
│  │     ├─ libtiff 4.4.0 would require
│  │     │  └─ xz >=5.2.6,<6.0a0 *, which can be installed;
│  │     ├─ libtiff 4.5.0 would require
│  │     │  └─ xz >=5.2.8,<6.0a0 *, which can be installed;
│  │     └─ libtiff 4.5.1 would require
│  │        └─ xz >=5.2.10,<6.0a0 *, which can be installed;
│  ├─ libwebp [1.1.0|1.2.0|1.2.2|1.2.4|1.3.2] would require
│  │  └─ libtiff >=4.1.0,<4.7.0 *, which can be installed (as previously explained);
│  └─ libwebp [1.3.2|1.6.0] would require
│     └─ libtiff [>=4.7.0,<5.0a0 *|>=4.7.1,<5.0a0 *], which requires
│        └─ xz >=5.6.4,<6.0a0 *, which can be installed;
├─ pin on python 3.13.* =* * is installable and it requires
│  └─ python =3.13 *, which can be installed;
├─ python-freethreading =* * is installable with the potential options
│  ├─ python-freethreading 3.13.12 would require
│  │  └─ python_abi =* *_cp313t, which requires
│  │     └─ python =3.13 *_cp313t, which can be installed;
│  ├─ python-freethreading 3.14.0 would require
│  │  └─ python =3.14.0 *, which conflicts with any installable versions previously reported;
│  ├─ python-freethreading 3.14.1 would require
│  │  └─ python =3.14.1 *, which conflicts with any installable versions previously reported;
│  └─ python-freethreading 3.14.2 would require
│     └─ python =3.14.2 *, which conflicts with any installable versions previously reported;
└─ wheel =0.37 * is not installable because it requires
   └─ python [!=3.0,(!=3.1,(!=3.2,(!=3.3,!=3.4))) *|=* *] but there are no viable options
      ├─ python [2.7.13|2.7.14|...|3.9.7] conflicts with any installable versions previously reported;
      ├─ python 3.14.0 conflicts with any installable versions previously reported;
      ├─ python 3.14.1 conflicts with any installable versions previously reported;
      ├─ python 3.14.2 conflicts with any installable versions previously reported;
      └─ python 3.13.12 would require
         └─ liblzma >=5.8.2,<6.0a0 *, which requires
            └─ xz =5.8.2 *, which conflicts with any installable versions previously reported

MacOS failure: https://github.com/pytorch/vision/actions/runs/22097230534/job/63857777891

LibMambaUnsatisfiableError: Encountered problems while solving:
  - package python-3.13.12-h76e3b2d_0_cp313t requires liblzma >=5.8.2,<6.0a0, but none of the providers can be installed

Could not solve for environment specs
The following packages are incompatible
├─ libwebp =* * is installable with the potential options
│  ├─ libwebp [1.2.0|1.2.2|1.2.4|1.3.2] would require
│  │  └─ libtiff >=4.2.0,<4.7.0 * with the potential options
│  │     ├─ libtiff [4.2.0|4.4.0] would require
│  │     │  └─ xz >=5.2.5,<6.0a0 *, which can be installed;
│  │     ├─ libtiff 4.4.0 would require
│  │     │  └─ xz >=5.2.6,<6.0a0 *, which can be installed;
│  │     ├─ libtiff 4.5.0 would require
│  │     │  └─ xz >=5.2.8,<6.0a0 *, which can be installed;
│  │     ├─ libtiff [4.5.0|4.5.1] would require
│  │     │  └─ xz >=5.2.4,<6.0a0 *, which can be installed;
│  │     └─ libtiff 4.5.1 would require
│  │        └─ xz >=5.2.10,<6.0a0 *, which can be installed;
│  └─ libwebp [1.3.2|1.6.0] would require
│     └─ libtiff [>=4.7.0,<5.0a0 *|>=4.7.1,<5.0a0 *], which requires
│        └─ xz >=5.6.4,<6.0a0 *, which can be installed;
├─ pin on python =3.13 * is installable and it requires
│  └─ python =3.13 *, which can be installed;
├─ python-freethreading =* * is installable with the potential options
│  ├─ python-freethreading 3.13.12 would require
│  │  └─ python_abi =* *_cp313t, which requires
│  │     └─ python =3.13 *_cp313t, which can be installed;
│  ├─ python-freethreading 3.14.0 would require
│  │  └─ python =3.14.0 *, which conflicts with any installable versions previously reported;
│  ├─ python-freethreading 3.14.1 would require
│  │  └─ python =3.14.1 *, which conflicts with any installable versions previously reported;
│  └─ python-freethreading 3.14.2 would require
│     └─ python =3.14.2 *, which conflicts with any installable versions previously reported;
└─ wheel =0.37 * is not installable because it requires
   └─ python [!=3.0,(!=3.1,(!=3.2,(!=3.3,!=3.4))) *|=* *] but there are no viable options
      ├─ python [3.10.0|3.10.10|...|3.9.7] conflicts with any installable versions previously reported;
      ├─ python 3.14.0 conflicts with any installable versions previously reported;
      ├─ python 3.14.1 conflicts with any installable versions previously reported;
      ├─ python 3.14.2 conflicts with any installable versions previously reported;
      └─ python 3.13.12 would require
         └─ liblzma >=5.8.2,<6.0a0 *, which requires
            └─ xz =5.8.2 *, which conflicts with any installable versions previously reported.


...
PackagesNotFoundError: The following packages are missing from the target environment:
  - libjpeg-turbo
  - libjpeg


Failure started to happen after merging pytorch/test-infra#7753 - conda version was unpinned

Related PR for 3.13t we use environment created with conda-forge: pytorch/test-infra#7769
And looks like with conda version 25.3.0 has issues resolving the install for libwebp and libpng I believe this is related to the fact that 3.13t builds use conda-forge environment

@pytorch-bot

pytorch-bot Bot commented Feb 17, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9391

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit 206498a with merge base 0f6d91d (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Comment thread packaging/pre_build_script.sh Outdated
Comment thread packaging/pre_build_script.sh Outdated
@atalman atalman changed the title Fix libwebp python 3.13t installation process Fix run pre-script for python 3.13t installation process Feb 18, 2026

@NicolasHug NicolasHug left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @atalman . Is this safe? We have avoided mixing up conda channels due to frequent incompatibilities issues.

@atalman

atalman commented Feb 18, 2026

Copy link
Copy Markdown
Contributor Author

HI @NicolasHug conda without conda-forge does not support 3.13t : https://anaconda.org/channels/main/packages/python-freethreading/overview -> there is no version for 3.13t

we already do use conda-forge when creating environment here:
https://github.com/pytorch/test-infra/blob/main/.github/actions/setup-binary-builds/action.yml#L143

atalman added a commit to pytorch/test-infra that referenced this pull request Feb 18, 2026
atalman added a commit to atalman/test-infra that referenced this pull request Feb 18, 2026
atalman added a commit to pytorch/test-infra that referenced this pull request Feb 18, 2026
…on for py 3.14 (#7769) (#7772)

Package is relatively new, since Oct 25 available for 3.14 only
https://anaconda.org/channels/main/packages/python-freethreading/overview

For vision 3.13t failures see:
pytorch/vision#9391
@atalman

atalman commented Feb 18, 2026

Copy link
Copy Markdown
Contributor Author

not required anymore

@atalman atalman closed this Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants