AcalaNetwork / bodhi.js

Apache License 2.0
31 stars 21 forks source link

rush update fails. #598

Closed mcf-rocks closed 1 year ago

mcf-rocks commented 1 year ago

rush update fails.

git clone https://github.com/AcalaNetwork/bodhi.js.git
Cloning into 'bodhi.js'...
remote: Enumerating objects: 7697, done.
remote: Counting objects: 100% (547/547), done.
remote: Compressing objects: 100% (284/284), done.
remote: Total 7697 (delta 323), reused 378 (delta 228), pack-reused 7150
Receiving objects: 100% (7697/7697), 8.25 MiB | 10.04 MiB/s, done.
Resolving deltas: 100% (5360/5360), done.
acala@midget:~$ cd bodhi.js
$ git submodule update --init --recursive
Submodule 'hardhat' (https://github.com/AcalaNetwork/hardhat-tutorials.git) registered for path 'examples/hardhat-tutorials'
Submodule 'truffle' (https://github.com/AcalaNetwork/truffle-tutorials.git) registered for path 'examples/truffle-tutorials'
Submodule 'waffle' (https://github.com/AcalaNetwork/waffle-tutorials.git) registered for path 'examples/waffle-tutorials'
Cloning into '/mnt/fast1/ACALA_DATA/acala/bodhi.js/examples/hardhat-tutorials'...
Cloning into '/mnt/fast1/ACALA_DATA/acala/bodhi.js/examples/truffle-tutorials'...
Cloning into '/mnt/fast1/ACALA_DATA/acala/bodhi.js/examples/waffle-tutorials'...
Submodule path 'examples/hardhat-tutorials': checked out '1134572542a23f1924791b280223c13a160184af'
Submodule path 'examples/truffle-tutorials': checked out '5cebadb86aa7334d620957feadeea790e4fbb0f7'
Submodule path 'examples/waffle-tutorials': checked out '4abbb19a48131e5c8b2a409b6aae80c9a7cfc07f'
acala@midget:~/bodhi.js$ rush update

Rush Multi-Project Build Tool 5.55.0 - https://rushjs.io
Node.js version is 16.15.0 (LTS)

Starting "rush update"

Found files in the "common/git-hooks" folder.
Successfully installed these Git hook scripts: pre-commit

Trying to acquire lock for pnpm-6.7.1
Acquired lock for pnpm-6.7.1
Found pnpm version 6.7.1 in /home/acala/.rush/node-v16.15.0/pnpm-6.7.1

Symlinking "/mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp/pnpm-local"
  --> "/home/acala/.rush/node-v16.15.0/pnpm-6.7.1"

Using the default variant for installation.
Transforming /mnt/fast1/ACALA_DATA/acala/bodhi.js/common/config/rush/.npmrc
  --> "/mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp/.npmrc"

Updating workspace files in /mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp
Copying "/mnt/fast1/ACALA_DATA/acala/bodhi.js/common/config/rush/pnpm-lock.yaml"
  --> "/mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp/pnpm-lock.yaml"
Copying "/mnt/fast1/ACALA_DATA/acala/bodhi.js/common/config/rush/pnpm-lock.yaml"
  --> "/mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp/pnpm-lock-preinstall.yaml"

Checking installation in "/mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp"

Running "pnpm install" in /mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp

Scope: all 41 workspace projects
Using hooks from: /mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp/.pnpmfile.cjs
readPackage hook is declared. Manifests of dependencies might get overridden
Downloading registry.npmjs.org/typescript/4.6.3: 11.4 MB/11.4 MB, done
Downloading registry.npmjs.org/typescript/4.5.5: 11.3 MB/11.3 MB, done
Downloading registry.npmjs.org/solc/0.6.12: 6.63 MB/6.63 MB, done
Downloading registry.npmjs.org/solc/0.7.3: 6.86 MB/6.86 MB, done
Downloading registry.npmjs.org/truffle/5.4.26: 11 MB/11 MB, done
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: /mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp/pnpm-store/v3
  Virtual store is at:             node_modules/.pnpm
../../examples/hardhat-tutorials/DEX     |  WARN  @acala-network/eth-providers: graphql-request@3.6.1 requires a peer of graphql@14.x || 15.x but version 16.0.1 was installed.
../../examples/hardhat-tutorials/DEX     |  WARN  ethereum-waffle > @ethereum-waffle/compiler > typechain: ts-essentials@6.0.7 requires a peer of typescript@>=3.7.0 but none was installed.
../../examples/hardhat-tutorials/EVM     |  WARN  @acala-network/eth-providers: graphql-request@3.6.1 requires a peer of graphql@14.x || 15.x but version 16.0.1 was installed.
../../examples/hardhat-tutorials/EVM     |  WARN  ethereum-waffle > @ethereum-waffle/compiler > typechain: ts-essentials@6.0.7 requires a peer of typescript@>=3.7.0 but none was installed.
../../examples/hardhat-tutorials/NFT     |  WARN  @acala-network/eth-providers: graphql-request@3.6.1 requires a peer of graphql@14.x || 15.x but version 16.0.1 was installed.
 WARN  132 other warnings
.                                        |    +2227 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 2230, reused 0, downloaded 2230, added 2227, done
node_modules/.pnpm/@apollo+protobufjs@1.2.2/node_modules/@apollo/protobufjs: Running postinstall script, done in 69ms
node_modules/.pnpm/core-js-pure@3.20.1/node_modules/core-js-pure: Running postinstall script, done in 103ms
node_modules/.pnpm/core-js@2.6.12/node_modules/core-js: Running postinstall script, done in 121ms
node_modules/.pnpm/@datadog+native-appsec@1.1.1/node_modules/@datadog/native-appsec: Running install script, done in 219ms
node_modules/.pnpm/esbuild@0.14.51/node_modules/esbuild: Running postinstall script, done in 85ms
node_modules/.pnpm/iso-constants@0.1.2/node_modules/iso-constants: Running install script, done in 132ms
node_modules/.pnpm/@datadog+native-metrics@1.2.0/node_modules/@datadog/native-metrics: Running install script, done in 175ms
node_modules/.pnpm/bufferutil@4.0.5/node_modules/bufferutil: Running install script, done in 174ms
node_modules/.pnpm/keccak@3.0.2/node_modules/keccak: Running install script, done in 159ms
node_modules/.pnpm/leveldown@5.0.2/node_modules/leveldown: Running install script, done in 128ms
node_modules/.pnpm/nodemon@2.0.15/node_modules/nodemon: Running postinstall script, done in 126ms
node_modules/.pnpm/postinstall-postinstall@2.1.0/node_modules/postinstall-postinstall: Running postinstall script, done in 77ms
node_modules/.pnpm/protobufjs@6.11.2/node_modules/protobufjs: Running postinstall script, done in 144ms
node_modules/.pnpm/ursa-optional@0.10.2/node_modules/ursa-optional: Running install script...
node_modules/.pnpm/tiny-secp256k1@1.1.6/node_modules/tiny-secp256k1: Running install script...
node_modules/.pnpm/sqlite3@4.2.0/node_modules/sqlite3: Running install script, failed in 1s
.../sqlite3@4.2.0/node_modules/sqlite3 install$ node-pre-gyp install --fallback-to-build
│ node-pre-gyp info it worked if it ends with ok
│ node-pre-gyp info using node-pre-gyp@0.11.0
│ node-pre-gyp info using node@16.15.0 | linux | x64
│ node-pre-gyp WARN Using request for node-pre-gyp https download 
│ node-pre-gyp info check checked for "/mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp/node_modules/.pnpm/sqlite3@4.2.0/node_modules/sqlite3/lib/bi
│ node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz
│ node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz
│ node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz 
│ node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.2.0 and node@16.15.0 (node-v93 ABI, glibc) (falling back to source compile with node-
│ node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz 
│ gyp info it worked if it ends with ok
│ gyp info using node-gyp@8.1.0
│ gyp info using node@16.15.0 | linux | x64
│ gyp info ok 
│ gyp info it worked if it ends with ok
│ gyp info using node-gyp@8.1.0
│ gyp info using node@16.15.0 | linux | x64
│ gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
│ (node:1878797) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
│ (Use `node --trace-deprecation ...` to show where the warning was created)
│ gyp info spawn /usr/bin/python3
│ gyp info spawn args [
│ gyp info spawn args   '/mnt/fast1/ACALA_DATA/acala/.rush/node-v16.15.0/pnpm-6.7.1/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   'make',
│ gyp info spawn args   '-I',
│ gyp info spawn args   '/mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp/node_modules/.pnpm/sqlite3@4.2.0/node_modules/sqlite3/build/config.gypi',
│ gyp info spawn args   '-I',
│ gyp info spawn args   '/mnt/fast1/ACALA_DATA/acala/.rush/node-v16.15.0/pnpm-6.7.1/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi',
│ gyp info spawn args   '-I',
│ gyp info spawn args   '/home/acala/.cache/node-gyp/16.15.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=/home/acala/.cache/node-gyp/16.15.0',
│ gyp info spawn args   '-Dnode_gyp_dir=/mnt/fast1/ACALA_DATA/acala/.rush/node-v16.15.0/pnpm-6.7.1/node_modules/pnpm/dist/node_modules/node-gyp',
│ gyp info spawn args   '-Dnode_lib_file=/home/acala/.cache/node-gyp/16.15.0/<(target_arch)/node.lib',
│ gyp info spawn args   '-Dmodule_root_dir=/mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp/node_modules/.pnpm/sqlite3@4.2.0/node_modules/sqlite3',
│ 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=.'
│ gyp info spawn args ]
│ gyp info ok 
│ gyp info it worked if it ends with ok
│ gyp info using node-gyp@8.1.0
│ gyp info using node@16.15.0 | linux | x64
│ gyp info spawn make
│ gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
│ make: Entering directory '/mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp/node_modules/.pnpm/sqlite3@4.2.0/node_modules/sqlite3/build'
│   ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3310100/sqlite3.c
│ /bin/sh: 1: python: not found
│ make: *** [deps/action_before_build.target.mk:13: Release/obj/gen/sqlite-autoconf-3310100/sqlite3.c] Error 127
│ make: Leaving directory '/mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp/node_modules/.pnpm/sqlite3@4.2.0/node_modules/sqlite3/build'
│ gyp ERR! build error 
│ gyp ERR! stack Error: `make` failed with exit code: 2
│ gyp ERR! stack     at ChildProcess.onExit (/mnt/fast1/ACALA_DATA/acala/.rush/node-v16.15.0/pnpm-6.7.1/node_modules/pnpm/dist/node_modules/node-gyp
│ gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
│ gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
│ gyp ERR! System Linux 5.4.0-91-generic
│ gyp ERR! command "/mnt/fast1/ACALA_DATA/acala/node-v16.15.0-linux-x64/bin/node" "/mnt/fast1/ACALA_DATA/acala/.rush/node-v16.15.0/pnpm-6.7.1/node_m
│ gyp ERR! cwd /mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp/node_modules/.pnpm/sqlite3@4.2.0/node_modules/sqlite3
│ gyp ERR! node -v v16.15.0
│ gyp ERR! node-gyp -v v8.1.0
│ gyp ERR! not ok 
│ node-pre-gyp ERR! build error 
│ node-pre-gyp ERR! stack Error: Failed to execute '/mnt/fast1/ACALA_DATA/acala/node-v16.15.0-linux-x64/bin/node /mnt/fast1/ACALA_DATA/acala/.rush/n
│ node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp/node_modules/.pnpm/node-pre-gyp@0.11.0/n
│ node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
│ node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1092:16)
│ node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
│ node-pre-gyp ERR! System Linux 5.4.0-91-generic
│ node-pre-gyp ERR! command "/mnt/fast1/ACALA_DATA/acala/node-v16.15.0-linux-x64/bin/node" "/mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp/node_mo
│ node-pre-gyp ERR! cwd /mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp/node_modules/.pnpm/sqlite3@4.2.0/node_modules/sqlite3
│ node-pre-gyp ERR! node -v v16.15.0
│ node-pre-gyp ERR! node-pre-gyp -v v0.11.0
│ node-pre-gyp ERR! not ok 
│ Failed to execute '/mnt/fast1/ACALA_DATA/acala/node-v16.15.0-linux-x64/bin/node /mnt/fast1/ACALA_DATA/acala/.rush/node-v16.15.0/pnpm-6.7.1/node_mo
└─ Failed in 1s
node_modules/.pnpm/secp256k1@4.0.2/node_modules/secp256k1: Running install script, done in 121ms
node_modules/.pnpm/utf-8-validate@5.0.7/node_modules/utf-8-validate: Running install script, done in 128ms
node_modules/.pnpm/web3-bzz@1.5.3/node_modules/web3-bzz: Running postinstall script, done in 47ms
 ERROR  Command failed with exit code 1.

The command failed:
 /mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp/pnpm-local/node_modules/.bin/pnpm install --store /mnt/fast1/ACALA_DATA/acala/bodhi.js/common/temp/pnpm-store --no-prefer-frozen-lockfile --recursive --link-workspace-packages false
ERROR: Error: The command failed with exit code 1
shunjizhan commented 1 year ago

│ /bin/sh: 1: python: not found

you might need to install python first

mcf-rocks commented 1 year ago

you might be right