Fasttext: Failed to build python package

Created on 5 Sep 2019  路  5Comments  路  Source: facebookresearch/fastText

Following the illustrations, I built fasttext using cmake but failed when I was trying to build the python bindings.

I've tried methods like setting CC, CXX or MACOSX_DEPLOYMENT_TARGET or running xcode-select --install mentioned in other issues, but none of them helped.

The clang installed on my macOS 10.14.6 are

 $ clang --version
clang version 8.0.1 (tags/RELEASE_801/final)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /usr/local/opt/llvm/bin

 $ /usr/bin/clang --version
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

The error message are

$ pip install .
Processing /Users/user/Git/repos/fastText
Requirement already satisfied: pybind11>=2.2 in /Users/user/.pyenv/versions/3.7.3/envs/general/lib/python3.7/site-packages (from fasttext==0.9.1) (2.3.0)
Requirement already satisfied: setuptools>=0.7.0 in /Users/user/.pyenv/versions/3.7.3/envs/general/lib/python3.7/site-packages (from fasttext==0.9.1) (40.8.0)
Requirement already satisfied: numpy in /Users/user/.pyenv/versions/3.7.3/envs/general/lib/python3.7/site-packages (from fasttext==0.9.1) (1.17.1)
Building wheels for collected packages: fasttext
  Building wheel for fasttext (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/user/.pyenv/versions/3.7.3/envs/general/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/pip-req-build-85i65a4s/setup.py'"'"'; __file__='"'"'/private/var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/pip-req-build-85i65a4s/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/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/pip-wheel-2z__pej3 --python-tag cp37
       cwd: /private/var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/pip-req-build-85i65a4s/
  Complete output (98 lines):
  running bdist_wheel
  running build
  running build_py
  creating build/lib.macosx-10.14-x86_64-3.7
  creating build/lib.macosx-10.14-x86_64-3.7/fasttext
  copying python/fasttext_module/fasttext/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/fasttext
  copying python/fasttext_module/fasttext/FastText.py -> build/lib.macosx-10.14-x86_64-3.7/fasttext
  creating build/lib.macosx-10.14-x86_64-3.7/fasttext/util
  copying python/fasttext_module/fasttext/util/util.py -> build/lib.macosx-10.14-x86_64-3.7/fasttext/util
  copying python/fasttext_module/fasttext/util/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/fasttext/util
  creating build/lib.macosx-10.14-x86_64-3.7/fasttext/tests
  copying python/fasttext_module/fasttext/tests/test_script.py -> build/lib.macosx-10.14-x86_64-3.7/fasttext/tests
  copying python/fasttext_module/fasttext/tests/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/fasttext/tests
  copying python/fasttext_module/fasttext/tests/test_configurations.py -> build/lib.macosx-10.14-x86_64-3.7/fasttext/tests
  running build_ext
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Users/user/.pyenv/versions/3.7.3/envs/general/include -I/Users/user/.pyenv/versions/3.7.3/include/python3.7m -c /var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/tmp85eldltt.cpp -o var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/tmp85eldltt.o -stdlib=libc++
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Users/user/.pyenv/versions/3.7.3/envs/general/include -I/Users/user/.pyenv/versions/3.7.3/include/python3.7m -c /var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/tmpkeeyk24l.cpp -o var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/tmpkeeyk24l.o -std=c++14
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Users/user/.pyenv/versions/3.7.3/envs/general/include -I/Users/user/.pyenv/versions/3.7.3/include/python3.7m -c /var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/tmp6od9nzh5.cpp -o var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/tmp6od9nzh5.o -fvisibility=hidden
  building 'fasttext_pybind' extension
  creating build/temp.macosx-10.14-x86_64-3.7
  creating build/temp.macosx-10.14-x86_64-3.7/python
  creating build/temp.macosx-10.14-x86_64-3.7/python/fasttext_module
  creating build/temp.macosx-10.14-x86_64-3.7/python/fasttext_module/fasttext
  creating build/temp.macosx-10.14-x86_64-3.7/python/fasttext_module/fasttext/pybind
  creating build/temp.macosx-10.14-x86_64-3.7/src
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Users/user/.pyenv/versions/3.7.3/envs/general/include/site/python3.7 -I/Users/user/.pyenv/versions/3.7.3/envs/general/include/site/python3.7 -Isrc -I/Users/user/.pyenv/versions/3.7.3/envs/general/include -I/Users/user/.pyenv/versions/3.7.3/include/python3.7m -c python/fasttext_module/fasttext/pybind/fasttext_pybind.cc -o build/temp.macosx-10.14-x86_64-3.7/python/fasttext_module/fasttext/pybind/fasttext_pybind.o -stdlib=libc++ -DVERSION_INFO="0.9.1" -std=c++14 -fvisibility=hidden
  In file included from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:9:
  In file included from src/args.h:14:
  In file included from /usr/local/opt/llvm/bin/../include/c++/v1/unordered_set:363:
  In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__hash_table:19:
  /usr/local/opt/llvm/bin/../include/c++/v1/cmath:314:9: error: no member named 'signbit' in the global namespace
  using ::signbit;
        ~~^
  /usr/local/opt/llvm/bin/../include/c++/v1/cmath:315:9: error: no member named 'fpclassify' in the global namespace
  using ::fpclassify;
        ~~^
  /usr/local/opt/llvm/bin/../include/c++/v1/cmath:316:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
  using ::isfinite;
        ~~^
  /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/math.h:749:12: note: 'finite' declared here
  extern int finite(double)
             ^
  In file included from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:9:
  In file included from src/args.h:14:
  In file included from /usr/local/opt/llvm/bin/../include/c++/v1/unordered_set:363:
  In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__hash_table:19:
  /usr/local/opt/llvm/bin/../include/c++/v1/cmath:317:9: error: no member named 'isinf' in the global namespace
  using ::isinf;
        ~~^
  /usr/local/opt/llvm/bin/../include/c++/v1/cmath:318:9: error: no member named 'isnan' in the global namespace
  using ::isnan;
        ~~^
  /usr/local/opt/llvm/bin/../include/c++/v1/cmath:319:9: error: no member named 'isnormal' in the global namespace
  using ::isnormal;
        ~~^
  /usr/local/opt/llvm/bin/../include/c++/v1/cmath:320:7: error: no member named 'isgreater' in the global namespace; did you mean '::std::greater'?
  using ::isgreater;
        ^~
  /usr/local/opt/llvm/bin/../include/c++/v1/functional:728:29: note: '::std::greater' declared here
  struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
                              ^
  In file included from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:9:
  In file included from src/args.h:14:
  In file included from /usr/local/opt/llvm/bin/../include/c++/v1/unordered_set:363:
  In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__hash_table:19:
  /usr/local/opt/llvm/bin/../include/c++/v1/cmath:321:7: error: no member named 'isgreaterequal' in the global namespace; did you mean '::std::greater_equal'?
  using ::isgreaterequal;
        ^~
  /usr/local/opt/llvm/bin/../include/c++/v1/functional:757:29: note: '::std::greater_equal' declared here
  struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
                              ^
  In file included from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:9:
  In file included from src/args.h:14:
  In file included from /usr/local/opt/llvm/bin/../include/c++/v1/unordered_set:363:
  In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__hash_table:19:
  /usr/local/opt/llvm/bin/../include/c++/v1/cmath:322:9: error: no member named 'isless' in the global namespace
  using ::isless;
        ~~^
  /usr/local/opt/llvm/bin/../include/c++/v1/cmath:323:9: error: no member named 'islessequal' in the global namespace
  using ::islessequal;
        ~~^
  /usr/local/opt/llvm/bin/../include/c++/v1/cmath:324:9: error: no member named 'islessgreater' in the global namespace
  using ::islessgreater;
        ~~^
  /usr/local/opt/llvm/bin/../include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace
  using ::isunordered;
        ~~^
  /usr/local/opt/llvm/bin/../include/c++/v1/cmath:326:9: error: no member named 'isunordered' in the global namespace
  using ::isunordered;
        ~~^
  python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:258:35: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'std::__1::vector<long long, std::__1::allocator<long long> >::size_type' (aka 'unsigned long') [-Wsign-compare]
              for (int32_t i = 0; i < vocab_freq.size(); i++) {
                                  ~ ^ ~~~~~~~~~~~~~~~~~
  python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:272:35: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'std::__1::vector<long long, std::__1::allocator<long long> >::size_type' (aka 'unsigned long') [-Wsign-compare]
              for (int32_t i = 0; i < labels_freq.size(); i++) {
                                  ~ ^ ~~~~~~~~~~~~~~~~~~
  2 warnings and 13 errors generated.
  error: command 'clang' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for fasttext
  Running setup.py clean for fasttext
Failed to build fasttext
Installing collected packages: fasttext
  Running setup.py install for fasttext ... error
    ERROR: Command errored out with exit status 1:
     command: /Users/user/.pyenv/versions/3.7.3/envs/general/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/pip-req-build-85i65a4s/setup.py'"'"'; __file__='"'"'/private/var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/pip-req-build-85i65a4s/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/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/pip-record-k3116_ku/install-record.txt --single-version-externally-managed --compile --install-headers /Users/user/.pyenv/versions/3.7.3/envs/general/include/site/python3.7/fasttext
         cwd: /private/var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/pip-req-build-85i65a4s/
    Complete output (98 lines):
    running install
    running build
    running build_py
    creating build/lib.macosx-10.14-x86_64-3.7
    creating build/lib.macosx-10.14-x86_64-3.7/fasttext
    copying python/fasttext_module/fasttext/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/fasttext
    copying python/fasttext_module/fasttext/FastText.py -> build/lib.macosx-10.14-x86_64-3.7/fasttext
    creating build/lib.macosx-10.14-x86_64-3.7/fasttext/util
    copying python/fasttext_module/fasttext/util/util.py -> build/lib.macosx-10.14-x86_64-3.7/fasttext/util
    copying python/fasttext_module/fasttext/util/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/fasttext/util
    creating build/lib.macosx-10.14-x86_64-3.7/fasttext/tests
    copying python/fasttext_module/fasttext/tests/test_script.py -> build/lib.macosx-10.14-x86_64-3.7/fasttext/tests
    copying python/fasttext_module/fasttext/tests/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/fasttext/tests
    copying python/fasttext_module/fasttext/tests/test_configurations.py -> build/lib.macosx-10.14-x86_64-3.7/fasttext/tests
    running build_ext
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Users/user/.pyenv/versions/3.7.3/envs/general/include -I/Users/user/.pyenv/versions/3.7.3/include/python3.7m -c /var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/tmpq20zwlcr.cpp -o var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/tmpq20zwlcr.o -stdlib=libc++
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Users/user/.pyenv/versions/3.7.3/envs/general/include -I/Users/user/.pyenv/versions/3.7.3/include/python3.7m -c /var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/tmpikymaacw.cpp -o var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/tmpikymaacw.o -std=c++14
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Users/user/.pyenv/versions/3.7.3/envs/general/include -I/Users/user/.pyenv/versions/3.7.3/include/python3.7m -c /var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/tmp79fi9ih9.cpp -o var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/tmp79fi9ih9.o -fvisibility=hidden
    building 'fasttext_pybind' extension
    creating build/temp.macosx-10.14-x86_64-3.7
    creating build/temp.macosx-10.14-x86_64-3.7/python
    creating build/temp.macosx-10.14-x86_64-3.7/python/fasttext_module
    creating build/temp.macosx-10.14-x86_64-3.7/python/fasttext_module/fasttext
    creating build/temp.macosx-10.14-x86_64-3.7/python/fasttext_module/fasttext/pybind
    creating build/temp.macosx-10.14-x86_64-3.7/src
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Users/user/.pyenv/versions/3.7.3/envs/general/include/site/python3.7 -I/Users/user/.pyenv/versions/3.7.3/envs/general/include/site/python3.7 -Isrc -I/Users/user/.pyenv/versions/3.7.3/envs/general/include -I/Users/user/.pyenv/versions/3.7.3/include/python3.7m -c python/fasttext_module/fasttext/pybind/fasttext_pybind.cc -o build/temp.macosx-10.14-x86_64-3.7/python/fasttext_module/fasttext/pybind/fasttext_pybind.o -stdlib=libc++ -DVERSION_INFO="0.9.1" -std=c++14 -fvisibility=hidden
    In file included from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:9:
    In file included from src/args.h:14:
    In file included from /usr/local/opt/llvm/bin/../include/c++/v1/unordered_set:363:
    In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__hash_table:19:
    /usr/local/opt/llvm/bin/../include/c++/v1/cmath:314:9: error: no member named 'signbit' in the global namespace
    using ::signbit;
          ~~^
    /usr/local/opt/llvm/bin/../include/c++/v1/cmath:315:9: error: no member named 'fpclassify' in the global namespace
    using ::fpclassify;
          ~~^
    /usr/local/opt/llvm/bin/../include/c++/v1/cmath:316:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
    using ::isfinite;
          ~~^
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/math.h:749:12: note: 'finite' declared here
    extern int finite(double)
               ^
    In file included from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:9:
    In file included from src/args.h:14:
    In file included from /usr/local/opt/llvm/bin/../include/c++/v1/unordered_set:363:
    In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__hash_table:19:
    /usr/local/opt/llvm/bin/../include/c++/v1/cmath:317:9: error: no member named 'isinf' in the global namespace
    using ::isinf;
          ~~^
    /usr/local/opt/llvm/bin/../include/c++/v1/cmath:318:9: error: no member named 'isnan' in the global namespace
    using ::isnan;
          ~~^
    /usr/local/opt/llvm/bin/../include/c++/v1/cmath:319:9: error: no member named 'isnormal' in the global namespace
    using ::isnormal;
          ~~^
    /usr/local/opt/llvm/bin/../include/c++/v1/cmath:320:7: error: no member named 'isgreater' in the global namespace; did you mean '::std::greater'?
    using ::isgreater;
          ^~
    /usr/local/opt/llvm/bin/../include/c++/v1/functional:728:29: note: '::std::greater' declared here
    struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
                                ^
    In file included from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:9:
    In file included from src/args.h:14:
    In file included from /usr/local/opt/llvm/bin/../include/c++/v1/unordered_set:363:
    In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__hash_table:19:
    /usr/local/opt/llvm/bin/../include/c++/v1/cmath:321:7: error: no member named 'isgreaterequal' in the global namespace; did you mean '::std::greater_equal'?
    using ::isgreaterequal;
          ^~
    /usr/local/opt/llvm/bin/../include/c++/v1/functional:757:29: note: '::std::greater_equal' declared here
    struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
                                ^
    In file included from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:9:
    In file included from src/args.h:14:
    In file included from /usr/local/opt/llvm/bin/../include/c++/v1/unordered_set:363:
    In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__hash_table:19:
    /usr/local/opt/llvm/bin/../include/c++/v1/cmath:322:9: error: no member named 'isless' in the global namespace
    using ::isless;
          ~~^
    /usr/local/opt/llvm/bin/../include/c++/v1/cmath:323:9: error: no member named 'islessequal' in the global namespace
    using ::islessequal;
          ~~^
    /usr/local/opt/llvm/bin/../include/c++/v1/cmath:324:9: error: no member named 'islessgreater' in the global namespace
    using ::islessgreater;
          ~~^
    /usr/local/opt/llvm/bin/../include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace
    using ::isunordered;
          ~~^
    /usr/local/opt/llvm/bin/../include/c++/v1/cmath:326:9: error: no member named 'isunordered' in the global namespace
    using ::isunordered;
          ~~^
    python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:258:35: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'std::__1::vector<long long, std::__1::allocator<long long> >::size_type' (aka 'unsigned long') [-Wsign-compare]
                for (int32_t i = 0; i < vocab_freq.size(); i++) {
                                    ~ ^ ~~~~~~~~~~~~~~~~~
    python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:272:35: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'std::__1::vector<long long, std::__1::allocator<long long> >::size_type' (aka 'unsigned long') [-Wsign-compare]
                for (int32_t i = 0; i < labels_freq.size(); i++) {
                                    ~ ^ ~~~~~~~~~~~~~~~~~~
    2 warnings and 13 errors generated.
    error: command 'clang' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/user/.pyenv/versions/3.7.3/envs/general/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/pip-req-build-85i65a4s/setup.py'"'"'; __file__='"'"'/private/var/folders/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/pip-req-build-85i65a4s/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/_3/5xmnbvq133s33v6135dvlmfr0000gn/T/pip-record-k3116_ku/install-record.txt --single-version-externally-managed --compile --install-headers /Users/user/.pyenv/versions/3.7.3/envs/general/include/site/python3.7/fasttext Check the logs for full command output.

Most helpful comment

Was anyone able to resolve this issue? I've tried all the suggested methods from previous issues, and my clang paths appear to be correct. I am not sure why clang is pointing at MacOSX10.14.sdk since everything else points to MacOSX.sdk (symlinked to MacOSX10.15.sdk).

Update, I deleted the MacOSX10.14.sdk and it appears to work now.

All 5 comments

Even I tried all the fixes mentioned in previous closed issues. But nothing worked for me as well! I am getting the same error as this one! Could someone please look into this? @cpuhrsch

I am encountering exactly same issue after upgrading my Mac to Catalina.

Was anyone able to resolve this issue? I've tried all the suggested methods from previous issues, and my clang paths appear to be correct. I am not sure why clang is pointing at MacOSX10.14.sdk since everything else points to MacOSX.sdk (symlinked to MacOSX10.15.sdk).

Was anyone able to resolve this issue? I've tried all the suggested methods from previous issues, and my clang paths appear to be correct. I am not sure why clang is pointing at MacOSX10.14.sdk since everything else points to MacOSX.sdk (symlinked to MacOSX10.15.sdk).

Update, I deleted the MacOSX10.14.sdk and it appears to work now.

@ciwang where did you delete that SDK from?

Was this page helpful?
0 / 5 - 0 ratings