-
Notifications
You must be signed in to change notification settings - Fork 124
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
Document: Node LTS (v20) and python 3.12 does not work on MarkBind install #2496
Comments
I also run into the same issue this morning; The cause is that "distutils package is removed in python version 3.12" |
I've also faced this issue before and this helped: https://stackoverflow.com/questions/77251296/distutils-not-found-when-running-npm-install , if many people also encounter the same issue as me maybe it'll be good to add a note in the devdocs regarding this |
Thank you for the valuable input! Additional note: For system with python3 installed via brew, running |
As this is now linked in our documentation, lets leave this open until we can remove the warning from our documentation. |
Please confirm that you have searched existing issues in the repo
Yes, I have searched the existing issues
Any related issues?
No response
Tell us about your environment
M2 Mac v13.6.6
MarkBind version
5.4.0
Describe the bug and the steps to reproduce it
When running
npm install
in the root of markbind, see the following error:This error is caused because 3.12 python deprecates distutils, and node-gyp packaged with LTS is a node-gyp version before version 10. As stated in this issue, python 3.12 needs the newer version of node-gyp. It seems non trivial to update node-gyp version, as the official instructions here did not work for me (needs more testing).
However, one workaround that worked for me was adding the following line to node config
python=path/to/python/on/my/device
and downgrading my python version (brew uninstall python@3.12
- though i had to force uninstall it due to dependencies)(I also had to delete and reclone my MarkBind, but I suspect that was unrelated)
Expected behavior
If the versions are not supported, we should maybe warn users of the problem since right now we just say the following about required version...
Anything else?
Thank you @lhw-1 and @EltonGohJH for your extensive help troubleshooting this issue!
The text was updated successfully, but these errors were encountered: