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 when using sentiment analysis #28

Closed
DigitalSport opened this issue Jan 27, 2021 · 2 comments
Closed

Error when using sentiment analysis #28

DigitalSport opened this issue Jan 27, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@DigitalSport
Copy link

The error info is listed below:

st=sentiment.SentimentNew()
Traceback (most recent call last):

File "", line 1, in

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nlpir/native/sentiment.py", line 22, in init

super().__init__(encode, lib_path, data_path, license_code)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nlpir/native/nlpir_base.py", line 132, in init

self.lib_nlpir, self.lib_path = self.load_library(sys.platform)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nlpir/native/nlpir_base.py", line 224, in load_library

lib_nlpir = ctypes.cdll.LoadLibrary(lib)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ctypes/init.py", line 426, in LoadLibrary

return self._dlltype(name)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ctypes/init.py", line 348, in init

self._handle = _dlopen(self._name, mode)

OSError: dlopen(/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nlpir/lib/libSentimentNewdarwin.so, 6): no suitable image found. Did find:

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nlpir/lib/libSentimentNewdarwin.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/nlpir/lib/libSentimentNewdarwin.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x0
@yangyaofei yangyaofei added the bug Something isn't working label Jan 27, 2021
@yangyaofei
Copy link
Collaborator

Reproduce bug in newest version.

It's a bug from https://github.com/NLPIR-team/NLPIR, reported and will update when update of upstream.

yangyaofei added a commit that referenced this issue Jan 29, 2021
@yangyaofei
Copy link
Collaborator

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants