-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
When exodus is installed on Python 3.12 or greater, it fails with the message:
Traceback (most recent call last):
File "/usr/local/bin/exodus", line 5, in <module>
from exodus_bundler.cli import main
File "/usr/local/lib/python3.13/site-packages/exodus_bundler/cli.py", line 7, in <module>
from exodus_bundler.bundling import create_bundle
File "/usr/local/lib/python3.13/site-packages/exodus_bundler/bundling.py", line 19, in <module>
from exodus_bundler.dependency_detection import detect_dependencies
File "/usr/local/lib/python3.13/site-packages/exodus_bundler/dependency_detection.py", line 6, in <mod
ule>
from exodus_bundler.launchers import find_executable
File "/usr/local/lib/python3.13/site-packages/exodus_bundler/launchers.py", line 7, in <module>
from distutils.spawn import find_executable as find_executable_original
ModuleNotFoundError: No module named 'distutils'
This is due to distutils being removed. Luckily, the migration guide points out that distutils.spawn.find_executable can be directly replaced with shutils.which, so it's a one-line fix.
Metadata
Metadata
Assignees
Labels
No labels