Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FlupFlip opened this issue Oct 26, 2022 · 4 comments
Open

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

FlupFlip opened this issue Oct 26, 2022 · 4 comments

Comments

@FlupFlip
Copy link

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
Copy link

NathanielCustom commented Oct 26, 2022

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
Copy link
Author

FlupFlip commented Dec 1, 2022

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
Copy link
Author

FlupFlip commented Dec 1, 2022

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

@NathanielCustom
Copy link

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_to_directory) 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants