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

Node ibm_db Installation Error with Python 3.12 #981

Closed
phaviland opened this issue Feb 1, 2024 · 2 comments
Closed

Node ibm_db Installation Error with Python 3.12 #981

phaviland opened this issue Feb 1, 2024 · 2 comments

Comments

@phaviland
Copy link

phaviland commented Feb 1, 2024

I am receiving then following error when attempting to install ibm_db on a machine with python 3.12.1. It appears 'distutils' is removed in Python 3.12 which node-gyp has a fix for.

npm ERR! Error: Command failed: node-gyp configure build  --IS_DOWNLOADED=true --IBM_DB_HOME="$IBM_DB_HOME"
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.1
npm ERR! gyp info using node@18.16.0 | darwin | x64
npm ERR! gyp info find Python using Python version 3.12.1 found at "/Library/Frameworks/Python.framework/Versions/3.12/bin/python3"
npm ERR! ModuleNotFoundError: No module named 'distutils'
@bimalkjha
Copy link
Member

@phaviland It is the issue with package node-gyp : nodejs/node-gyp#2869
Seems node-gyp@10.0.1 has fixed the issue. Your node-gyp version is 9.3.1. Run npm install node-gyp@latest and then npm install ibm_db. It should fix the issue. Thanks.

@phaviland
Copy link
Author

Thank you! This is resolved for me.

@bimalkjha bimalkjha changed the title Installation Error with Python 3.12 Node ibm_db Installation Error with Python 3.12 Feb 6, 2024
@ibmdb ibmdb locked as resolved and limited conversation to collaborators Feb 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants