Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://github.com/google/voice-builder #1428

Closed
hack3r3d opened this issue May 16, 2020 · 1 comment
Closed

https://github.com/google/voice-builder #1428

hack3r3d opened this issue May 16, 2020 · 1 comment

Comments

@hack3r3d
Copy link

Problem description

I'm working my through the installation instructions for Google Voice Builder (https://github.com/google/voice-builder).

I'm on this step, running this command

./deploy.sh cloud_functions

The command fails though with the following grpc error "command failed."

error /private/var/folders/_c/8_qmmzq12wbb0lzjhqyf9b2c0000gn/T/tmp.duYBCYG1/functions/node_modules/grpc: Command failed.
Exit code: 1

Reproduction steps

I'm literally just going through these instructions.
https://github.com/google/voice-builder

Clone this project to your current directory by:

  1. git clone https://github.com/google/voice-builder.git && cd voice-builder

If you haven't logged in to your account via gcloud yet, please log in by:

  1. gcloud auth login
    Also, if you haven't logged in to your account via firebase, please log in by:

  2. firebase login --no-localhost

  3. Open deploy.sh and edit the following variables:

PROJECT_NAME: your created GCP project's name from Prerequisite 1) e.g. vb-test-project
PROJECT_ID: your created GCP project's id from Prerequisite 1) e.g. vb-test-project
GCP_SERVICE_ACCOUNT_EMAIL: Use Compute Engine service account (you can find one by clicking on top left menu under "IAM & admin > Service accounts") e.g. [email protected]
Create GCS buckets for Voice Builder to store each job data

  1. ./deploy.sh initial_setup
    Deploy cloud functions component

  2. ./deploy.sh cloud_functions

Environment

  • Mac 10.15.4
  • Node version 13.10.1
  • Node installation method [NVM]

Additional context

error /private/var/folders/_c/8_qmmzq12wbb0lzjhqyf9b2c0000gn/T/tmp.duYBCYG1/functions/node_modules/grpc: Command failed.
Exit code: 1
Command: ./node_modules/.bin/node-pre-gyp install --fallback-to-build --library=static_library
Arguments:
Directory: /private/var/folders/_c/8_qmmzq12wbb0lzjhqyf9b2c0000gn/T/tmp.duYBCYG1/functions/node_modules/grpc
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | darwin | x64
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp info check checked for "/private/var/folders/_c/8_qmmzq12wbb0lzjhqyf9b2c0000gn/T/tmp.duYBCYG1/functions/node_modules/grpc/src/node/extension_binary/node-v79-darwin-x64-unknown/grpc_node.node" (not found)
node-pre-gyp http GET https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.13.0/node-v79-darwin-x64-unknown.tar.gz
node-pre-gyp http 403 https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.13.0/node-v79-darwin-x64-unknown.tar.gz
node-pre-gyp WARN Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.13.0/node-v79-darwin-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v79 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.13.0/node-v79-darwin-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v79 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error Connection closed while downloading tarball file
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info ok
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
gyp info spawn args [
gyp info spawn args '/usr/local/lib/node_modules/npm/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 '/private/var/folders/_c/8_qmmzq12wbb0lzjhqyf9b2c0000gn/T/tmp.duYBCYG1/functions/node_modules/grpc/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',

-- truncated --

@murgatroid99
Copy link
Member

That package appears to depend on a weirdly old version of grpc, which is not compatible with the recent version of Node that you are using. You will have to downgrade your version of Node, version 8 should probably work. If not, you may need to use Node 6.

I have also filed google/voice-builder#36 to ask them to fix this on their side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants