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

Error on import flair in "Sentiment with Flair" #22

Open
shantimohan opened this issue Dec 12, 2022 · 0 comments
Open

Error on import flair in "Sentiment with Flair" #22

shantimohan opened this issue Dec 12, 2022 · 0 comments

Comments

@shantimohan
Copy link

I am getting the following error:

OSError                                   Traceback (most recent call last)
<ipython-input-1-911909092dfc> in <module>
----> 1 import flair
      2 model = flair.models.TextClassifier.load('en-sentiment')

C:\ProgramData\Anaconda3\envs\ml\lib\site-packages\flair\__init__.py in <module>
      1 import os
----> 2 import torch
      3 from pathlib import Path
      4 from transformers import set_seed as hf_set_seed
      5 

C:\ProgramData\Anaconda3\envs\ml\lib\site-packages\torch\__init__.py in <module>
    126                 err = ctypes.WinError(last_error)
    127                 err.strerror += f' Error loading "{dll}" or one of its dependencies.'
--> 128                 raise err
    129             elif res is not None:
    130                 is_loaded = True

OSError: [WinError 127] The specified procedure could not be found. Error loading "C:\ProgramData\Anaconda3\envs\ml\lib\site-packages\torch\lib\caffe2_detectron_ops.dll" or one of its dependencies.

The file C:\ProgramData\Anaconda3\envs\ml\lib\site-packages\torch\lib\caffe2_detectron_ops.dll is present in that directory.
I have flair 0.8 version.

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

1 participant