minus34 / gnaf-loader

A quick way to get started with Geoscape's open GNAF & Admin Boundaries
Apache License 2.0
185 stars 66 forks source link

Docker Install Errors "raw_admin_bdys_201708.*** does not exist #28

Closed deathsdealer closed 5 years ago

deathsdealer commented 7 years ago

Hi, Trying to install this on docker but getting lots of errors saying things don't exist. Scripts gets here and stops. loader_1 | Traceback (most recent call last): loader_1 | File "load-gnaf.py", line 940, in loader_1 | if main(): loader_1 | File "load-gnaf.py", line 98, in main loader_1 | create_reference_tables(pg_cur, settings) loader_1 | File "load-gnaf.py", line 636, in create_reference_tables loader_1 | pg_cur.execute(psma.open_sql_file("03-10-reference-split-melbourne.sql", settings)) loader_1 | psycopg2.ProgrammingError: relation "admin_bdys_201708.locality_bdys" does not exist loader_1 | LINE 14: FROM admin_bdys_201708.locality_bdys AS bdy loader_1 | ^ loader_1 | data_loader_1 exited with code 1

minus34 commented 7 years ago

Hi,

I can see in the log that the raw GNAF files and Admin boundary Shapefile couldn't be found. Check you've got the right input directories in your arguments and also check the file privileges so can be read.

10/30/2017 10:28:47 AM No raw GNAF PSV files found ACTION: Check your 'gnaf-network-directory' path ... 10/30/2017 10:28:47 AM No admin boundary files found ACTION: Check your 'admin-bdys-path' argument

minus34 commented 6 years ago

You'll need to set them as command line parameters as per this section of the readme:

https://github.com/minus34/gnaf-loader#required-arguments

There are some examples here:

https://github.com/minus34/gnaf-loader#example-command-line-arguments

andrewharvey commented 6 years ago

@deathsdealer I was going to suggest looking at how it's invoked at https://github.com/openaddresses/openaddresses/blob/master/scripts/au/gnaf.sh#L32 but it looks the same.

flicj191 commented 6 years ago

I am getting similar issues though using windows. root : CRITICAL No raw GNAF PSV files found ACTION: Check your 'gnaf_network_directory' path

this is the command PS C:\gnaf\gnaf-loader-master> python load-gnaf.py --gnaf-tables-path="C:\gnaf\GNAF_FEB_2018" --admin-bdys-p ath="C:\gnaf\FEB28_AdminBounds_ESRI" --pgport 5433 --pgdb psma_201802 --pgpassword password root : INFO root : INFO Start gnaf-loader root : INFO - running Python 2.7.14 with Psycopg2 2.7.4 root : INFO - on Windows 10.0.16299 root : INFO - using Postgres 9.5.12 and PostGIS 2.3.5 (with GEOS 3.6.2-CAPI-1.10.2) root : INFO

I have check directory access where ever I could and moved them to different locations. Is there something else I am missing?

minus34 commented 5 years ago

The original issue has been resolved (a while back) through better logging of Shapefile loading. Errors now indicate whether there's a source file problem.