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

Install incompatible with latest Python versions - ModuleNotFoundError: No module named 'distutils' #48

Open
jamesbrayton opened this issue Dec 19, 2023 · 2 comments

Comments

@jamesbrayton
Copy link

When attempting a fresh install of symbolic AI using latest Python 3.12, an exception happens during the pip installation stating:
ModuleNotFoundError: No module named 'distutils'

As far as I am aware, distutils started being phased out in 3.10 and has been completely removed by 3.12. A few solutions of similar problems suggest trying to install setup-tools but that did not work in my case, and beyond that, the general consensus is for developers to update their solutions to not rely on distutils.

@jamesbrayton
Copy link
Author

Fought with this a bit more this morning - I think this is actual and issue with setuptools and not symbolicai. If someone else is able to replicate and/or confirm I'm happy to close or withdraw this issue.

@Xpitfire
Copy link
Collaborator

Hi there,
thank you for reaching out and also great that you gave it another try.
I looked at reproducing the issue today and actually encountered another issue with Python 3.12 and PyTorch on a MacOS (Apple Silicon) machine, since it does not find a compatible torch>=2.0.0 version. However, I could not reproduce the distutils issue so far. Tested it on several versions of Python, including MacOS Sonoma, several linux distributions, including the current docker image build with Ubuntu Linux 20.04.6 LTS, Python 3.10.11 and PyTorch 2.0.1 and Windows 11 versions.
What machine are you operating on?

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

No branches or pull requests

2 participants