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

Cannot find module 'protocol-buffers' #33

Open
evanb2 opened this issue May 17, 2018 · 1 comment
Open

Cannot find module 'protocol-buffers' #33

evanb2 opened this issue May 17, 2018 · 1 comment

Comments

@evanb2
Copy link

evanb2 commented May 17, 2018

I'm on node v8.4.0

Install is ok. But getting the following error when trying to start my local server:

Error: Cannot find module 'protocol-buffers'
    at Function.Module._resolveFilename (module.js:489:15)
    at Function.Module._load (module.js:439:25)
    at Module.require (module.js:517:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Path/to/project/node_modules/tensorflow/src/interop/api.js:13:18)
@felipemullen
Copy link

I've come across the same issue. You can run

npm install 'protocol-buffers'

to get rid of that error, but you end up with another error

throw new Error('Dynamic Linking Error: ' + err)
    ^

Error: Dynamic Linking Error: dlopen(/Users/fmullen/code/ml-learning/node_modules/tensorflow/lib/libtensorflow.dylib, 2): image not found
    at new DynamicLibrary (/Users/fmullen/code/ml-learning/node_modules/ffi/lib/dynamic_library.js:74:11)
    at Object.Library (/Users/fmullen/code/ml-learning/node_modules/ffi/lib/library.js:45:12)
    at Object.<anonymous> (/Users/fmullen/code/ml-learning/node_modules/tensorflow/src/interop/api.js:196:21)
    at Module._compile (internal/modules/cjs/loader.js:805:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
    at Module.load (internal/modules/cjs/loader.js:672:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:612:12)
    at Function.Module._load (internal/modules/cjs/loader.js:604:3)
    at Module.require (internal/modules/cjs/loader.js:711:19)
    at require (internal/modules/cjs/helpers.js:14:16)

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

No branches or pull requests

2 participants