huan / node-facenet

Solve face verification, recognition and clustering problems: A TensorFlow backed FaceNet implementation for Node.js.
https://zixia.github.io/node-facenet/
Apache License 2.0
405 stars 77 forks source link

cannot install with npm #143

Open david1983 opened 6 years ago

david1983 commented 6 years ago

Hi there, I cannot install this using npm or yarn. I've cloned the repo and npm install in the repo worked even if I had some "bdist_wheel" errors things I've tried

the following is the error I'm getting:

Building wheels for collected packages: sklearn, gast, termcolor, absl-py, wrapt, html5lib Running setup.py bdist_wheel for sklearn: started Running setup.py bdist_wheel for sklearn: finished with status 'error' Complete output from command /home/dave/projects/facerec/node_modules/facenet/python3/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-_gbj1kmq/sklearn/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpfd9wq029pip-wheel- --python-tag cp36: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for sklearn Running setup.py clean for sklearn Running setup.py bdist_wheel for gast: started Running setup.py bdist_wheel for gast: finished with status 'error' Complete output from command /home/dave/projects/facerec/node_modules/facenet/python3/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-_gbj1kmq/gast/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpa8rlkjf6pip-wheel- --python-tag cp36: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for gast Running setup.py clean for gast Running setup.py bdist_wheel for termcolor: started Running setup.py bdist_wheel for termcolor: finished with status 'error' Complete output from command /home/dave/projects/facerec/node_modules/facenet/python3/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-_gbj1kmq/termcolor/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpaeo3r1gdpip-wheel- --python-tag cp36: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for termcolor Running setup.py clean for termcolor Running setup.py bdist_wheel for absl-py: started Running setup.py bdist_wheel for absl-py: finished with status 'error' Complete output from command /home/dave/projects/facerec/node_modules/facenet/python3/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-_gbj1kmq/absl-py/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpfekqa6l9pip-wheel- --python-tag cp36: /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help

error: invalid command 'bdist_wheel'


Running setup.py clean for absl-py Failed building wheel for absl-py Running setup.py bdist_wheel for wrapt: started Running setup.py bdist_wheel for wrapt: finished with status 'error' Complete output from command /home/dave/projects/facerec/node_modules/facenet/python3/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-_gbj1kmq/wrapt/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpuapdtqb_pip-wheel- --python-tag cp36: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for wrapt Running setup.py clean for wrapt Running setup.py bdist_wheel for html5lib: started Running setup.py bdist_wheel for html5lib: finished with status 'error' Complete output from command /home/dave/projects/facerec/node_modules/facenet/python3/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-_gbj1kmq/html5lib/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpcq_hsewzpip-wheel- --python-tag cp36: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for html5lib Running setup.py clean for html5lib Failed to build sklearn gast termcolor absl-py wrapt html5lib Installing collected packages: pycodestyle, mccabe, pyflakes, flake8, typed-ast, mypy, pillow, six, wrapt, lazy-object-proxy, astroid, isort, pylint, attrs, py, atomicwrites, pluggy, more-itertools, pytest, numpy, opencv-python, scipy, scikit-learn, sklearn, gast, termcolor, wheel, absl-py, astor, grpcio, protobuf, werkzeug, html5lib, bleach, markdown, tensorboard, tensorflow, typing Running setup.py install for wrapt: started Running setup.py install for wrapt: finished with status 'done' Running setup.py install for sklearn: started Running setup.py install for sklearn: finished with status 'done' Running setup.py install for gast: started Running setup.py install for gast: finished with status 'done' Running setup.py install for termcolor: started Running setup.py install for termcolor: finished with status 'done' Running setup.py install for absl-py: started Running setup.py install for absl-py: finished with status 'done' Running setup.py install for html5lib: started Running setup.py install for html5lib: finished with status 'done' Successfully installed absl-py-0.2.2 astor-0.6.2 astroid-1.6.5 atomicwrites-1.1.5 attrs-18.1.0 bleach-1.5.0 flake8-3.5.0 gast-0.2.0 grpcio-1.12.1 html5lib-0.9999999 isort-4.3.4 lazy-object-proxy-1.3.1 markdown-2.6.11 mccabe-0.6.1 more-itertools-4.2.0 mypy-0.610 numpy-1.14.5 opencv-python-3.4.1.15 pillow-5.1.0 pluggy-0.6.0 protobuf-3.6.0 py-1.5.3 pycodestyle-2.3.1 pyflakes-1.6.0 pylint-1.9.2 pytest-3.6.2 scikit-learn-0.19.1 scipy-1.1.0 six-1.11.0 sklearn-0.0 tensorboard-1.8.0 tensorflow-1.8.0 termcolor-1.1.0 typed-ast-1.1.0 typing-3.6.4 werkzeug-0.14.1 wheel-0.31.1 wrapt-1.10.11 sh: 1: cannot create /dev/stdout: No such device or address npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! facenet@0.10.3 venv: python3 -m venv python3 && . python3/bin/activate && pip3 install -r requirements.txt && pip3 install --upgrade numpy >/dev/stdout npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the facenet@0.10.3 venv script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

huan commented 6 years ago

Thank you for using my code.

According to your problem, I'd like to suggest you have a look at our CI setting at https://travis-ci.com/zixia/node-facenet/builds/74677815, where you can learn how to set up the node-facenet Linux/Mac environment right.

If you still can not solve this after investigated to the CI, then you can:

  1. ask some of your friends who are familiar with Python, or
  2. use our Docker Image instead: https://hub.docker.com/r/zixia/facenet/