Git Product home page Git Product logo

Comments (8)

bsharper avatar bsharper commented on May 16, 2024 1

@txssseal I was able to get it to work by building the module and then symlinking the built module to the global node_modules folder. This doesn't resolve this issue (npm install shouldn't install a broken module), but if you wanted to go ahead and test napajs now, this might do the trick.

  1. Built the module using the instructions on the build page.
  2. Ran npm link in the directory where I built napajs. This symlinks the local napajs module to the global node_modules directory.
  3. Changed to my project directory, and again ran npm link to symlink the global napajs module to my project's node_modules directory.
  4. Started node and entered var napa = require("napajs");, which executed without any errors.

from napajs.

txssseal avatar txssseal commented on May 16, 2024

I have installed the necessary dependencies as well

from napajs.

bsharper avatar bsharper commented on May 16, 2024

Same issue here. @txssseal are you running High Sierra?

from napajs.

ecwyne avatar ecwyne commented on May 16, 2024

Same issue here. on macOS Sierra 10.12.6 (16G29)

from napajs.

bsharper avatar bsharper commented on May 16, 2024

Tested this on Ubuntu and saw what appears to be the same error.

OS: Ubuntu 16.04.3 LTS (x64)
Node: v8.7.0
Napajs version: 0.1.3

node estimate-pi-in-parallel.js
module.js:653
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: libnapa.so: cannot open shared object file: No such file or directory
    at Object.Module._extensions..node (module.js:653:18)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/brian/projects/napa/node_modules/napajs/lib/binding.js:5:22)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)

from napajs.

 avatar commented on May 16, 2024

OS: MacOS High Sierra (10.13)
Node: v8.0.0
Napajs version: 0.1.3

$ node test.js
module.js:598
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: dlopen(/tmp/node_modules/napajs/bin/napa-binding.node, 1): Library not loaded: @rpath/libnapa.dylib
  Referenced from: /tmp/node_modules/napajs/bin/napa-binding.node
  Reason: image not found
    at Object.Module._extensions..node (module.js:598:18)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/tmp/node_modules/napajs/lib/binding.js:5:22)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)

from napajs.

PatrickJS avatar PatrickJS commented on May 16, 2024

I'm also running into the same error on osx. it would be great if there was a docker image we could use

from napajs.

daiyip avatar daiyip commented on May 16, 2024

Thanks for reporting. This is tracked by #80

from napajs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.