-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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-gyp configure fails #1943
Comments
Fixed in #1937. Your review of that PR would help. |
Now failed with new Error cc @cclauss gyp info it worked if it ends with ok
gyp info using node-gyp@6.0.0
gyp info using node@13.0.1 | linux | x64
gyp info find Python using Python version 3.6.8 found at "/usr/bin/python3"
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/usr/local/share/.config/yarn/global/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'cmake',
gyp info spawn args '-I',
gyp info spawn args '/mnt/d/Developer/node-addon-examples/2_function_arguments/nan/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/share/.config/yarn/global/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/daniel/.cache/node-gyp/13.0.1/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/daniel/.cache/node-gyp/13.0.1',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/share/.config/yarn/global/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/daniel/.cache/node-gyp/13.0.1/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/mnt/d/Developer/node-addon-examples/2_function_arguments/nan',
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 'build',
gyp info spawn args '-Goutput_dir=.'
File "/usr/local/share/.config/yarn/global/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py", line 1149, in GenerateOutputForConfig
namer = CMakeNamer(target_list)
File "/usr/local/share/.config/yarn/global/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py", line 598, in __init__
cmake_target_base_name = CreateCMakeTargetBaseName(qualified_target)
File "/usr/local/share/.config/yarn/global/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py", line 560, in CreateCMakeTargetBaseName
return StringToCMakeTargetName(cmake_target_base_name)
File "/usr/local/share/.config/yarn/global/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py", line 242, in StringToCMakeTargetName
return a.translate(string.maketrans(' /():."', '_______'))
AttributeError: module 'string' has no attribute 'maketrans' |
This was referenced Oct 27, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduce:
https://github.com/nodejs/node-addon-examples/tree/master/2_function_arguments/nan
Looks like has something to do with Python3, cc @cclauss
Env
Verbose output (from npm or node-gyp):
The text was updated successfully, but these errors were encountered: