23π
Sorry, that KyngChaos solution completely defeats the purpose of using homebrew.
The answer for homebrew users (at least, for this one) is to uninstall geos
and its dependencies and then reinstall geos
and then its dependencies.
This worked for me:
brew uninstall geos gdal geoip libspatialite librasterlite spatialite-gui spatialite-tools
brew cleanup
brew install geos
brew install gdal geoip libspatialite librasterlite spatialite-gui spatialite-tools
brew cleanup
It seems some geos
dependencies are getting out of sync.
You can verify the libraries that need to be installed by tracking what this returns:
python -c 'import _ctypes; _ctypes.dlopen("/usr/local/lib/libgdal.dylib")'
Youβll see something like
Reason: Incompatible library version: [some geos dependent library].dylib requires version X.X.X or later, but libgeos_c.1.8.0.dylib provides version X.X.X.
brew uninstall [some geos dependency]
brew install [some geos dependency]
brew cleanup
Then rerun the above python
command and either the problem will be resolved or itβll reveal another dependency to uninstall/install.
3π
I solved it this way.
$ brew install postgresql
$ brew install postgis
$ brew install gdal
$ brew install libgeoip
then in Django settings set this:
GEOS_LIBRARY_PATH = '/usr/local/Cellar/geos/3.4.2/lib/libgeos_c.1.dylib'
Then it worked for me.
- {% load static %} and {% load staticfiles %}: which is preferred?
- Assign Value of Named URL to a Variable in Django Templates
2π
The installation instructions appears to hold the answer, which is to set the environment variable $GEOS_LIBRARY_PATH
.
- Soft deleting objects in django
- Installing django 1.5(development version) in virtualenv
- Getting Type error while opening an uploaded CSV File
- Setting up New Relic for Django development server
- Store browser tab specific data
0π
Same here β after installing everything as directed, I went back and added the KyngChaos libraries, then added the three export statements to my ~/.bash_profile as listed above. This fixed my issue.
- Django south fresh install β> error: unknown command 'schemamigration'
- Linking django and mysql containers using docker-compose
- Access token from view
- A good way to encrypt database fields?
0π
I had this same issue and was able to solve it by uninstalling GDAL from Homebrew and installing the GDAL Complete package from KyngChaos: http://www.kyngchaos.com/software/frameworks
- Django Models Number Field
- How can I test if my redis cache is working?
- Is there a way to set the id value of new Django objects to start at a certain value?
- Duplicate elements in Django Paginate after `order_by` call
0π
Had the same issue (Mac OSX) and solved it by creating a sym link from where I found the lib folder
to where python was looking for it in the error message
.
ln -s /usr/local/Cellar/geos/3.10.3/lib/libgeos_c.dylib ~/PycharmProjects/project/venv/lib/libgeos_c.dylib
None of the environment variables worked, nor reinstalling
- Django, Security and Settings
- Django : Formset as form field
- Django reverse to contains/icontains
- How to show more than 100 items on each paginated "Change List" page in Django Admin?