Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ImportError: dlopen: cannot load any more object with static TLS" solution #21411

Open
Darling-945 opened this issue Jan 8, 2022 · 0 comments

Comments

@Darling-945
Copy link

-OpenCV => 4.5.4

  • Operating System / Platform => CentOS 7.4
    • Compiler =>Anaconda3+Pytorch1.10.1+cu113

If you use pytorch and import the opencv package: "ImportError: dlopen: cannot load any more object with static TLS"
You should check whether the gcc and glibc packages of the current Linux/Unix system are the latest versions

Problem solved after upgrading gcc from 4.x to 9.3.0 and glibc from 2.17 to 2.31

However, I didn't find the requirement statement about gcc and glibc version in init.py of cv2 (or maybe I just didn't find it), but I still hope to add a statement for the version requirement of gcc or glibc in the code file

@Darling-945 Darling-945 changed the title ImportError: dlopen: cannot load any more object with static TLS error resolution "ImportError: dlopen: cannot load any more object with static TLS" solution Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants