opensmile-python icon indicating copy to clipboard operation
opensmile-python copied to clipboard

AttributeError: module 'opensmile' has no attribute 'core'

Open ckchandler opened this issue 3 years ago • 3 comments

Hi there,

I just downloaded opensmile via pip and ran the line import opensmile and it returned the above error (AttributeError: module 'opensmile' has no attribute 'core')

Not really seeing any documentation around this so any idea what is going on?

Thanks!

Screen Shot 2021-04-05 at 5 01 12 PM

ckchandler avatar Apr 05 '21 23:04 ckchandler

Hmm, after a jupyter notebook restart I am getting this new error, and the same happens from python in my terminal. Same happens after uninstalling and reinstalling via pip. A refresh and I am now getting the original error... very odd!

Screen Shot 2021-04-05 at 5 15 59 PM

ckchandler avatar Apr 05 '21 23:04 ckchandler

Seems like the OSX library we are shipping is not compatible with your system. Could you please try to build libSMILEapi.dylib as described here:

https://github.com/audeering/opensmile#linuxmacos

and then update the file in your virtual environment (the path is shown in the last line of your error message).

frankenjoe avatar Apr 06 '21 06:04 frankenjoe

I went through the mac install and moved the libSMILEapi.dylib file into the directory listed in the last line of my error message (replaced the old one). Restarted jupyter notebook and still getting the same error (as well as from python in my terminal). I can get opensmile to work from the command line now though so I will just proceed that way. Thanks!

ckchandler avatar Apr 06 '21 20:04 ckchandler