HKUST-KnowComp / GEIA

Code for Findings-ACL 2023 paper: Sentence Embedding Leaks More Information than You Expect: Generative Embedding Inversion Attack to Recover the Whole Sentence
MIT License
40 stars 12 forks source link

ImportError: dlopen: cannot load any more object with static TLS #3

Open gao1948083886 opened 10 months ago

gao1948083886 commented 10 months ago

When I run the code, the error appears:

ImportError: dlopen: cannot load any more object with static TLS

It seems that scikit-learn has not been built correctly.

If you have installed scikit-learn from source, please do not forget to build the package before using it: run python setup.py install or make in the source directory.

If you have used an installer, please check that it is suited for your Python version, your operating system and your platform.

So, what version of the library do you use to run your code? Can you give me a requirements.txt file? Thank you so much

teapotliid commented 10 months ago

Hi Gao, I think most dependencies work fine for the code. For my sklearn, my environment shows I am using:

scikit-learn 1.0.2

I reuse the environment and update a few packages and cannot remember the previous version. Maybe you can try to correctly install the package and see if it works?