worldveil / dejavu

Audio fingerprinting and recognition in Python
MIT License
6.36k stars 1.43k forks source link

Limit numpy version #161

Closed fpSpindola closed 4 years ago

fpSpindola commented 6 years ago

Numpy must be limited to version 1.13.1 (Python 2.7 environment) I'm using numpy 1.14.5 has a different syntax for https://github.com/worldveil/dejavu/blob/master/dejavu/fingerprint.py#L104

Error:

detected_peaks = local_max - eroded_background TypeError: numpy boolean subtract, the - operator, is deprecated, use the bitwise_xor, the ^ operator, or the logical_xor function instead.

JPery commented 5 years ago

Numpy version 1.13.3 is also working