pip build fails on mac
Zardinality opened this issue · 2 comments
Zardinality commented
While running pip install pqkmeans
:
[ 28%] Building CXX object CMakeFiles/_pqkmeans.dir/src/clustering/bkmeans.cpp.o
In file included from /private/var/folders/pz/ckv4fct52c7_826fg4x48vgm0000gn/T/pip-install-khtx799x/pqkmeans/src/_pqkmeans.cpp:3:
In file included from /private/var/folders/pz/ckv4fct52c7_826fg4x48vgm0000gn/T/pip-install-khtx799x/pqkmeans/src/encoder/encoder_sample.h:6:
In file included from /private/var/folders/pz/ckv4fct52c7_826fg4x48vgm0000gn/T/pip-install-khtx799x/pqkmeans/ext/pybind/include/pybind11/stl.h:34:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/experimental/optional:18:3: warning: "<experimental/optional> has been removed. Use <optional> instead." [-W#warnings]
# warning "<experimental/optional> has been removed. Use <optional> instead."
^
In file included from /private/var/folders/pz/ckv4fct52c7_826fg4x48vgm0000gn/T/pip-install-khtx799x/pqkmeans/src/_pqkmeans.cpp:3:
In file included from /private/var/folders/pz/ckv4fct52c7_826fg4x48vgm0000gn/T/pip-install-khtx799x/pqkmeans/src/encoder/encoder_sample.h:6:
/private/var/folders/pz/ckv4fct52c7_826fg4x48vgm0000gn/T/pip-install-khtx799x/pqkmeans/ext/pybind/include/pybind11/stl.h:283:46: error: no member named 'experimental' in namespace 'std'
template<typename T> struct type_caster<std::experimental::optional<T>>
~~~~~^
/private/var/folders/pz/ckv4fct52c7_826fg4x48vgm0000gn/T/pip-install-khtx799x/pqkmeans/ext/pybind/include/pybind11/stl.h:283:69: error: 'T' does not refer to a value
template<typename T> struct type_caster<std::experimental::optional<T>>
^
/private/var/folders/pz/ckv4fct52c7_826fg4x48vgm0000gn/T/pip-install-khtx799x/pqkmeans/ext/pybind/include/pybind11/stl.h:283:19: note: declared here
template<typename T> struct type_caster<std::experimental::optional<T>>
^
/private/var/folders/pz/ckv4fct52c7_826fg4x48vgm0000gn/T/pip-install-khtx799x/pqkmeans/ext/pybind/include/pybind11/stl.h:286:36: error: no member named 'experimental' in namespace 'std'
template<> struct type_caster<std::experimental::nullopt_t>
~~~~~^
1 warning and 3 errors generated.
make[2]: *** [CMakeFiles/_pqkmeans.dir/src/_pqkmeans.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/_pqkmeans.dir/all] Error 2
make: *** [all] Error 2
My enviroment details is:
ProductName: Mac OS X
ProductVersion: 10.15
BuildVersion: 19A583
Darwin MacBook-Pro.local 19.0.0 Darwin Kernel Version 19.0.0: Wed Sep 25 20:18:50 PDT 2019; root:xnu-6153.11.26~2/RELEASE_X86_64 x86_64
Hi-king commented
@Zardinality We have updated this library to be available on latest Mac OS (see #33 for more details).
Could you try pip install pqkmeans
again?
Zardinality commented
@Hi-king Thanks for the update. I can report now with pip install pqkmeans==1.04
works for me. A side note is when I use pip install pqkmeans
directly it fails to locate the correct version.
Since the problem is solved now I hereby close this issue.