Thumbor 6.7.3 breaks on Debian 10 and Ubuntu 18.04
See original GitHub issueBehaviour
After running pip install thumbor
and starting Thumbor 6.7.3, there are a lot of warnings about filters that can’t be used:
root@static:~# thumbor
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.brightness could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_brightness.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.colorize could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_colorize.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.contrast could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_contrast.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.rgb could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_rgb.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.round_corner could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_round_corner.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.noise could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_noise.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.watermark could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_alpha.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.equalize could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_equalize.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.fill could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_fill.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.sharpen could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_sharpen.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.frame could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_nine_patch.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.convolution could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_convolution.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.blur could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_convolution.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.saturation could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_saturation.so)
2020-03-06 18:07:57 thumbor:WARNING Module thumbor.filters.curve could not be imported: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python2.7/dist-packages/thumbor/ext/filters/_curve.so)
2020-03-06 18:07:57 thumbor:WARNING Error importing bounding_box filter, trimming won't work
When doing pip install thumbor==6.7.2
on exactly the same system the warnings go away.
root@static:~# thumbor
2020-03-06 18:07:10 thumbor:WARNING Error importing bounding_box filter, trimming won't work
Operating system
Debian 10 and Ubuntu 18.04
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:18 (9 by maintainers)
Top Results From Across the Web
Release Notes — Thumbor 6.7.2 documentation
This version contains breaking changes. Both GraphicsMagick and OpenCV engines were removed from the built-in imaging engines and can be found in the ......
Read more >Image Layer Details - minimalcompact/thumbor:6.7.5
minimalcompact/thumbor:6.7.5 ... linux/amd64. Compressed Size. 814.49 MB. Last pushed. a year ago by micomp ... 10. /bin/sh -c apt-get update &&.
Read more >thumbor is an open-source photo thumbnail service by globo.com ...
Thumbor installation on Ubuntu Server Tests on Windows 10 & macOS Catalina ... First let's see what breaks (apart from not supporting python...
Read more >thumbor is an open-source photo thumbnail service by globo ...
We are experiencing memory usage explosion on Ubuntu 14.04.1 LTS with Thumbor v6.0.1 and Pillow 3.2.0. Our memory usage can hit ~97%.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think I found the culprit. Can you please try with: pip install https://github.com/thumbor/thumbor/archive/fixes/6.7.x.zip
Ran into the last warning;
thumbor:WARNING Error importing bounding_box filter, trimming won't work
. Upon closer look, it seems like there’s a relocation error related tocolor_distance
(this is in Alpine Linux):I’m not terribly proficient with C at this point, but removing the
inline
specifier inthumbor/ext/filters/_bounding_box.c
solves the problem (probably at the expense of performance?).