After completing full installation of Hyperledger as per their documentation mentioned here, when I execute composer-playground, I get error saying The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
This happens even after I run npm install and npm rebuild.
Full stacktrace is metioned below:
error: [Hyperledger-Composer] :ConnectionProfileManager :getConnectionManagerByTyp Error: Failed to load connector module "composer-connector-hlfv1" for connection type "hlfv1". The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
Original error: Cannot find module '/usr/lib/node_modules/composer-playground/node_modules/grpc/src/node/extension_binary/node-v59-linux-x64-glibc/grpc_node.node'-The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
Original error: Cannot find module '/usr/lib/node_modules/composer-playground/node_modules/grpc/src/node/extension_binary/node-v59-linux-x64-glibc/grpc_node.node'-The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
Original error: Cannot find module '/usr/lib/node_modules/composer-playground/node_modules/grpc/src/node/extension_binary/node-v59-linux-x64-glibc/grpc_node.node'-The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
Original error: Cannot find module '/usr/lib/node_modules/composer-playground/node_modules/grpc/src/node/extension_binary/node-v59-linux-x64-glibc/grpc_node.node'-The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
Original error: Cannot find module '/usr/lib/node_modules/composer-playground/node_modules/grpc/src/node/extension_binary/node-v59-linux-x64-glibc/grpc_node.node'-The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
Original error: Cannot find module '/usr/lib/node_modules/composer-playground/node_modules/grpc/src/node/extension_binary/node-v59-linux-x64-glibc/grpc_node.node'-The gRPC binary module was not installed. This may be fixed by running "npm rebuild"
Original error: Cannot find module '/usr/lib/node_modules/composer-playground/node_modules/grpc/src/node/extension_binary/node-v59-linux-x64-glibc/grpc_node.node'
at Promise.resolve.then (/usr/lib/node_modules/composer-playground/node_modules/composer-common/lib/connectionprofilemanager.js:144:42)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:118:7)
Looks like you are using node V9. Composer only works with Node V8. Suggest you use nvm https://github.com/nvm-sh/nvm to manage your node installations. Use it to install node 8 (nvm install 8). Then you will need to npm install composer again.
Related
Guys while i was running anchor test on macbook m1, i am getting this error. Does anybody have a fix for this.
BPF SDK: /Users/dhruvjain/solana/bin/sdk/bpf
Running: rustup toolchain list -v
Running: cargo +bpf build --target bpfel-unknown-unknown --release
error: failed to download `solana-frozen-abi v1.9.9`
Caused by:
unable to get packages from source
Caused by:
failed to parse manifest at `/Users/dhruvjain/.cargo/registry/src/github.com-1ecc6299db9ec823/solana-frozen-abi-1.9.9/Cargo.toml`
Caused by:
feature `edition2021` is required
consider adding `cargo-features = ["edition2021"]` to the manifest
I found that i may have old rust or cargo version. But they seem to be up to date.
rustc 1.59.0 (9d1b2106e 2022-02-23)
Cargo Version
cargo 1.59.0 (49d8809dc 2022-02-10)
I ran cargo clean but i still got the same error. Can somebody help me to solve this issue.
what solana version ?
solana -V
Ensure you are runnning 1.9.9
sh -c "$(curl -sSfL https://release.solana.com/v1.9.9/install)"
I tried to build HandTrackingExample and get this error
ERROR:
/Users/air/Documents/mediapipe/mediapipe/examples/ios/handtrackinggpu/BUILD:34:16:
ProcessEntitlementsFiles
mediapipe/examples/ios/handtrackinggpu/HandTrackingGpuApp_entitlements.entitlements
failed (Exit 1): plisttool failed: error executing command
bazel-out/host/bin/external/build_bazel_rules_apple/tools/plisttool/plisttool
... (remaining 1 argument(s) skipped)
Note: The failure of target
#build_bazel_rules_apple//tools/plisttool:plisttool (with exit code 1)
may have been caused by the fact that it is running under Python 2
instead of Python 3. Examine the error to determine if that appears to
be the problem. Since this target is built in the host configuration,
the only way to change its version is to set --host_force_python=PY3,
which affects the entire build.
If this error started occurring in Bazel 0.27 and later, it may be
because the Python toolchain now enforces that targets analyzed as PY2
and PY3 run under a Python 2 and Python 3 interpreter, respectively.
See https://github.com/bazelbuild/bazel/issues/7899 for more
information.
I tried build with --host_force_python=PY3 and PY2 but error the same
The link that is given in the error did not find a solution to your problem. How do I build a project correctly?
Try it
$ brew install python
$ sudo ln -s -f /usr/local/bin/python3.7 /usr/local/bin/python
$ python --version
Python 3.7.4
$ pip3 install --user six
I had followed all the steps of configuring the hyperledger business network using this link.
I had configured all the steps but i am stuck at the very last step of starting my business network.I am getting this error
Error: Error trying to start business network. Error: No valid
responses from any peers.
Response from attempted peer comms was an error: Error: failed to
execute transaction
6581ef4cc7b6fec6c0b69af693acb62d2690588288e5174d38fa86fcf90fef94:
error starting container: error starting container: Failed to
generate platform-specific docker build: Error returned from build:
1 "npm WARN notice [SECURITY] js-yaml has the following
vulnerabilities: 1 high, 1 moderate. Go here for more details:
https://www.npmjs.com/advisories?search=js-yaml&version=3.10.0-Run
`npm i npm#latest -g` to upgrade your npm version, and then `npm
audit` to get more info.
Please help me to solve this out.
My Enviorment:-
docker:- 18.09.7
docker-compose:-1.21.2
Node:-8.10.0
Npm:-6.9.2
Hyperdledger Fabric:-1.2
Composer:-0.20
Please help me to figure out this issue.
The following are prerequisites for installing the required development tools:
Operating Systems: Ubuntu Linux 14.04 / 16.04 LTS (both 64-bit), or Mac OS 10.12
Docker Engine: Version 17.03 or higher
Docker-Compose: Version 1.8 or higher
Node: 8.9 or higher (note version 9 and higher is not supported)
npm: v5.x
git: 2.9.x or higher
Python: 2.7.x
If you're running on Ubuntu, you can download the prerequisites using the following commands:
curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh
chmod u+x prereqs-ubuntu.sh
I am setting up a Jenkins project on windows slave machine
As a build step I am installing node packages
My package.json also have dependencies from git repos.
Node is getting detected by my machine but the npm install command is taking forever to execute and after sometime it gives the following error
Unhandled rejection Error: premature close
at PassThrough.onclose (C:\Jenkins\tools\jenkins.plugins.nodejs.tools.NodeJSInstallation\NodeJS_10.15.0\node_modules\npm\node_modules\end-of-stream\index.js:47:67)
at PassThrough.emit (events.js:187:15)
at emitCloseNT (internal/streams/destroy.js:59:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
Node version
10.15.0
This happens when a dependency (module) is missing the package.json or has a syntax or semantic error in the package.json.
https://github.com/npm/npm/issues/20824
I am trying to install opencv using conda on a windows machine. I am running the following command:
conda install --channel https://conda.anaconda.org/menpo opencv
and getting the following error:
Solving environment: done
## Package Plan ##
environment location: C:\ProgramData\Anaconda2
added / updated specs:
- opencv
The following NEW packages will be INSTALLED:
opencv: 2.4.11-py27_1 menpo
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: - WARNING conda.gateways.disk:exp_backoff_fn(49):
Uncaught backoff with errno EEXIST 17
failed
ERROR conda.core.link:_execute(502): An error occurred while installing
package 'None'.
IOError(13, 'Permission denied')
Attempting to roll back.
Rolling back transaction: done
IOError(13, 'Permission denied')
WindowsError(183, 'Cannot create a file when that file already exists')
Other people seem to have similar problems (https://github.com/conda/conda/issues/4393). One of the solutions I found was to downgrade conda. I am currently using conda 4.5.4 and when I try to downgrade using conda install conda=4.2 I get the following error:
The following packages will be DOWNGRADED:
conda: 4.5.4-py27_0 --> 4.2.16-py27_0
conda-build: 3.10.5-py27_0 --> 3.9.2-py27_0
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: failed
ERROR conda.core.link:_execute(502): An error occurred while uninstalling
package 'defaults::conda-build-3.10.5-py27_0'.
WindowsError(5, 'Access is denied')
Attempting to roll back.
Rolling back transaction: done
WindowsError(5, 'Access is denied')
Regarding this issue I found the following similar posts:
conda update conda permission error
Anaconda : Update conda failed because permission error
But the solutions given do not fix my problem.
I also had a problem with installation and usage of the OpenCV library. If you have such а problem, you can try:
uninstall opencv with: conda remove --yes opencv (in case you have an installation but it does not work properly)
install OpenCV through pip: pip install opencv-python
I think this is a problem with opencv that comes from Anaconda channels. I came across this problem four months ago. Тhe problem may be resolved right now.
My guess is that you did not run this command with administrator privileges!