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
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to