Then if you run external python as suggested importing Hou module won't error about jemalloc. As of writing this latest jemalloc is 5.2.1 so worth getting latest and changing bash commands appropriately:
# installing jemalloc wget https://github.com/jemalloc/jemalloc/releases/download/5.1.0/jemalloc-5.1.0.tar.bz2 tar xvjf jemalloc-5.1.0.tar.bz2 cd jemalloc-5.1.0 ./configure make sudo make install # running your app LD_PRELOAD=/usr/local/lib/libjemalloc.so python your_app.py
FYI this is the doc showing how to load hou in external py interpreter: https://www.sidefx.com/docs/houdini/hom/commandline.html [www.sidefx.com]
However DLFCN was deprecated in py 3.6, so just change:
import DLFCN sys.setdlopenflags(old_dlopen_flags | DLFCN.RTLD_GLOBAL)
to:
import ctypes sys.setdlopenflags(old_dlopen_flags | ctypes.RTLD_GLOBAL)