📅 2017-Jun-09 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ caffe2, dlopen, error, python ⬩ 📚 Archive
I had a Python script that used Caffe2. It worked fine on one computer. On another computer with same setup, it would fail at the
import caffe2.python line with this error:
WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode. WARNING:root:Debug message: dlopen: cannot load any more object with static TLS CRITICAL:root:Cannot load caffe2.python. Error: dlopen: cannot load any more object with static TLS
As I mentioned above, the GPU support warning is a red herring cause this Caffe2 Python was built with GPU support. The real error is the dlopen.
The only solution from Googling that gave a clue was this. As suggested there, I placed the
import caffe2.python line at the top above all other imports. The error disappeared.
Tried with: Ubuntu 14.04