Invalid syntax error installing node-gyp 11.4.2 on python 3.6.8
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- node.js, python
- 领域
- build-system
调研方向
从第 211 行的 gyp/pylib/gyp/init.py 和 gyp/gyp_main.py 开始,使用报告中的 node-gyp 11.4.2 安装和 Python 3.6.8 环境。重现该失败,并检查项目支持的 Python 版本和兼容性测试。完成的标准是:支持版本的行为已明确,并且 Python 3.6.8 要么得到处理,要么通过适当的覆盖或文档被明确拒绝。
由索引模型根据 Issue 内容生成。
描述
Please see log output below (repo path replaced with '...') . Is this using invalid syntax for Python 3.6.8? Note I am not able to control what version of Python is running in the build environment.
npm error gyp info using node-gyp@11.4.2
npm error gyp info using node@20.19.5 | linux | x64
npm error gyp info find Python using Python version 3.6.8 found at "/bin/python3"
npm error gyp http GET https://nodejs.org/download/release/v20.19.5/node-v20.19.5-headers.tar.gz
npm error gyp http 200 https://nodejs.org/download/release/v20.19.5/node-v20.19.5-headers.tar.gz
npm error gyp http GET https://nodejs.org/download/release/v20.19.5/SHASUMS256.txt
npm error gyp http 200 https://nodejs.org/download/release/v20.19.5/SHASUMS256.txt
npm error gyp info spawn /bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/actions-runner/_work/.../node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/actions-runner/_work/.../node_modules/re2/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/actions-runner/_work/.../node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/root/.cache/node-gyp/20.19.5/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/20.19.5',
npm error gyp info spawn args '-Dnode_gyp_dir=/actions-runner/_work/.../node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/20.19.5/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/actions-runner/_work/.../node_modules/re2',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error Traceback (most recent call last):
npm error File "/actions-runner/_work/.../node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module>
npm error import gyp # noqa: E402
npm error File "/actions-runner/_work/.../node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 211
npm error if flags := os.environ.get(env_name) or []:
npm error ^
npm error SyntaxError: invalid syntax
npm error gyp ERR! configure error
npm error gyp ERR! stack Error: `gyp` failed with exit code: 1
npm error gyp ERR! stack at ChildProcess.<anonymous> (/actions-runner/_work/.../node_modules/node-gyp/lib/configure.js:317:18)
npm error gyp ERR! stack at ChildProcess.emit (node:events:524:28)
npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm error gyp ERR! System Linux 4.18.0-553.75.1.el8_10.x86_64
- 主要语言
- Python
- 星标
- 10.7k
- 派生
- 1.9k
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 5
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nodejs/node-gyp 的其他 Issue
-
dependencies github_actions
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 4/5 3-5 天 新手友好度 48/100
-
难度 4/5 3-5 天 新手友好度 48/100
-
MSYS2
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 48/100
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
stephrobert/dsoxlab#238 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
sublimehq/package_control#1780 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 70/100
nwg-piotr/nwg-displays#145 ·