Re: Segmentation Fault using gdal with Python 3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks everyone for their suggestions. I believe my problem is that I've installed postgis from the postgresql PGDG repository and it's conflicting with the Fedora python gdal files. Not sure If I need to just use Fedora's postgresql version or if there is another workaround.

On Fri, May 28, 2021 at 4:18 AM George N. White III <gnwiii@xxxxxxxxx> wrote:
On Thu, 27 May 2021 at 23:37, Clifford Snow <clifford@xxxxxxxxxxxxxx> 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"?
--
George N. White III

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure


--
@osm_washington
OpenStreetMap: Maps with a human touch
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux