[gdal-dev] Conflict between scipy/pypocketfft and GDAL/ECW

Sean Gillies sean at mapbox.com
Thu May 21 10:32:56 PDT 2020


Hi all,

I've run into an apparent conflict between pypocketfft, the basis for
scipy.fft introduced in scipy 1.4.0, and GDAL 3.1.0 built with the ECWJP2
SDK version 5.5. I'm wondering if anyone has seen this and found a solution
other than downgrading scipy to 1.3.2?

$ pip install scipy
...
Successfully installed scipy-1.4.1
$ python
Python 3.6.6 (default, Sep 12 2018, 18:26:19)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import rasterio
>>> import scipy
free(): invalid pointer
Aborted (core dumped)

I've looked at the above more closely using gdb and the crash occurs on
import of one of pypocketfft's C extension modules (an .so file).

Downgrading scipy sidesteps the problem.

$ pip uninstall scipy
...
Successfully uninstalled scipy-1.4.1
$ pip install scipy==1.3.2
...
Successfully installed scipy-1.3.2
$ python
Python 3.6.6 (default, Sep 12 2018, 18:26:19)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import rasterio
>>> import scipy
>>>

-- 
Sean Gillies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200521/d01e3c06/attachment.html>


More information about the gdal-dev mailing list