csvdedupe icon indicating copy to clipboard operation
csvdedupe copied to clipboard

Error installing for Mac Users

Open ekrolewicz6 opened this issue 6 years ago • 1 comments

Installing on Mac OSX 10.14.2 (or any newer version of Mac that dont use Xcode 9.4 Gives the following error:

ERROR: Command errored out with exit status 1:
   command: /Users/edankrolewicz/.virtualenvs/marketing/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2w/53v1v9654nbgx13t9zsc9q_40000gn/T/pip-install-6zw5_c39/fastcluster/setup.py'"'"'; __file__='"'"'/private/var/folders/2w/53v1v9654nbgx13t9zsc9q_40000gn/T/pip-install-6zw5_c39/fastcluster/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 /private/var/folders/2w/53v1v9654nbgx13t9zsc9q_40000gn/T/pip-wheel-by0sb4lm --python-tag cp37
       cwd: /private/var/folders/2w/53v1v9654nbgx13t9zsc9q_40000gn/T/pip-install-6zw5_c39/fastcluster/
  Complete output (18 lines):
  Version: 1.1.24
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.7-x86_64-3.7
  copying fastcluster.py -> build/lib.macosx-10.7-x86_64-3.7
  running build_ext
  building '_fastcluster' extension
  creating build/temp.macosx-10.7-x86_64-3.7
  creating build/temp.macosx-10.7-x86_64-3.7/src
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/edankrolewicz/anaconda3/include -arch x86_64 -I/Users/edankrolewicz/anaconda3/include -arch x86_64 -I/Users/edankrolewicz/.virtualenvs/marketing/lib/python3.7/site-packages/numpy/core/include -I/Users/edankrolewicz/anaconda3/include/python3.7m -c src/fastcluster_python.cpp -o build/temp.macosx-10.7-x86_64-3.7/src/fastcluster_python.o
  warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
  src/fastcluster_python.cpp:55:10: fatal error: 'cmath' file not found
  #include <cmath> // for std::abs, std::pow, std::sqrt
           ^~~~~~~
  1 warning and 1 error generated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for fastcluster
  Running setup.py clean for fastcluster
Failed to build fastcluster
Installing collected packages: fastcluster, dedupe, csvdedupe
  Found existing installation: fastcluster 1.1.25
    Uninstalling fastcluster-1.1.25:
      Successfully uninstalled fastcluster-1.1.25
  Running setup.py install for fastcluster ... error
    ERROR: Command errored out with exit status 1:
     command: /Users/edankrolewicz/.virtualenvs/marketing/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2w/53v1v9654nbgx13t9zsc9q_40000gn/T/pip-install-6zw5_c39/fastcluster/setup.py'"'"'; __file__='"'"'/private/var/folders/2w/53v1v9654nbgx13t9zsc9q_40000gn/T/pip-install-6zw5_c39/fastcluster/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/2w/53v1v9654nbgx13t9zsc9q_40000gn/T/pip-record-13eqto0y/install-record.txt --single-version-externally-managed --compile --install-headers /Users/edankrolewicz/.virtualenvs/marketing/include/site/python3.7/fastcluster
         cwd: /private/var/folders/2w/53v1v9654nbgx13t9zsc9q_40000gn/T/pip-install-6zw5_c39/fastcluster/
    Complete output (18 lines):
    Version: 1.1.24
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.7-x86_64-3.7
    copying fastcluster.py -> build/lib.macosx-10.7-x86_64-3.7
    running build_ext
    building '_fastcluster' extension
    creating build/temp.macosx-10.7-x86_64-3.7
    creating build/temp.macosx-10.7-x86_64-3.7/src
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/edankrolewicz/anaconda3/include -arch x86_64 -I/Users/edankrolewicz/anaconda3/include -arch x86_64 -I/Users/edankrolewicz/.virtualenvs/marketing/lib/python3.7/site-packages/numpy/core/include -I/Users/edankrolewicz/anaconda3/include/python3.7m -c src/fastcluster_python.cpp -o build/temp.macosx-10.7-x86_64-3.7/src/fastcluster_python.o
    warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
    src/fastcluster_python.cpp:55:10: fatal error: 'cmath' file not found
    #include <cmath> // for std::abs, std::pow, std::sqrt
             ^~~~~~~
    1 warning and 1 error generated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
  Rolling back uninstall of fastcluster
  Moving to /Users/edankrolewicz/.virtualenvs/marketing/lib/python3.7/site-packages/__pycache__/fastcluster.cpython-37.pyc
   from /private/var/folders/2w/53v1v9654nbgx13t9zsc9q_40000gn/T/pip-uninstall-p5fa2ylf/fastcluster.cpython-37.pyc
  Moving to /Users/edankrolewicz/.virtualenvs/marketing/lib/python3.7/site-packages/_fastcluster.cpython-37m-darwin.so
   from /private/var/folders/2w/53v1v9654nbgx13t9zsc9q_40000gn/T/pip-uninstall-egsyoeqk/_fastcluster.cpython-37m-darwin.so
  Moving to /Users/edankrolewicz/.virtualenvs/marketing/lib/python3.7/site-packages/fastcluster-1.1.25.dist-info/
   from /Users/edankrolewicz/.virtualenvs/marketing/lib/python3.7/site-packages/~astcluster-1.1.25.dist-info
  Moving to /Users/edankrolewicz/.virtualenvs/marketing/lib/python3.7/site-packages/fastcluster.py
   from /private/var/folders/2w/53v1v9654nbgx13t9zsc9q_40000gn/T/pip-uninstall-egsyoeqk/fastcluster.py
ERROR: Command errored out with exit status 1: /Users/edankrolewicz/.virtualenvs/marketing/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2w/53v1v9654nbgx13t9zsc9q_40000gn/T/pip-install-6zw5_c39/fastcluster/setup.py'"'"'; __file__='"'"'/private/var/folders/2w/53v1v9654nbgx13t9zsc9q_40000gn/T/pip-install-6zw5_c39/fastcluster/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/2w/53v1v9654nbgx13t9zsc9q_40000gn/T/pip-record-13eqto0y/install-record.txt --single-version-externally-managed --compile --install-headers /Users/edankrolewicz/.virtualenvs/marketing/include/site/python3.7/fastcluster Check the logs for full command output.

Testing Solutions from here: https://stackoverflow.com/questions/11094718/error-command-gcc-failed-with-exit-status-1-while-installing-eventlet https://stackoverflow.com/questions/52425766/stdlibc-headers-not-found-error-on-xcode-10

suggest that Csvdedupe/ dedupe repos Readme includes directions on how to troubleshoot this case.

ekrolewicz6 avatar Jul 24 '19 05:07 ekrolewicz6

@fgregg

ekrolewicz6 avatar Jul 24 '19 05:07 ekrolewicz6