#32544: django.contrib.gis.geos import MultiPolygon segmentation fault (Apple 
M1)
---------------------------------------------+------------------------
               Reporter:  Sebastian Kapunkt  |          Owner:  nobody
                   Type:  Bug                |         Status:  new
              Component:  GIS                |        Version:  3.1
               Severity:  Normal             |       Keywords:
           Triage Stage:  Unreviewed         |      Has patch:  0
    Needs documentation:  0                  |    Needs tests:  0
Patch needs improvement:  0                  |  Easy pickings:  0
                  UI/UX:  0                  |
---------------------------------------------+------------------------
 Using `MultiPolygon` on Apple MacBook pro with the M1 chip causes
 `segmentation fault`.


 Here is what I did to produce the error:

 {{{
 python manage.py shell

 >>>from django.contrib.gis.geos import MultiPolygon
 >>>MultiPolygon()
 [1] 34350 segmentation fault  python manage.py shell
 }}}

 I have these relevant settings in my settings.py:
 {{{
 GDAL_LIBRARY_PATH = os.getenv("GDAL_LIBRARY_PATH")
 GEOS_LIBRARY_PATH = os.getenv("GEOS_LIBRARY_PATH")
 }}}
 .env
 {{{
 export GDAL_LIBRARY_PATH=/opt/homebrew/lib/libgdal.dylib
 export GEOS_LIBRARY_PATH=/opt/homebrew/lib/libgeos_c.dylib
 }}}

 uname -a:
 {{{
 Darwin Sebastians-MacBook-Pro.local 20.3.0 Darwin Kernel Version 20.3.0:
 Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101
 arm64
 }}}

 geos-config --version `3.9.1`

 gdalinfo --version `GDAL 3.2.1, released 2020/12/29`

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32544>
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/059.7a5b23a13ef860e320d093cf6dd50518%40djangoproject.com.

Reply via email to