sergree / matchering

🎚️ Open Source Audio Matching and Mastering
https://pypi.org/project/matchering/
GNU General Public License v3.0
1.33k stars 156 forks source link

OSError: sndfile library not found #9

Closed GoodnessEzeokafor closed 4 years ago

GoodnessEzeokafor commented 4 years ago

Get this error when running heroku run python manage.py makemigrations Heroku Deployment it works fine locally

GoodnessEzeokafor commented 4 years ago

2020-02-03T15:54:06.953486+00:00 app[web.1]: from . import views 2020-02-03T15:54:06.953488+00:00 app[web.1]: File "/app/account/views.py", line 17, in 2020-02-03T15:54:06.953490+00:00 app[web.1]: import matchering as mg 2020-02-03T15:54:06.953491+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/matchering/init.py", line 26, in 2020-02-03T15:54:06.953493+00:00 app[web.1]: from .results import Result, pcm16, pcm24 2020-02-03T15:54:06.953495+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/matchering/results.py", line 22, in 2020-02-03T15:54:06.953497+00:00 app[web.1]: import soundfile as sf 2020-02-03T15:54:06.953499+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/soundfile.py", line 142, in 2020-02-03T15:54:06.953501+00:00 app[web.1]: raise OSError('sndfile library not found') 2020-02-03T15:54:06.953511+00:00 app[web.1]: OSError: sndfile library not found

GoodnessEzeokafor commented 4 years ago

(Gorealla) goodness@goodness-HP:~/Documents/Gorealla/src$ heroku run pip install soundfile Running pip install soundfile on ⬢ gorealla... up, run.8239 (Free) Requirement already satisfied: soundfile in ./.heroku/python/lib/python3.6/site-packages Requirement already satisfied: cffi>=1.0 in ./.heroku/python/lib/python3.6/site-packages (from soundfile) Requirement already satisfied: pycparser in ./.heroku/python/lib/python3.6/site-packages (from cffi>=1.0->soundfile)

sergree commented 4 years ago

Hello! :) https://github.com/sergree/matchering#libsndfile

GoodnessEzeokafor commented 4 years ago

sorry i have this installed or do i need to install this on heroku ??

sergree commented 4 years ago

on heroku for sure

GoodnessEzeokafor commented 4 years ago

heres the fix

GoodnessEzeokafor commented 4 years ago

u have to add something like that to your docs, to help other devs

sergree commented 4 years ago

ok thank you too