audeering / opensmile-python

Python package for openSMILE
https://audeering.github.io/opensmile-python/
Other
243 stars 32 forks source link

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

Open ckchandler opened 3 years ago

ckchandler commented 3 years ago

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 commented 3 years ago

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

frankenjoe commented 3 years ago

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).

ckchandler commented 3 years ago

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!