On Thu, 27 May 2021 at 23:37, Clifford Snow <clifford(a)snowandsnow.us> wrote:
I'm getting a segmentation fault (core dump) when using the osgeo
gdal
modules. Otherwise no problem.
I'm looking for some suggestions on how to troubleshoot this. I can't even
seem to find the core dump file.
For example, using the python interpreter with a simple program as:
>>> from osgeo import gdal
>>> quit()
Segmentation fault (core dumped)
You should show the complete output as in:
~% python3 ; echo $?
Python 3.9.5 (default, May 14 2021, 00:00:00)
[GCC 11.1.1 20210428 (Red Hat 11.1.1-1)] on linux
Type "help", "copyright", "credits" or "license"
for more information.
>> from osgeo import gdal
>> quit()
0
I can't reproduce your problem on Fedora 33 or 34. More details (Fedora
version,
python version) might help. Is it possible you have old python packages
installed
in /usr/local or ~/.local? Are you using a 3rd party python (Anaconda,
etc.)? Have
you tried "python3 -d -E -c 'from osgeo import gdal'? Have you set
"PYTHONPATH"?
https://pythondev.readthedocs.io/debug_tools.html
--
George N. White III