I am having issues using dejavu without docker and I don't know why. I'm not being able to trace the error. Could someone help me with this?
Here is what terminal prints out:
python3 song-recognition-test.py
test/000/000209.mp3
Failed fingerprinting
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.7/3.7.10_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/Volumes/2 TB (MAC)/4 - WORK/TFG/dejavu/dejavu/__init__.py", line 241, in _fingerprint_worker
fingerprints, file_hash = Dejavu.get_file_fingerprints(file_name, limit, print_output=True)
File "/Volumes/2 TB (MAC)/4 - WORK/TFG/dejavu/dejavu/__init__.py", line 247, in get_file_fingerprints
channels, fs, file_hash = decoder.read(file_name, limit)
File "/Volumes/2 TB (MAC)/4 - WORK/TFG/dejavu/dejavu/logic/decoder.py", line 108, in read
audiofile = AudioSegment.from_file(file_name)
File "/usr/local/lib/python3.7/site-packages/pydub/audio_segment.py", line 685, in from_file
info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)
File "/usr/local/lib/python3.7/site-packages/pydub/utils.py", line 279, in mediainfo_json
info = json.loads(output)
File "/usr/local/Cellar/python@3.7/3.7.10_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/local/Cellar/python@3.7/3.7.10_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/Cellar/python@3.7/3.7.10_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Volumes/2 TB (MAC)/4 - WORK/TFG/dejavu/dejavu/__init__.py", line 102, in fingerprint_directory
song_name, hashes, file_hash = next(iterator)
File "/usr/local/Cellar/python@3.7/3.7.10_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/pool.py", line 748, in next
raise value
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I am having issues using dejavu without docker and I don't know why. I'm not being able to trace the error. Could someone help me with this?
Here is what terminal prints out: