I have a probem with accessing my heroku app because of following error
2020-09-11T10:25:09.492648+00:00 app[web.1]: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
What i already tried is:
nothing works.
Does anyone know what the problem is?
I guess the fix for any type of import error works like this:
If you have library error like libGL.so.1 you should take the name of the library in lowercase (in this case 'libgl') and add the number at the end of the name (in this case it's '1') - so you get a word libgl1. Now write that word into Aptfile.
If you don't have Aptfile just create it in the root folder - this file does not have any extension.
I had the same issue and I added the following line in my requirements.txt
:
opencv-python-headless==4.2.0.32
It worked for me.
First run
heroku buildpacks:add --index 1 https://github.com/heroku/heroku-buildpack-apt
Create Aptfile and add libgl1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With