Skip to content

Make plot helper compatible with Python 3.13 #549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

brownbaerchen
Copy link
Contributor

Python distutils has been deprecated since version 3.10 and removed in version 3.12. In 3.12 I could still use it but after switching to 3.13, the plot helper was broken for me.
Apparently,distutil has been replaced by shutil. shutil.which returns what you get when you use which in the shell you run Python in, or None if there is no executable of the name you are looking for. Therefore, this should give the same functionality as distutil.spawn.find_executable as it is used in the plot helper.

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