# Error while trying to build module using pyBind

**URL:** <https://discuss.pytorch.org/t/error-while-trying-to-build-module-using-pybind/87189>\
**Category:** C++\
**Created:** [June 28, 2020, 11:19am UTC](https://discuss.pytorch.org/t/error-while-trying-to-build-module-using-pybind/87189 "2020-06-28T11:19:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chinmay5](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/chinmay5/32/12682_2.png) [@chinmay5](https://discuss.pytorch.org/u/chinmay5)\
**Post date:** [June 28, 2020, 11:19am UTC](https://discuss.pytorch.org/t/error-while-trying-to-build-module-using-pybind/87189/1 "2020-06-28T11:19:13Z")

</div>

I am trying to build a module which uses C++ code for non max suppression and using pyBind in order to use it with PyTorch. However, while trying to import the module, I get the following error.

```auto
ImportError: /home/chinmay/Desktop/setup/temp/lib/python3.6/site-packages/
special_layers-0.1-py3.6-linux-x86_64.egg/nms_bridge_sample.cpython-36m-x86_64-linux-gnu.so:
undefined symbol:
ZN6caffe28TypeMeta21_typeMetaDataInstanceIN3c107complexIfEEEEPKNS_6
detail12TypeMetaDataEv

```

I have already created a new virtual environment and installed pyTorch but the error still remains. I tried it on pyTorch 1.5.1 and Ubuntu 18.04
