keplr-io / quiver

Interactive convnet features visualization for Keras
https://keplr-io.github.io/quiver/
MIT License
1.75k stars 223 forks source link

Installation error for development version #46

Closed JGuillaumin closed 6 years ago

JGuillaumin commented 7 years ago

Hi,

I would like to modify some parts of quiver :

So to add those options, I tried to install the development version .. but if failed when I tried to build the client.

git clone  https://github.com/jakebian/quiver.git
cd quiver && python setup.py develop
cd quiver_engine/quiverboard && npm install

It doesn't end .. but it displays many errors (ENOENT and EEXIST). The first ones are :

npm ERR! Error: ENOENT, chmod '/home/$USER/Documents/blabla/visualization-tools/quiver/quiver_engine/quiverboard/node_modules/codecov/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/index.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.19.0-59-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/$USER/Documents/blabla/visualization-tools/quiver/quiver_engine/quiverboard
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/$USER/Documents/blabla/visualization-tools/quiver/quiver_engine/quiverboard/node_modules/codecov/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/index.js
npm ERR! fstream_path /home/$USER/Documents/blabla/visualization-tools/quiver/quiver_engine/quiverboard/node_modules/codecov/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/index.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chmod
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 304 https://registry.npmjs.org/escape-string-regexp
npm http 304 https://registry.npmjs.org/to-arraybuffer
npm http 304 https://registry.npmjs.org/has-ansi
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/home/$USER/Documents/blabla/visualization-tools/quiver/quiver_engine/quiverboard/node_modules/codecov/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror'
npm ERR! error rolling back  codecov@1.0.1 { [Error: ENOTEMPTY, rmdir '/home/$USER/Documents/blabla/visualization-tools/quiver/quiver_engine/quiverboard/node_modules/codecov/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/home/$USER/Documents/blabla/visualization-tools/quiver/quiver_engine/quiverboard/node_modules/codecov/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror' }
npm ERR! weird error 127
npm http 304 https://registry.npmjs.org/builtin-status-codes
npm http 304 https://registry.npmjs.org/pako
npm http 304 https://registry.npmjs.org/amdefine
npm http GET https://registry.npmjs.org/is-date-object
npm http GET https://registry.npmjs.org/is-symbol
npm ERR! Error: ENOENT, lstat '/home/$USER/Documents/blabla/visualization-tools/quiver/quiver_engine/quiverboard/node_modules/codecov/node_modules/request/node_modules/http-signature/node_modules/sshpk/README.md'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.19.0-59-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/$USER/Documents/blabla/visualization-tools/quiver/quiver_engine/quiverboard
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/$USER/Documents/blabla/visualization-tools/quiver/quiver_engine/quiverboard/node_modules/codecov/node_modules/request/node_modules/http-signature/node_modules/sshpk/README.md
npm ERR! fstream_path /home/$USER/Documents/blabla/visualization-tools/quiver/quiver_engine/quiverboard/node_modules/codecov/node_modules/request/node_modules/http-signature/node_modules/sshpk/README.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http GET https://registry.npmjs.org/iconv-lite
npm ERR! EEXIST, mkdir '/home/$USER/tmp/npm-10769-eAixwFfg/1487594217455-0.9930695469956845/package'
File exists: /home/$USER/tmp/npm-10769-eAixwFfg/1487594217455-0.9930695469956845/package
Move it away, and try again. 

npm ERR! System Linux 3.19.0-59-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/$USER/Documents/blabla/visualization-tools/quiver/quiver_engine/quiverboard
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/$USER/tmp/npm-10769-eAixwFfg/1487594217455-0.9930695469956845/package
npm ERR! fstream_path /home/$USER/tmp/npm-10769-eAixwFfg/1487594217455-0.9930695469956845/package/split.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47

I have the sames errors when I use sudo npm install.

Have you had errors like this ? Or I made a mistake during installation ?

Maybe a solution is to use a Docker image that provides the development version ? Someone is working with Docker ?

jakebian commented 7 years ago

Hey, some ideas:

JGuillaumin commented 7 years ago

nodejs --version : v0.10.25 npm --version : v0.10.25

I create my own launch and get_app (in server.py) that handles input_array instead of input_folder as argument. To display images (above feature maps), I save images from input_array in temp_folder, and it works !

@app.route('/inputs')
def get_inputs():
    return jsonify(['{}.jpg'.format(idx) for idx in range(len(input_array))])

@app.route('/input-file/<path>')
def get_input_file(path):
    temp_path = '{}/{}'.format(temp_folder, path)
    imsave(temp_path, input_array[int(path.split('.')[0])])
    return send_from_directory(abspath(temp_folder), path)

I would like to add options for handling Theano and Tensorflow ordering (now, only TensorFlow) before committing on my forked repo.

I would like to add some new features ... and I think I have to work on the JavaScript part . But I have never worked with JS. I hope I will have enough time in few weeks to learn JS and to work on those new features.

jakebian commented 6 years ago

Closing, no one's reported the same installation error in over a year :)