Monday, May 13, 2013

Re: Django 1.5.1, gdal 1.9.2: segmentation fault on DataSource import

Same here (also running Arch Linux), by running functions on shell:

---
In [1]: from ctypes import CDLL

In [3]: lib_path = '/usr/lib/libgdal.so'

In [4]: lgdal = CDLL(lib_path)

In [5]: lgdal['GDALVersionInfo']
Out[5]: <_FuncPtr object at 0x52447a0>

In [6]: lgdal['GDALVersionInfo'](b'RELEASE_NAME')
Fatal Python error: (pygame parachute) Segmentation Fault
zsh: abort (core dumped) python manage.py shell
---

I find weird pygame reference there, do you also have pygame
installed)?

[]s

On May 13, 5:29 am, Alessandro Candini <cand...@meeo.it> wrote:
> I cannot import gdal utilities anymore.
>
> I was working on a project on an Arch Linux machine, using Django 1.5.1
> and GDAL 1.9.2.
>
> Today I have updated my distro and the DataSource failed its import:
> from django.contrib.gis.gdal import DataSource
> ...
> Exception Value: cannot import name DataSource
>
> Going back between exceptions, I found that the segmentation fault is
> caused by line 84 of
> /usr/lib/python2.7/site-packages/django/contrib/gis/gdal/libgdal.py:
> ver = gdal_version().decode()
>
> This is inside the gdal_version_info() function.
>
> Have you got any idea on how to solve this?
>
> Thanks.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate