Coder Social home page Coder Social logo

fanny's People

Contributors

crispyconductor avatar tomkha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

njutte jjhesk iodev

fanny's Issues

Error on npm install

I'm getting an error on npm install fanny on macosx. My node and npm versions are the most up to date node: v7.7.2, npm: v4.4.1

Failed at the [email protected] preinstall script './build_fann.sh'.
Make sure you have the latest version of node.js and npm installed.
If you do, this is most likely a problem with the fanny package, not with npm itself.
Tell the author that this fails on your system: ./build_fann.sh
Here is the content of the debug file:

3743 warn [email protected] No repository field.
3744 verbose stack Error: [email protected] preinstall: ./build_fann.sh
3744 verbose stack Exit status 1
3744 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
3744 verbose stack at emitTwo (events.js:106:13)
3744 verbose stack at EventEmitter.emit (events.js:194:7)
3744 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
3744 verbose stack at emitTwo (events.js:106:13)
3744 verbose stack at ChildProcess.emit (events.js:194:7)
3744 verbose stack at maybeClose (internal/child_process.js:899:16)
3744 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
3745 verbose pkgid [email protected]
3746 verbose cwd //Documents/AITtest
3747 verbose Darwin 15.6.0
3748 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "fanny"
3749 verbose node v7.7.2
3750 verbose npm v4.4.1
3751 error code ELIFECYCLE
3752 error errno 1

Let me know if you need any other info, thanks for your help

Unable to install on MacOSX

Here is interesting part of postinstall part:

> node-gyp configure && node-gyp build

  CXX(target) Release/obj.target/addon-doublefann/src/addon.o
In file included from ../src/addon.cc:2:
In file included from ../src/fanny.h:5:
In file included from ../src/fann-includes.h:12:
../fann/include/fann_cpp.h:164:18: error: no member named 'unique_ptr' in namespace 'std'
            std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
            ~~~~~^
../fann/include/fann_cpp.h:164:38: error: expected '(' for function-style cast or type construction
            std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
                            ~~~~~~~~ ^
../fann/include/fann_cpp.h:169:17: error: use of undeclared identifier 'data'
                data.get()[i] = va_arg(layers, unsigned
                ^
../fann/include/fann_cpp.h:175:66: error: use of undeclared identifier 'data'
                    ann = fann_create_standard_array(num_layers, data.get());
                                                                 ^
../fann/include/fann_cpp.h:178:66: error: use of undeclared identifier 'data'
                    ann = fann_create_shortcut_array(num_layers, data.get());
                                                                 ^
../fann/include/fann_cpp.h:201:18: error: no member named 'unique_ptr' in namespace 'std'
            std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
            ~~~~~^
../fann/include/fann_cpp.h:201:38: error: expected '(' for function-style cast or type construction
            std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
                            ~~~~~~~~ ^
../fann/include/fann_cpp.h:206:17: error: use of undeclared identifier 'data'
                data.get()[i] = va_arg(layers, unsigned int);
                ^
../fann/include/fann_cpp.h:209:73: error: use of undeclared identifier 'data'
            ann = fann_create_sparse_array(connection_rate, num_layers, data.get());
                                                                        ^
../fann/include/fann_cpp.h:362:18: error: no member named 'unique_ptr' in namespace 'std'
            std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
            ~~~~~^
../fann/include/fann_cpp.h:362:38: error: expected '(' for function-style cast or type construction
            std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
                            ~~~~~~~~ ^
../fann/include/fann_cpp.h:367:17: error: use of undeclared identifier 'data'
                data.get()[i] = va_arg(layers, unsigned
                ^
../fann/include/fann_cpp.h:371:61: error: use of undeclared identifier 'data'
            bool status = create_standard_array(num_layers, data.get());
                                                            ^
../fann/include/fann_cpp.h:421:18: error: no member named 'unique_ptr' in namespace 'std'
            std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
            ~~~~~^
../fann/include/fann_cpp.h:421:38: error: expected '(' for function-style cast or type construction
            std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
                            ~~~~~~~~ ^
../fann/include/fann_cpp.h:426:17: error: use of undeclared identifier 'data'
                data.get()[i] = va_arg(layers, unsigned
                ^
../fann/include/fann_cpp.h:431:47: error: use of undeclared identifier 'data'
                                              data.get());
                                              ^
../fann/include/fann_cpp.h:478:18: error: no member named 'unique_ptr' in namespace 'std'
            std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
            ~~~~~^
../fann/include/fann_cpp.h:478:38: error: expected '(' for function-style cast or type construction
            std::unique_ptr<unsigned int[]> data(new unsigned int[num_layers]);
                            ~~~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/addon-doublefann/src/addon.o] Error 1

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.