Docker container gives import error for custom python package

I am trying to import custom python package in docker image but it was throwing error message as follow

Docker building log-

Step 9/15 : RUN python -c 'import CustomModule ’
—> Running in 04fed368fb17
Traceback (most recent call last):
File “”, line 1, in
ImportError: /usr/src/app/CustomModule.cpython-35m-x86_64-linux-gnu.so: undefined symbol: PyFPE_jbuf

Please help me out

Thanks in advance.

Please suggest any idea to fix it.

In case someone else comes here, https://stackoverflow.com/questions/36190757/numpy-undefined-symbol-pyfpe-jbuf could be more helpful.