Giter Club home page Giter Club logo

Comments (8)

leplatrem avatar leplatrem commented on June 27, 2024

That's a string from contrib.gis indeed!

Can you check the type of your PointField ? It should be djgeojson.fields.PointField.

from django-geojson.

 avatar commented on June 27, 2024

I can confirm this, had the same issue on arch after installing gdal all works fine!

from django-geojson.

dzh21 avatar dzh21 commented on June 27, 2024

the same problem, after sudo aptitude install gdal-bin all good

from django-geojson.

maltem-za avatar maltem-za commented on June 27, 2024

Confirmed - with the same solution as mentioned above.

Not really surprising considering the following import pattern is used throughout django-geojson & django-leaflet:

# from django-geojson serializers.py
try:
    from django.contrib.gis.geos import WKBWriter
    from django.contrib.gis.geos import GEOSGeometry
    from django.contrib.gis.db.models.fields import GeometryField
except (ImportError, ImproperlyConfigured):
    from .nogeos import WKBWriter
    from .nogeos import GEOSGeometry
    from .fields import GeometryField

As contrib.gis comes with Django I don't see how this was intended to prefer the nogeos stuff. Perhaps contrib.gis used to raise ImproperlyConfigured when gdal isn't present? However django-leaflet only handles ImportError in all the places I looked...

from django-geojson.

cgestes avatar cgestes commented on June 27, 2024

Encountered the same since I updated to 2.11.0 :(

(the bug is not present in 2.10.0)

from django-geojson.

leplatrem avatar leplatrem commented on June 27, 2024

You can check the diff
2.10.0...2.11.0

@Gagaro could you update the Github releases page please? And also, use PRs where Travis tests remain green instead of committing to master (easier to follow regressions etc.). Thanks!

from django-geojson.

Gagaro avatar Gagaro commented on June 27, 2024

Travis tests are green, the only PR I merged without travis was the pip install one which was very simple (but still needed travis...).

And yes I should update the releases.

from django-geojson.

coredumperror avatar coredumperror commented on June 27, 2024

Is there any chance that this issue could be resolved? I just started using django-geojson, and I'm getting the same error as @flesser for apparently the same reason. I don't want to install gdal just to make an import I don't plan to use not crash. I cannot downgrade to 2.10 because my project uses Django 2.x.

from django-geojson.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.