Skip to content
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

Python 3.12 Compatibility #117

Closed
santaimpersonator opened this issue Dec 13, 2023 · 1 comment
Closed

Python 3.12 Compatibility #117

santaimpersonator opened this issue Dec 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@santaimpersonator
Copy link

Unfortunately, the newly released Python 3.12 removed distutils after it being deprecated since since Python 3.10.

With Python 3.12, the use of distutils in merger.py creates an error:

File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/mkdocs_monorepo_plugin/merger.py", line 16, in <module>
   from distutils.dir_util import copy_tree
ModuleNotFoundError: No module named 'distutils'

We found that including the setuptools module, which now includes distutils to be a simple workaround for the issue.

@bih
Copy link
Collaborator

bih commented Jan 4, 2024

This is fixed in #120. Closing.

@bih bih closed this as completed Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants