Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pybind error when compilation and installation. #24

Closed
qingqing01 opened this issue Aug 23, 2019 · 5 comments
Closed

Pybind error when compilation and installation. #24

qingqing01 opened this issue Aug 23, 2019 · 5 comments

Comments

@qingqing01
Copy link

/root/miniconda3/envs/py3-mink/lib/python3.7/site-packages/torch/include/pybind11/pybind11.h:1404:26: error: no matching function for call to ‘pybind11::cpp_function::cpp_function(pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>, pybind11::is_method)’
}, is_method(m_base)
^

Env:

Python 3.7
CUDA 9.0

>>> import torch
>>> print(torch.__version__)
1.2.0

@qingqing01 qingqing01 changed the title Pybind error when compling and install. Pybind error when compilation and installation. Aug 23, 2019
@chrischoy
Copy link
Contributor

Could you put the complete compilation log on the paste bin and add the link when you run the following commands?

make clean
make
python setup.py install

@qingqing01
Copy link
Author

Thanks! Aftern make clean, the make, error is:

CXX src/pruning.cpp
NVCC src/voxelization.cu
NVCC src/pruning.cu
NVCC src/pooling_avg.cu
NVCC src/math_functions.cu
NVCC src/gpu.cu
NVCC src/convolution.cu
/root/miniconda3/envs/py3-mink/lib/python3.7/site-packages/torch/include/pybind11/pytypes.h:1205:206: error: expansion pattern 'pybind11::detail::negation<std::is_same<pybind11::detail::bools<pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value ..., pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value ..., true>, pybind11::detail::bools<true, pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value ..., pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value ...> > >::value' contains no argument packs
/root/miniconda3/envs/py3-mink/lib/python3.7/site-packages/torch/include/pybind11/pytypes.h:1205:215: error: template argument 1 is invalid
/root/miniconda3/envs/py3-mink/lib/python3.7/site-packages/torch/include/pybind11/pytypes.h:1205:392: error: expansion pattern 'pybind11::detail::negation<std::is_same<pybind11::detail::bools<pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value ..., pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value ..., true>, pybind11::detail::bools<true, pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value ..., pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value ...> > >::value' contains no argument packs
/root/miniconda3/envs/py3-mink/lib/python3.7/site-packages/torch/include/pybind11/pytypes.h:1205:395: error: template argument 2 is invalid
/root/miniconda3/envs/py3-mink/lib/python3.7/site-packages/torch/include/pybind11/pytypes.h:1205:397: error: template argument 1 is invalid
/root/miniconda3/envs/py3-mink/lib/python3.7/site-packages/torch/include/pybind11/pytypes.h:1205:397: error: template argument 2 is invalid
/root/miniconda3/envs/py3-mink/lib/python3.7/site-packages/torch/include/pybind11/pytypes.h:1205:412: error: template argument 1 is invalid
/root/miniconda3/envs/py3-mink/lib/python3.7/site-packages/torch/include/pybind11/cast.h:776:149: error: expansion pattern 'std::is_copy_constructible<_Tp>::value' contains no argument packs
/root/miniconda3/envs/py3-mink/lib/python3.7/site-packages/torch/include/pybind11/cast.h:776:240: error: expansion pattern 'std::is_same<typename Container::value_type&, typename Container::reference>::value' contains no argument packs
/root/miniconda3/envs/py3-mink/lib/python3.7/site-packages/torch/include/pybind11/cast.h:776:249: error: template argument 1 is invalid
/root/miniconda3/envs/py3-mink/lib/python3.7/site-packages/torch/include/pybind11/cast.h:776:249: error: template argument 2 is invalid
/root/miniconda3/envs/py3-mink/lib/python3.7/site-packages/torch/include/pybind11/cast.h:776:312: error: expansion pattern 'std::is_copy_constructible<_Tp>::value' contains no argument packs

@chrischoy
Copy link
Contributor

Similar error message was found on a torch issue page.

I've made the change on the issue24 branch. Could you follow the instruction at the bottom and let me know if it worked?

cd /path/to/MinkowskiEngine
git pull
git checkout issue24
make clean
python setup.py install

@qingqing01
Copy link
Author

qingqing01 commented Aug 28, 2019

Follow the instruction, there is still error:

(py3-mink) MinkowskiEngine# git branch
* issue24
  master
NVCC src/gpu.cu
NVCC src/convolution.cu
NVCC src/broadcast.cu
NVCC src/pooling_max.cu

/root/miniconda3/envs/py3-mink/lib/python3.7/site-packages/torch/include/pybind11/pytypes.h:1205:206: error: expansion pattern ‘pybind11::detail::negation<std::is_same<pybind11::detail::bools<pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value ..., pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value ..., true>, pybind11::detail::bools<true, pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value ..., pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value ...> > >::value’ contains no argument packs
/root/miniconda3/envs/py3-mink/lib/python3.7/site-packages/torch/include/pybind11/pytypes.h:1205:215: error: template argument 1 is invalid
/root/miniconda3/envs/py3-mink/lib/python3.7/site-packages/torch/include/pybind11/pytypes.h:1205:392: error: expansion pattern ‘pybind11::detail::negation<std::is_same<pybind11::detail::bools<pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value ..., pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value ..., true>, pybind11::detail::bools<true, pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value ..., pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value ...> > >::value’ contains no argument packs
/root/miniconda3/envs/py3-mink/lib/python3.7/site-packages/torch/include/pybind11/pytypes.h:1205:395: error: template argument 2 is invalid

@chrischoy
Copy link
Contributor

Hmm, one of the issue pages suggested installing CUDA 10, and the installing pytorch with cuda 10. Could you try to install CUDA 10 and put the result here? Thanks!

# install CUDA 10
conda install pytorch torchvision cudatoolkit=10.0 -c pytorch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants