worldveil / dejavu

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

not able to run, Failed to pin #55

Closed ebin123456 closed 10 years ago

ebin123456 commented 10 years ago

my code is

if __name__ == '__main__':
    from dejavu import Dejavu
    con = {
    "database": {
        "host": "127.0.0.1",
        "user": "root",
        "passwd": "", 
        "db": "dejavu"
    }
}
    djv = Dejavu(con)
    djv.fingerprint_directory("mp3", [".mp3"], 3)
Failed fingerprinting

Traceback (most recent call last):

File "C:\Users\user\Desktop\dejavu\dejavu\__init__.py", line 74, in fingerprint_directory

song_name, hashes = iterator.next()

 File "C:\Python27\lib\multiprocessing\pool.py", line 659, in next

  raise value

WindowsError: [Error 2] The system cannot find the file specified

checked database,files in mp3 folder and its ok, i am using python 2.7 and installed all dependencies

worldveil commented 10 years ago

As mentioned in the README, I have not tested this on Windows. Multiprocessing has some quirks there which may break the fingerprint_directory() call.

I honestly haven't had a compelling reason to support Windows.

If enough people want it, they can submit a PR. I'd consider it so long as it doesn't effect the performance on Unix, which is my primary priority.