worldveil / dejavu

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

TypeError: numpy boolean subtract, the `-` operator, is deprecated, use the bitwise_xor, the `^` operator, or the logical_xor function instead. #115

Closed andrius closed 7 years ago

andrius commented 7 years ago

Dockerized dejavu (https://github.com/andrius/dejavu-docker), but getting following error


Failed fingerprinting
Traceback (most recent call last):
  File "/dejavu/dejavu/__init__.py", line 77, in fingerprint_directory
    song_name, hashes, file_hash = iterator.next()
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 668, in next
    raise value
TypeError: numpy boolean subtract, the `-` operator, is deprecated, use the bitwise_xor, the `^` operator, or the logical_xor function instead.```

Shall I use some old numpy version to get stuff working?
andrius commented 7 years ago

Fixed now, you could investigate my Dockerfile too :) No issues, please close!

adong77 commented 7 years ago

Try with old numpy version:

$sudo pip install numpy==1.10.0.
x011 commented 5 years ago

Try with old numpy version:

$sudo pip install numpy==1.10.0.

It does fix the error, but I'd rather use: pip install numpy==1.10.0. --user