Skip to content

Upgrade to Python 3.12 (#2421)#2422

Merged
akenmorris merged 38 commits intomasterfrom
py3.12
Oct 23, 2025
Merged

Upgrade to Python 3.12 (#2421)#2422
akenmorris merged 38 commits intomasterfrom
py3.12

Conversation

@akenmorris
Copy link
Contributor

@akenmorris akenmorris commented Sep 17, 2025

Upgrade dependencies, most notably Python 3.12, pytorch 2.8.0 as well as others.

The linux build docker container is upgraded from ubuntu focal (20.04) to jammy (22.04)

This PR also enabled GitHub Actions dependency caching.

/usr/bin/ld: /opt/conda/envs/shapeworks/lib/libspdlog.so.1.15.3: undefined reference to `std::condition_variable::wait(std::unique_lock<std::mutex>&)@GLIBCXX_3.4.30'
ERROR: Could not find a version that satisfies the requirement itk-elastix==0.23.0 (from versions: 0.19.2, 0.20.0, 0.21.0)
ERROR: No matching distribution found for itk-elastix==0.23.0
2025-09-21T07:31:06.0673422Z python.exe found in: C:\Miniconda\envs\shapeworks
2025-09-21T07:31:06.0673897Z [2025-09-21 07:30:08.678] [info] Running Python File: python_embedded.py
2025-09-21T07:31:06.0674467Z unknown file: error: C++ exception with description "ImportError: Error importing numpy: you should not try to import numpy from
2025-09-21T07:31:06.0675041Z         its source directory; please exit the numpy source tree, and relaunch
2025-09-21T07:31:06.0675371Z         your python interpreter from there.
It works fine on native windows.  There is something about Numpy >
2.0, embedded Python and GitHub Actions that is just becoming too time
consuming to track down.

I get this:

2025-09-22T23:30:50.0657400Z numpy.core.multiarray FAILED: ImportError: Error importing numpy: you should not try to import numpy from
2025-09-22T23:30:50.0658287Z         its source directory; please exit the numpy source tree, and relaunch
2025-09-22T23:30:50.0658897Z         your python interpreter from there.

We are of course not in the numpy source dir, it's unable to load the DLL for multiarray for some reason.
@akenmorris akenmorris merged commit 0832e64 into master Oct 23, 2025
5 checks passed
@akenmorris akenmorris deleted the py3.12 branch October 23, 2025 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant