aio app init: wskdebug: optional dependency `cpu-features` install error
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- javascript, node.js
- 領域
- build-system, cli
調査の方向性
aio app init の再現から始め、@openwhisk/wskdebug、dockerode、docker-modem、ssh2 を通じて依存関係ツリーを調査します。依存関係を更新することで cpu-features の Python 2 要件がなくなるかを調査します。macOS 12.3 Monterey 以降でこのインストールエラーが発生せずにアプリの初期化が完了すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Dependency Tree
$ npm ls cpu-features
└─┬ @openwhisk/[email protected]
└─┬ [email protected]
└─┬ [email protected]
└─┬ [email protected]
└── UNMET OPTIONAL DEPENDENCY [email protected]
Error
> [email protected] install /Users/shaz/Desktop/tmp/test-1/node_modules/cpu-features
> node buildcheck.js > buildcheck.gypi && node-gyp rebuild
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_arm_linux_or_android.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_mips_linux_or_android.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_linux_or_android.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o
LIBTOOL-STATIC Release/cpu_features.a
env: python: No such file or directory
make: *** [Release/cpu_features.a] Error 127
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/shaz/.nvm/versions/node/v14.19.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12)
gyp ERR! System Darwin 21.4.0
gyp ERR! command "/Users/shaz/.nvm/versions/node/v14.19.2/bin/node" "/Users/shaz/.nvm/versions/node/v14.19.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/shaz/Desktop/tmp/test-1/node_modules/cpu-features
gyp ERR! node -v v14.19.2
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
Repro Steps
- Install an app via
aio app init - Choose
Standalone Application - Uncheck
EventsandWeb Assets
Investigation
python v2 is no longer installed with macOS 12.3 Monterey and greater: https://developer.apple.com/documentation/macos-release-notes/macos-12_3-release-notes#Python
Workaround
To get rid of this error, users have to either:
- install python v2 manually: https://www.python.org/downloads/release/python-2713/
- symlink an existing python@3 (may cause issues): https://dev.to/malwarebo/how-to-set-python3-as-a-default-python-version-on-mac-4jjf
- Configure their python for node-gyp (after installing python@3): https://github.com/nodejs/node-gyp#configuring-python-dependency
Fix
This has to be fixed via wskdebug, perhaps there is an update in their dependencies that will not require python 2.
- 主要言語
- JavaScript
- スター
- 28
- フォーク
- 41
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 10
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
adobe/aio-cli-plugin-app のほかの issue
-
app:pack aborts when Node writes process warnings to api-mesh stderr対応中かも @raj-prince587 が 63 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
adobe/aio-cli-plugin-app#930 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
adobe/aio-cli-plugin-app#924 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
adobe/aio-cli-plugin-app#919 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
adobe/aio-cli-plugin-app#890 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
adobe/aio-cli-plugin-app#881 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
adobe/aio-cli-plugin-app の issue をすべて見る
似ている issue
-
[BUG] Multi-day events show "Ended" while still in progress対応中かも @tarunagnihotri534 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
data-umbrella/du-event-board#231 · コメント 2 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
NaturalIntelligence/fast-xml-parser#888 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
USACE/chart-docs#766 ·
-
bug callouts regression revealjs
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
quarto-dev/quarto-cli#15014 ·
メンテナーはふだん 1 日以内に返信