Trouble installing pydub (FFMPEG more precisely)

0

Hello everyone ,

I ve created a zip file containing pydub and ffmpeg and put it on a amazon lamda layer . I ve tried locally before running my lambda script if everything was working and it was , but everytime I run my lambda script it says that pydub cannot found my ffmpeg even though it is in the same zipfile . was wondering what was I doing wrong . If you need any information i would be glad to send more .

Nick
asked 5 months ago215 views
1 Answer
0

Make sure that your dependencies are not in th eroot of the zip file, but rather in the 'python' or 'python/lib/python3.x/site-packages' folders, as described here.

profile pictureAWS
EXPERT
Uri
answered 5 months ago
  • Thank you very much and i did that , my script is recoingzing the PYDUB library but pydub can t access FFMPEG and i dont understand why since its also in the site packages !! So I was wondering if the FFMPEG must also be in the site-packages , or should i leave it somewhere else !

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions