Closed mithold closed 7 years ago
There was an issue on Windows importing Shapefiles. That process has been hardened. Can you grab the latest code and try again.
I ran into the same error at the end, but I'm fairly sure it's due to a different issue based on comparing your log file to mine.
My issue was on ubuntu I had the postgresql-9.6
and postgresql-9.6-postgis-2.3
packages but I didn't have the postgis
package to provide shp2pgsql
.
I haven't been able to replicate on macOS since the fix. Also, I haven't tried Ubuntu.
FYI - this is my PostGIS install script for Ubuntu (for census-loader):
sudo add-apt-repository -y "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y update sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y install postgresql-9.6 sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y install postgresql-9.6-postgis-2.3 postgresql-contrib-9.6 sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y install postgis
In case you hadn't come across the issue before - the last line, which seems unnecessary, installs shp2pgsql.
Closing as original issue fixed
Hi Minus34,
Are you able to nudge me in the right direction? I keep getting errors like this -
The script keeps running but eventually dies completely with
After it dies the DB looks like this -
Im running the script like this:
python load-gnaf.py --gnaf-tables-path="C:\GNAF\FEB17 GNAF PipeSeperatedValue\GNAF\G-NAF FEBRUARY 2017" --admin-bdys-path="C:\GNAF\feb17adminboundsesrishapefileordbffile\FEB17_AdminBounds_ESRIShapefileorDBFfile" --pgdb="GNAF" --pguser="postgres" --pgpassword="postgres"
I have added the postgre bin folder to PATH variable. I've confirmed that both shp2pgsql and psql run in command line.
My machine -
Full log file attached. load-gnaf.log.txt
Much appreciated.