maxcountryman / flask-bcrypt

Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application.

Home Page:http://readthedocs.org/docs/flask-bcrypt/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pip install --user flask-bcrypt , fails on freebsd FreeBSD 12.1-RELEASE-p7

devosalain opened this issue · comments

The error is :

x: /home/x >pip install --user flask-bcrypt
Requirement already satisfied: flask-bcrypt in ./.local/lib/python3.7/site-packages (0.7.1)
Requirement already satisfied: Flask in ./.local/lib/python3.7/site-packages (from flask-bcrypt) (1.1.2)
Requirement already satisfied: bcrypt in /usr/local/lib/python3.7/site-packages (from flask-bcrypt) (3.1.7)
Requirement already satisfied: Werkzeug>=0.15 in ./.local/lib/python3.7/site-packages (from Flask->flask-bcrypt) (1.0.1)
Requirement already satisfied: click>=5.1 in /usr/local/lib/python3.7/site-packages (from Flask->flask-bcrypt) (7.0)
Requirement already satisfied: Jinja2>=2.10.1 in /usr/local/lib/python3.7/site-packages (from Flask->flask-bcrypt) (2.10.1)
Requirement already satisfied: itsdangerous>=0.24 in ./.local/lib/python3.7/site-packages (from Flask->flask-bcrypt) (1.1.0)
Collecting cffi>=1.1 (from bcrypt->flask-bcrypt)
  Downloading https://files.pythonhosted.org/packages/54/1d/15eae71ab444bd88a1d69f19592dcf32b9e3166ecf427dd9243ef0d3b7bc/cffi-1.14.1.tar.gz (468kB)
     |████████████████████████████████| 471kB 1.6MB/s 
Requirement already satisfied: six>=1.4.1 in /usr/local/lib/python3.7/site-packages (from bcrypt->flask-bcrypt) (1.14.0)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python3.7/site-packages (from Jinja2>=2.10.1->Flask->flask-bcrypt) (1.1.1)
Requirement already satisfied: pycparser in ./.local/lib/python3.7/site-packages (from cffi>=1.1->bcrypt->flask-bcrypt) (2.20)
Installing collected packages: cffi
  Running setup.py install for cffi ... error
    ERROR: Complete output from command /usr/local/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-2pwm90z7/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-e_ynldi3/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    ERROR: cp: illegal option -- c
    usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpsvx] source_file target_file
           cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpsvx] source_file ... target_directory
    cp: error: clang frontend command failed with exit code 64 (use -v to see invocation)
    cp: illegal option -- c
    usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpsvx] source_file target_file
           cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpsvx] source_file ... target_directory
    cp: error: clang frontend command failed with exit code 64 (use -v to see invocation)
    
        No working compiler found, or bogus compiler options passed to
        the compiler from Python's standard "distutils" module.  See
        the error messages above.  Likely, the problem is not related
        to CFFI but generic to the setup.py of any Python package that
        tries to compile C code.  (Hints: on OS/X 10.8, for errors about
        -mno-fused-madd see http://stackoverflow.com/questions/22313407/
        Otherwise, see https://wiki.python.org/moin/CompLangPython or
        the IRC channel #python on irc.freenode.net.)
    
        Trying to continue anyway.  If you are trying to install CFFI from
        a build done in a different context, you can ignore this warning.
    
    running install
    running build
    running build_py
    creating build
    creating build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7
    creating build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/api.py -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/__init__.py -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/setuptools_ext.py -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/cffi_opcode.py -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/vengine_cpy.py -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/lock.py -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/cparser.py -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/ffiplatform.py -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/verifier.py -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/vengine_gen.py -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/pkgconfig.py -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/model.py -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/recompiler.py -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/backend_ctypes.py -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/error.py -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/commontypes.py -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/_cffi_include.h -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/parse_c_type.h -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/_embedding.h -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    copying cffi/_cffi_errors.h -> build/lib.freebsd-12.1-RELEASE-p7-amd64-3.7/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.freebsd-12.1-RELEASE-p7-amd64-3.7
    creating build/temp.freebsd-12.1-RELEASE-p7-amd64-3.7/c
    /usr/local/bin/clang90 -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -O2 -pipe -march=ivybridge -fstack-protector-strong -fno-strict-aliasing -fPIC -I/usr/local/lib/libffi-3.2.1/include -I/usr/local/include -I/usr/local/include/python3.7m -c c/_cffi_backend.c -o build/temp.freebsd-12.1-RELEASE-p7-amd64-3.7/c/_cffi_backend.o
    cp: illegal option -- c
    usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpsvx] source_file target_file
           cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpsvx] source_file ... target_directory
    cp: error: clang frontend command failed with exit code 64 (use -v to see invocation)
    error: command '/usr/local/bin/clang90' failed with exit status 64
    ----------------------------------------
ERROR: Command "/usr/local/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-2pwm90z7/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-e_ynldi3/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-2pwm90z7/cffi/

The failing package is cffi, so get this working first before installing Flask-Bcrypt:

pip install cffi