While running a object detection+tracking project using the Ultralytics package on the Jetson Nano, I get the following error:
ImportError: /home/nikhil/detect/lib/python3.8/site-packages/torch/lib/…/…/torch.libs/libgomp-6e1a1d1b.so.1.0.0: cannot allocate memory in static TLS block
How do I resolve this?
I have tried getting exporting the path:
export LD_PRELOAD=/home/aurelien/.local/lib/python3.6/site-packages/sklearn/__check_build/../../scikit_learn.libs/libgomp-d22c30c5.so.1.0.0
and
export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libgomp.so.1
but this did not help fix the error.
Kind Regards.
Hi,
export LD_PRELOAD=/home/aurelien/.local/lib/python3.6/site-packages/sklearn/__check_build/../../scikit_learn.libs/libgomp-d22c30c5.so.1.0.0
This path is for Python 3.6. Since you are using Python 3.8, this is not correct.
export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libgomp.so.1
This should work but have you checked if the library does exist in your environment?
Thanks.
I’ve tried the command above too, it does not resolve the error.
@AastaLLL Are you referring to the libgomp (GOMP) library above? If yes, how to I verify if it is installed correctly?
I tried running locate libgomp
and got the error command not found.
How do I install libgomp? (on Ubuntu 18.04 ; JetPack 4.6.1 ; Python 3.8)
@AastaLLL I cannot find libgomp-6e1a1d1b.so.1.0.0 under the path ImportError: /home/nikhil/detect/detect/lib/python3.8/site-packages/torch/lib/…/…/torch.libs/libgomp-6e1a1d1b.so.1.0.0: cannot allocate memory in static TLS block
@AastaLLL Pls refer to the image below. I’m running a single line of code from ultralytics import YOLO
and getting the error below:
@AastaLLL Request you to pls help me resolve this error.
Hi,
Could you give it a try outside of the virtual environment?
Moreover, please check if the libgomp.so.1
exists in your environment by finding:
$ sudo find / -iname libgomp.so.1
/usr/lib/aarch64-linux-gnu/libgomp.so.1
Thanks.
@AastaLLL
Thank You it worked.
system
Closed
March 14, 2024, 5:03am
11
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.