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

Unable to install in the Python 3.12 #628

Open
edisonyan opened this issue Feb 1, 2024 · 1 comment
Open

Unable to install in the Python 3.12 #628

edisonyan opened this issue Feb 1, 2024 · 1 comment

Comments

@edisonyan
Copy link

edisonyan commented Feb 1, 2024

node_modules/.pnpm/[email protected]/node_modules/tree-sitter: Running install script...
node_modules/.pnpm/@curlconverter[email protected]/node_modules/@curlconverter/tree-sitter-bash: Running install script, failed in 13.6s
.../@curlconverter/tree-sitter-bash install$ prebuild-install || node-gyp rebuild
│ prebuild-install warn install Request timed out
│ C:\dev\zt-autotestweb\node_modules.pnpm@[email protected]\node_modules@curlconverter\tree-sitter-bash>if not defined npm_config_node_gyp (node "C:\Users\Administrator\AppData\Roami…
│ gyp info it worked if it ends with ok
│ gyp info using [email protected]
│ gyp info using [email protected] | win32 | x64
│ gyp info find Python using Python version 3.12.0 found at "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\python.exe"
│ gyp info find VS using VS2022 (17.3.32929.385) found at:
│ gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
│ gyp info find VS run with --verbose for detailed information
│ gyp info spawn C:\Users\Administrator\AppData\Local\Programs\Python\Python312\python.exe
│ gyp info spawn args [
│ gyp info spawn args 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\gyp\gyp_main.py',
│ gyp info spawn args 'binding.gyp',
│ gyp info spawn args '-f',
│ gyp info spawn args 'msvs',
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\dev\zt-autotestweb\node_modules\.pnpm\@curlconverter[email protected]\node_modules\@curlconverter\tree-sitter-bash\build\config.gypi',
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\addon.gypi',
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\Users\Administrator\AppData\Local\node-gyp\Cache\20.9.0\include\node\common.gypi',
│ gyp info spawn args '-Dlibrary=shared_library',
│ gyp info spawn args '-Dvisibility=default',
│ gyp info spawn args '-Dnode_root_dir=C:\Users\Administrator\AppData\Local\node-gyp\Cache\20.9.0',
│ gyp info spawn args '-Dnode_gyp_dir=C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp',
│ gyp info spawn args '-Dnode_lib_file=C:\\Users\\Administrator\\AppData\\Local\\node-gyp\\Cache\\20.9.0\\<(target_arch)\\node.lib',
│ gyp info spawn args '-Dmodule_root_dir=C:\dev\zt-autotestweb\node_modules\.pnpm\@curlconverter[email protected]\node_modules\@curlconverter\tree-sitter-bash',
│ gyp info spawn args '-Dnode_engine=v8',
│ gyp info spawn args '--depth=.',
│ gyp info spawn args '--no-parallel',
│ gyp info spawn args '--generator-output',
│ gyp info spawn args 'C:\dev\zt-autotestweb\node_modules\.pnpm\@curlconverter[email protected]\node_modules\@curlconverter\tree-sitter-bash\build',
│ gyp info spawn args '-Goutput_dir=.'
│ gyp info spawn args ]
│ Traceback (most recent call last):
│ File "C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\gyp\gyp_main.py", line 42, in
│ import gyp # noqa: E402
│ ^^^^^^^^^^
│ File "C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\gyp\pylib\gyp_init_.py", line 9, in
│ import gyp.input
│ File "C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 19, in
│ from distutils.version import StrictVersion
│ ModuleNotFoundError: No module named 'distutils'
│ gyp ERR! configure error
│ gyp ERR! stack Error: gyp failed with exit code: 1
│ gyp ERR! stack at ChildProcess.onCpExit (C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\lib\configure.js:325:16)
node_modules/.pnpm/[email protected]/node_modules/tree-sitter: Running install script, failed in 13.6s

distutils is removed in Python 3.12
nodejs/node-gyp#2869

@edisonyan edisonyan changed the title Unable to install in the Python 3.12 environment Unable to install in the Python 3.12 Feb 1, 2024
@verhovsky
Copy link
Member

verhovsky commented Feb 1, 2024

You'll have to downgrade Python until prebuild/prebuild#313 is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants