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

facing issue while importing setfit classifier #492

Open
Abhaysharma53 opened this issue Feb 13, 2024 · 1 comment
Open

facing issue while importing setfit classifier #492

Abhaysharma53 opened this issue Feb 13, 2024 · 1 comment

Comments

@Abhaysharma53
Copy link

I am facing some issues while trying to import SetFitClassifier

code - from setfit import SetFitClassifier

Error - RuntimeError: Failed to import transformers.trainer_callback because of the following error (look up to see its traceback): module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'.
will be really helpful if anyone can help me to troubleshoot this.

@kgourgou
Copy link

Hi @Abhaysharma53,

Try to upgrade pyopenssl. Here's how:

python -m pip install pip --upgrade
pip install pyopenssl --upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants