worldveil / dejavu

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

run_tests.py: error: the following arguments are required src #283

Open FlupFlip opened 1 year ago

FlupFlip commented 1 year ago

I’m a college student trying to use dejavu package for our team 4th year project. I’m having this “src” problem that doesn’t know how to deal with, any clue? 7E6D2C22-EA40-4F24-96A3-878C3CEA581F

NathanielCustom commented 1 year ago

It has been a long time since I've played with Dejavu, but it looks like you need to execute run_tests.py with arguments; one of which points to the location of your audio files. If you are open to suggestion, I would recommend directing your attention toward test_dejavu.sh and reread the readme.

FlupFlip commented 1 year ago

It has been a long time since I've played with Dejavu, but it looks like you need to execute run_tests.py with arguments; one of which points to the location of your audio files. If you are open to suggestion, I would recommend directing your attention toward test_dejavu.sh and reread the readme.

Thanks for the last time. We tried what you had told us, but we got the another problems with dejavu. Can you look into it, please? C684DC10-F0BE-4437-AE01-055C3AFB4EE3

FlupFlip commented 1 year ago

Another question, what is ./mp3 folder? Do we need to create the file?

NathanielCustom commented 1 year ago

First Question Lines 166, indicates that you need to pass an argument for src.

image

Line 161 tells us that src is a folder path where the audio files are stored.

image

I can't see what is past line 24 of your code, but it is likely that the src has not been specified.

Second Question Line 11 of your code calls dejavu.py with three arguments (-f ./mp3/ mp3). When I look at dejavu.py I find lines 37-41, where the -f tells Dejavu to fingerprint files from a directory. Line 40 details that the next two arguments specify the folder where the files are located _(_path_todirectory)_ and the extension of the files (extension).

image

Based on your code, you will need an mp3 folder in the same folder that dejavu.py is being executed from. Then within the mp3 folder are your music files.