MTG / gaia

C++ library to apply similarity measures and classifications on the results of audio analysis, including Python bindings. Together with Essentia it can be used to compute high-level descriptions of music.
http://essentia.upf.edu
GNU Affero General Public License v3.0
271 stars 66 forks source link

OSX: Fatal Python error: PyThreadState_Get: no current thread #82

Open heilers opened 6 years ago

heilers commented 6 years ago

Hi, i'm trying to train models with the "train_model_from_sigs.py" script, but after

Creating classification project /usr/local/Cellar/essentia/HEAD-3dc5016/bin/spoken/sigs/sigs.project Successfully written /usr/local/Cellar/essentia/HEAD-3dc5016/bin/spoken/sigs/sigs.project INFO ClassificationTaskManager | Merging original base dataset... [ INFO ] Processing jobs number from 0 to 5 included (out of 6 without duplicate ids) [ INFO ] Will run using 8 threads Merging file [6/6] (100% done) [ INFO ] All jobs finished, merging into dataset Saving dataset... Dataset successfully saved!

i get this error:

Fatal Python error: PyThreadState_Get: no current thread

I'm using python 2.7 installed with homebrew. Any ideas?

Thanks in advance! Best

sildeag commented 6 years ago

I don't have OSX but here's an idea: Look at Aug 8, 2017 comment https://github.com/caffe2/caffe2/issues/854 and Feb 9 comment. It is also an issue addressed on StackOverflow.

heilers commented 6 years ago

Hi sildeag, thanks for your help, but it knew this link. It could be a problem between the build in python and the brew version. But I couldn't figure it out. I changed to Linux, and everything works now :)

Best Hendrik