Open missinglink opened 4 years ago
Also worth mentioning I have dgal
installed on my system already, maybe this is causing conflicts?
which ogr2ogr
/usr/local/bin/ogr2ogr
ogr2ogr --version
GDAL 3.0.4, released 2020/01/28
I made some progress by fiddling with the requirements.txt
file a bit, this allows me get it installed, but since I removed gdal
I'm naturally getting a warning about it not being available:
WARNING:root:failed to calculate area in square meters, because No module named osgeo
These are the changes I had to make to get it installed, is it possible that the requirements.txt
file is out-of-date or am I doing something daft?
diff --git a/requirements.txt b/requirements.txt
index a3ab069..c8870d8 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,12 +1,15 @@
git+https://github.com/whosonfirst/py-mapzen-whosonfirst-placetypes
git+https://github.com/whosonfirst/py-mapzen-whosonfirst-export
git+https://github.com/whosonfirst/py-mapzen-whosonfirst-utils
+git+https://github.com/whosonfirst/py-mapzen-whosonfirst-uri
git+https://github.com/whosonfirst/py-mapzen-whosonfirst-meta
git+https://github.com/whosonfirst/py-mapzen-whosonfirst-sources
git+https://github.com/whosonfirst/python-edtf
git+https://github.com/whosonfirst/py-mapzen-whosonfirst-geojson
+git+https://github.com/whosonfirst/py-mapzen-whosonfirst-spatial
arrow
atomicwrites
deepdiff
-gdal==2.4.4
geojson
+shapely
+psycopg2
The command I used was this one (I can now remove sudo
which is 👍 )
python2 -m pip install -r requirements.txt .
I'm using this script in combination with go-whosonfirst-pgis
so I'm not 💯 clear on the why gdal
and shapely
are being used here, there must be something more going on than just calling out to PIP and generating hierarchies?
Heya,
I'm having trouble installing this library on macOS Catalina 10.15.3 (I think it's the latest version of macOS)
I'm not a python dev so it could very likely be me not understanding how python works, I tried:
sudo python2 -m pip install -r requirements.txt .
sudo python3 -m pip install -r requirements.txt .
In both cases there was a fatal error
Failed to build gdal
I've included the logs from both
python2
andpython3
in this gist https://gist.github.com/missinglink/a7a8c9b9053e736df495c9ed3cbb94f8Any pointers would be appreciated :rocket: