Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Invalid syntax error installing node-gyp 11.4.2 on python 3.6.8

オープン
#3,218 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
node.js, python
領域
build-system

調査の方向性

報告された node-gyp 11.4.2 のインストールと Python 3.6.8 環境を使用して、まず gyp/pylib/gyp/init.py の 211 行目と gyp/gyp_main.py を確認します。失敗を再現し、プロジェクトがサポートする Python のバージョンと互換性テストを確認します。完了とは、サポート対象バージョンでの動作が明確になり、Python 3.6.8 が適切なカバレッジまたはドキュメントによって処理されるか、明示的に拒否されている状態です。

索引モデルが issue の本文から書いたものです。

説明

Python

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時間
マージ済み PR(30日)
5

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nodejs/node-gyp のほかの issue

nodejs/node-gyp の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。