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

Overflowerror #2

Open
ghost opened this issue Mar 7, 2020 · 0 comments
Open

Overflowerror #2

ghost opened this issue Mar 7, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 7, 2020

Hi, when executing the code, it fails on every track with an Overflowerror

/home/xxx/Music/03 Can't Stop Playing (Amsterdam Funk Remix).mp3
Usage: 

$ python main.py learn <path to audio file>
$ python main.py learn <directory containing audio files>
$ python main.py listen <time in seconds> <sound device index>
$ python main.py search <path to clip>
Traceback (most recent call last):
  File "main.py", line 8, in <module>
    su.learn_songs(sys.argv[2])
  File "/home/xxx/audiophile/src/sound_util.py", line 53, in learn_songs
    learn_song(filename)
  File "/home/xxx/audiophile/src/sound_util.py", line 46, in learn_song
    db.store(addresses, times, hash_metadata(filename, tags), name)
  File "/home/xxx/audiophile/src/db.py", line 21, in store
    (addresses[i], (song_hash << 13) + times[i]))
OverflowError: Python int too large to convert to SQLite INTEGER

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 22, in <module>
    raise Exception
Exception

Would you be so kind to help me out?!
Thx in advance

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

0 participants