#27399: Segfault when running GDALBandTests on OSX 10.11.6
--------------------------------------+------------------------------------
     Reporter:  Tatiana Vasilevskaya  |                    Owner:  nobody
         Type:  Bug                   |                   Status:  new
    Component:  GIS                   |                  Version:  master
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by winsent):

 Look at this example. Install  only pillow and Django without GDAL python
 binding. This code raise exeption after pillow installed.

 {{{
 GEOTIF_PATH=/ta/dem.tif

 virtualenv --python=python3 test
 cd test
 source bin/activate
 pip install django==1.11.9 pillow
 python -c "from django.contrib.gis.gdal import GDALRaster;
 print(GDALRaster('$GEOTIF_PATH'))"
 django-admin startproject testtest
 cd testtest
 django-admin startapp testtesttest
 echo "\n\nINSTALLED_APPS += ['testtesttest']" >> testtest/settings.py
 mkdir -p testtesttest/management/commands
 touch testtesttest/management/__init__.py
 testtesttest/management/commands/__init__.py
 echo "from django.core.management.base import BaseCommand
 class Command(BaseCommand):
     def handle(self, *args, **options):
         from django.contrib.gis.gdal import GDALRaster
         print(GDALRaster('$GEOTIF_PATH'))
 " > testtesttest/management/commands/gdal_test.py
 python manage.py gdal_test
 pip uninstall -y pillow
 python manage.py gdal_test
 }}}

 Result:
 {{{
 TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481)
 encountered.
 [1]    53998 bus error  python manage.py gdal_test
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/27399#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.dbaad3e577c46ba7d421b0cf4bfda657%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to