error on MAC M1
See original GitHub issueHi, I am trying to install PyTorch geometric on MAC M1 12.6, but I’m getting error to install pytorch_sparse. I copied some of the errors below. Can someone point me in the right direction?
@wmeb-4c7 pytorch_sparse % python setup.py install
Compiling without OpenMP...
Compiling without OpenMP...
Compiling without OpenMP...
Compiling without OpenMP...
Compiling without OpenMP...
Compiling without OpenMP...
Compiling without OpenMP...
Compiling without OpenMP...
Compiling without OpenMP...
Compiling without OpenMP...
Compiling without OpenMP...
Compiling without OpenMP...
Compiling without OpenMP...
running install
running bdist_egg
running egg_info
writing torch_sparse.egg-info/PKG-INFO
writing dependency_links to torch_sparse.egg-info/dependency_links.txt
writing requirements to torch_sparse.egg-info/requires.txt
writing top-level names to torch_sparse.egg-info/top_level.txt
reading manifest file 'torch_sparse.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: manifest_maker: MANIFEST.in, line 5: unknown action 'recursive'
adding license file 'LICENSE'
writing manifest file 'torch_sparse.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.9-universal2/egg
running install_lib
running build_py
running build_ext
building 'torch_sparse._spspmm_cpu' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -g -DWITH_PYTHON -Icsrc -Ithird_party/parallel-hashmap -I/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include -I/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/TH -I/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/THC -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c csrc/cpu/spspmm_cpu.cpp -o build/temp.macosx-10.9-universal2-3.10/csrc/cpu/spspmm_cpu.o -O2 -Wno-sign-compare -arch arm64 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_clang" -DPYBIND11_STDLIB="_libcpp" -DPYBIND11_BUILD_ABI="_cxxabi1002" -DTORCH_EXTENSION_NAME=_spspmm_cpu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
In file included from csrc/cpu/spspmm_cpu.cpp:1:
In file included from csrc/cpu/spspmm_cpu.h:3:
In file included from csrc/cpu/../extensions.h:2:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/autograd.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/variable.h:6:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/ATen/Tensor.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/ATen/core/Tensor.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/ATen/core/TensorBody.h:18:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/core/ScalarTypeToTypeMeta.h:4:
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:535:13: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(T) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
In file included from csrc/cpu/spspmm_cpu.cpp:1:
In file included from csrc/cpu/spspmm_cpu.h:3:
In file included from csrc/cpu/../extensions.h:2:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/autograd.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/variable.h:6:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/ATen/Tensor.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/ATen/core/Tensor.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/ATen/core/TensorBody.h:18:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/core/ScalarTypeToTypeMeta.h:4:
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:535:13: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:553:26: note: in instantiation of template type alias 'OptionalBase' requested here
class optional : private OptionalBase<T> {
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:560:15: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(U) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
In file included from csrc/cpu/spspmm_cpu.cpp:1:
In file included from csrc/cpu/spspmm_cpu.h:3:
In file included from csrc/cpu/../extensions.h:2:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/autograd.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/variable.h:6:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/ATen/Tensor.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/ATen/core/Tensor.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/ATen/core/TensorBody.h:18:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/core/ScalarTypeToTypeMeta.h:4:
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:560:15: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:587:12: note: in instantiation of template type alias 'OptionalBase' requested here
return OptionalBase<T>::initialized();
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:560:15: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(U) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:590:27: note: in instantiation of template type alias 'OptionalBase' requested here
return std::addressof(OptionalBase<T>::storage_.value_);
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:560:15: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(U) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:593:38: note: in instantiation of template type alias 'OptionalBase' requested here
return detail_::static_addressof(OptionalBase<T>::storage_.value_);
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:560:15: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(U) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:597:12: note: in instantiation of template type alias 'OptionalBase' requested here
return OptionalBase<T>::storage_.value_;
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:560:15: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(U) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:600:22: note: in instantiation of template type alias 'OptionalBase' requested here
return std::move(OptionalBase<T>::storage_.value_);
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:560:15: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(U) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:603:12: note: in instantiation of template type alias 'OptionalBase' requested here
return OptionalBase<T>::storage_.value_;
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:560:15: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(U) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:609:5: note: in instantiation of template type alias 'OptionalBase' requested here
OptionalBase<T>::setInitialized(false);
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:560:15: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(U) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:617:5: note: in instantiation of template type alias 'OptionalBase' requested here
OptionalBase<T>::setInitialized(true);
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:560:15: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(U) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:625:5: note: in instantiation of template type alias 'OptionalBase' requested here
OptionalBase<T>::setInitialized(true);
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:560:15: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(U) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:632:35: note: in instantiation of template type alias 'OptionalBase' requested here
constexpr optional() noexcept : OptionalBase<T>(){};
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:560:15: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(U) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:633:44: note: in instantiation of template type alias 'OptionalBase' requested here
constexpr optional(nullopt_t) noexcept : OptionalBase<T>(){};
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:560:15: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(U) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:651:31: note: in instantiation of template type alias 'OptionalBase' requested here
constexpr optional(U&& u) : OptionalBase<T>(std::forward<U>(u)) {}
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:560:15: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(U) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:661:40: note: in instantiation of template type alias 'OptionalBase' requested here
explicit constexpr optional(U&& u) : OptionalBase<T>(std::forward<U>(u)) {}
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:560:15: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(U) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:665:9: note: in instantiation of template type alias 'OptionalBase' requested here
: OptionalBase<T>(in_place_t{}, constexpr_forward<Args>(args)...) {}
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:560:15: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(U) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:675:9: note: in instantiation of template type alias 'OptionalBase' requested here
: OptionalBase<T>(in_place_t{}, il, constexpr_forward<Args>(args)...) {}
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:535:13: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(T) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:553:26: note: in instantiation of template type alias 'OptionalBase' requested here
class optional : private OptionalBase<T> {
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/core/ScalarTypeToTypeMeta.h:30:40: note: in instantiation of template class 'c10::optional<c10::ScalarType>' requested here
static inline optional<at::ScalarType> optTypeMetaToScalarType(
.
.
.
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:617:5: note: in instantiation of template type alias 'OptionalBase' requested here
OptionalBase<T>::setInitialized(true);
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:701:7: note: in instantiation of function template specialization 'c10::optional<at::Tensor>::initialize<at::Tensor>' requested here
initialize(std::forward<U>(v));
^
csrc/cpu/spspmm_cpu.cpp:35:21: note: in instantiation of function template specialization 'c10::optional<at::Tensor>::operator=<at::Tensor>' requested here
optional_valueA =
^
In file included from csrc/cpu/spspmm_cpu.cpp:1:
In file included from csrc/cpu/spspmm_cpu.h:3:
In file included from csrc/cpu/../extensions.h:2:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/autograd.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/variable.h:6:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/ATen/Tensor.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/ATen/core/Tensor.h:3:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/ATen/core/TensorBody.h:18:
In file included from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/core/ScalarTypeToTypeMeta.h:4:
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:560:15: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
C10_IS_TRIVIALLY_COPYABLE(U) &&
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:414:38: note: expanded from macro 'C10_IS_TRIVIALLY_COPYABLE'
#define C10_IS_TRIVIALLY_COPYABLE(T) __has_trivial_copy(T)
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:590:27: note: in instantiation of template type alias 'OptionalBase' requested here
return std::addressof(OptionalBase<T>::storage_.value_);
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:616:31: note: in instantiation of member function 'c10::optional<at::Tensor>::dataptr' requested here
::new (static_cast<void*>(dataptr())) T(std::forward<Args>(args)...);
^
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/include/c10/util/Optional.h:701:7: note: in instantiation of function template specialization 'c10::optional<at::Tensor>::initialize<at::Tensor>' requested here
initialize(std::forward<U>(v));
^
csrc/cpu/spspmm_cpu.cpp:35:21: note: in instantiation of function template specialization 'c10::optional<at::Tensor>::operator=<at::Tensor>' requested here
optional_valueA =
^
518 warnings and 1 error generated.
error: command '/opt/homebrew/opt/llvm/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> torch-sparse
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
If an error occurred while updating or installing macOS
The message might say that an error occurred while downloading, preparing, or installing, or that the installer is damaged or could not be ......
Read more >Apple Provides Instructions to Fix macOS Reinstallation Errors ...
If you erased your Mac with Apple M1 chip before updating to macOS Big Sur 11.0.1, you might be unable to reinstall macOS...
Read more >Apple M1 problems and how to fix them - MacPaw
What are the Apple M1 problems? · SSD wear · Intel apps not compatible with M1 apps · Apple M1 memory leaks ·...
Read more >How to Fix MacBook Air M1 Not Turning On Issue - iKream
M1 MacBook stuck on Apple logo screen · Press and hold the power button on your Mac for up to 10 seconds, until...
Read more >Personalization Error on Mac with Apple M1 Chip
Apple has revealed a solution for a personalization issue that users encountered when restoring and reinstalling macOS on a new Mac with the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same issue today as @tnaber I managed to get version 0.6.13 to install correctly which was an effective work around.
Yes, I will craft
0.6.16
soon with this fix. Please install from master in the meanwhile.