You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone,
I tried to install kenlm on MacOS using pip install kenlm but I got the following error:
Collecting kenlm
Using cached kenlm-0.2.0.tar.gz (427 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: kenlm
Building wheel for kenlm (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for kenlm (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [749 lines of output]
Will build with KenLM max_order set to 6
running bdist_wheel
running build
running build_ext
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is AppleClang 15.0.0.15000309
-- The CXX compiler identification is AppleClang 15.0.0.15000309
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at python/BuildStandalone.cmake:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
CMakeLists.txt:31 (include)
-- Found ZLIB: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/lib/libz.tbd (found version "1.2.12")
-- Found BZip2: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/lib/libbz2.tbd (found version "1.0.8")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Looking for lzma_auto_decoder in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/lib/liblzma.tbd
-- Looking for lzma_auto_decoder in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/lib/liblzma.tbd - found
-- Looking for lzma_easy_encoder in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/lib/liblzma.tbd
-- Looking for lzma_easy_encoder in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/lib/liblzma.tbd - found
-- Looking for lzma_lzma_preset in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/lib/liblzma.tbd
-- Looking for lzma_lzma_preset in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/lib/liblzma.tbd - found
-- Found LibLZMA: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/lib/liblzma.tbd (found version "5.6.2")
-- Configuring done (2.5s)
-- Generating done (0.0s)
-- Build files have been written to: /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/build/temp.macosx-10.9-x86_64-cpython-38
[ 9%] Building CXX object CMakeFiles/kenlm.dir/lm/bhiksha.cc.o
[ 9%] Building CXX object CMakeFiles/kenlm.dir/lm/binary_format.cc.o
[ 9%] Building CXX object CMakeFiles/kenlm.dir/lm/config.cc.o
[ 9%] Building CXX object CMakeFiles/kenlm.dir/lm/lm_exception.cc.o
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/bhiksha.cc:1:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/bhiksha.hh:17:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/trie.hh:5:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/word_index.hh:5:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/climits:46:5: error: <climits> tried including <limits.h> but didn't find libc++'s <limits.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
# error <climits> tried including <limits.h> but didn't find libc++'s <limits.h> header. \
^
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/binary_format.cc:1:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/binary_format.hh:4In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/lm_exception.cc:1:
In file included from :
/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/lm_exception.hhIn file included from In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/config.cc/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/config.hh::4:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/lm_exception.hh:16:
In file included from :
/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/exception.hhIn file included from :/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/config.hh4::
4In file included from :
/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_stream.hhIn file included from :/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/lm_exception.hh4:6::
6:
In file included from In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/fake_ostream.hh/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/exception.hh::44:
:
In file included from In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/float_to_string.hh/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_stream.hh:5:
:
In file included from :/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/integer_to_string.hh:3:
In file included from 4/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/exception.hh/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/cstddef::446:
:In file included from :
/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_stream.hhIn file included from 5: :/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/fake_ostream.hherror: 4<cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.:
4:
:
In file included from In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/float_to_string.hh:/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/fake_ostream.hh:4:
5In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/float_to_string.hh:
:In file included from 5/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/integer_to_string.hh:
:In file included from 3/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/integer_to_string.hh:
:3:
# error <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. \
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/cstddef ^:
46:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/cstddef5::46 :error: 5<cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
: error: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
# error <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. \
^
# error <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. \
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/cstddef:59:9: error: no member named 'nullptr_t' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/cstddef:using ::nullptr_t;59
: ~~^9
: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/cstddef:59:9: error: no member named 'nullptr_t' in the global namespace
using ::nullptr_t;
~~^
error: no member named 'nullptr_t' in the global namespace
using ::nullptr_t;
~~^
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/config.cc:1:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/config.hh:4:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/lm_exception.hh:6In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/binary_format.cc:1:
:
In file included from In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/exception.hh:/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/lm_exception.ccIn file included from :14:
In file included from :
/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/lm_exception.hhIn file included from :/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_stream.hh6:/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/binary_format.hh4::
In file included from 4:
In file included from :
/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/config.hh/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/fake_ostream.hh:In file included from :/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/exception.hh:644:
:
In file included from In file included from :
/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/lm_exception.hhIn file included from :/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_piece.hh6:/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_stream.hh::
534:
In file included from :
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/exception.hh/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/cstring::466:
:In file included from 5/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/fake_ostream.hh:/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_stream.hh:6::
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_piece.hh:453:
error: :
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/cstring<cstring> tried including <string.h> but didn't find libc++'s <string.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.:
66/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/fake_ostream.hh::56::
In file included from error: /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_piece.hh<cstring> tried including <string.h> but didn't find libc++'s <string.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
:53:
# error <cstring> tried including <string.h> but didn't find libc++'s <string.h> header. \/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/cstring
:66 ^:
5: error: <cstring> tried including <string.h> but didn't find libc++'s <string.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
# error <cstring> tried including <string.h> but didn't find libc++'s <string.h> header. \
^
# error <cstring> tried including <string.h> but didn't find libc++'s <string.h> header. \
^
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/bhiksha.cc:1:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/bhiksha.hh:17:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/trie.hh:6:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/bit_packing.hh:31:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/cstring:66:5: error: <cstring> tried including <string.h> but didn't find libc++'s <string.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
# error <cstring> tried including <string.h> but didn't find libc++'s <string.h> header. \
^
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/bhiksha.cc:1:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/bhiksha.hh:17:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/trie.hh:8:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/cstddef:46:5: error: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
# error <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. \
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/cstddef:59:9: error: no member named 'nullptr_t' in the global namespace
using ::nullptr_t;
~~^
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/bhiksha.cc:1:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/bhiksha.hh:19:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/sorted_uniform.hh:4:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/algorithm:1744:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__algorithm/adjacent_find.h:14:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__algorithm/iterator_operations.h:13:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__algorithm/ranges_iterator_concept.h:13:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__iterator/concepts.h:16:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__concepts/constructible.h:13:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__concepts/destructible.h:13:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__type_traits/is_nothrow_destructible.h:16:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__type_traits/is_scalar.h:17:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h:26:28: error: use of undeclared identifier 'nullptr_t'
struct __is_nullptr_t_impl<nullptr_t> : public true_type {};
^
In file included from In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/config.cc:1/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/lm_exception.cc:1:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/lm_exception.hh:6:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/exception.hh:4:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_stream.hh:4:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/fake_ostream.hh:
:6:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/config.hh:In file included from 4:
/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_piece.hhIn file included from :/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/lm_exception.hh55::
6In file included from :
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/ostreamIn file included from :/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/exception.hh170::
4In file included from :
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/shared_ptr.hIn file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_stream.hh::22:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/allocation_guard.h:154:
In file included from :
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/allocator_traits.hIn file included from :/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/fake_ostream.hh14::
6In file included from :
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/construct_at.hIn file included from :/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_piece.hh23::
55In file included from :
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/newIn file included from :/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/ostream99::
170/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/cstdlib:
:In file included from 90/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/shared_ptr.h::522::
In file included from error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/allocation_guard.h<cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/construct_at.h:23:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/new:99:
# error <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. \/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/cstdlib
: ^90
:5: error: <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/binary_format.cc:1:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/binary_format.hh:4:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/config.hh# error <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. \
: ^
4:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/lm_exception.hh:6:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/exception.hh:4:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_stream.hh:4:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/fake_ostream.hh:6:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_piece.hh:55:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/ostream:170:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/shared_ptr.h:22:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/allocation_guard.h:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/construct_at.h:23:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/new:99:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/cstdlib:90:5: error: <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
# error <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. \
^
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/lm_exception.cc:1:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/lm_exception.hh:6:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/exception.hh:4:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_stream.hh:4:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/fake_ostream.hh:6:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_piece.hh:55:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/ostream:170:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/shared_ptr.h:In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/config.cc:1:
In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/config.hh22:4:
:
In file included from In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/lm_exception.hh/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/binary_format.cc::6In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/allocation_guard.h:
1In file included from :/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/exception.hh15::
4In file included from :
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/__memory/allocator_traits.h:
In file included from In file included from /private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/../util/string_stream.hh/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-install-2obuxbju/kenlm_05bd55141d8b4074bac5c7245f0b00dd/lm/binary_format.hh:::4414:
:
...
File "/private/var/folders/v9/9psw4j7x6nx9vjnl5ncfdzh00000gp/T/pip-build-env-y5ztauh2/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "<string>", line 107, in run
File "/Users/AMF/opt/anaconda3/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j4']' returned non-zero exit status 2.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for kenlm
Failed to build kenlm
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (kenlm)
Do you have any idea why this is happened?
The text was updated successfully, but these errors were encountered:
Hi everyone,
I tried to install
kenlm
on MacOS usingpip install kenlm
but I got the following error:...
Do you have any idea why this is happened?
The text was updated successfully, but these errors were encountered: