Skip to content

KeyError while running ./build-docker.sh --custom scotland #3

@thisistheplace

Description

@thisistheplace

Hi,

See details below.

Command:
./build-docker.sh --custom scotland

Console output:

2025-04-16 14:24:52 [INFO] Downloading WFS:     Registered historic battlefields - Scotland [records: 41]
2025-04-16 14:24:52 [INFO] --> Downloading: 1 to 40
2025-04-16 14:24:53 [INFO] --> Downloading: 41 to 41
2025-04-16 14:24:53 [INFO] --> Unable to download records - possible incorrect record count from WFS [numberMatched:41, numberReturned:40] - retrying with reduced number
2025-04-16 14:24:54 [INFO] Downloading WFS:     Registered parks and gardens - Scotland [records: 369]
2025-04-16 14:24:54 [INFO] --> Downloading: 1 to 368
2025-04-16 14:24:58 [INFO] --> Downloading: 369 to 369
2025-04-16 14:24:59 [INFO] --> Unable to download records - possible incorrect record count from WFS [numberMatched:369, numberReturned:368] - retrying with reduced number
2025-04-16 14:25:01 [INFO] Downloading WFS:     Scheduled Ancient Monuments - Scotland [records: 8072]
2025-04-16 14:25:01 [INFO] --> Downloading: 1 to 8071
2025-04-16 14:25:35 [INFO] --> Downloading: 8072 to 8072
2025-04-16 14:25:37 [INFO] --> Unable to download records - possible incorrect record count from WFS [numberMatched:8072, numberReturned:8071] - retrying with reduced number
2025-04-16 14:25:40 [INFO] Downloading WFS:     World Heritage Sites - Scotland [records: 11]
2025-04-16 14:25:40 [INFO] --> Downloading: 1 to 10
2025-04-16 14:25:40 [INFO] --> Downloading: 11 to 11
2025-04-16 14:25:41 [INFO] --> Unable to download records - possible incorrect record count from WFS [numberMatched:11, numberReturned:10] - retrying with reduced number
2025-04-16 14:25:41 [INFO] Downloading ArcGIS:  Heritage Coasts - Scotland [records: 38]
2025-04-16 14:26:15 [INFO] Downloading ArcGIS:  National Parks - Scotland [records: 2]
Traceback (most recent call last):
  File "/usr/src/openwind/openwind.py", line 3062, in <module>
    downloadDatasets(CKAN_URL, DATASETS_DOWNLOADS_FOLDER)
  File "/usr/src/openwind/openwind.py", line 1558, in downloadDatasets
    downloadDatasetsSinglePass(ckanurl, output_folder)
  File "/usr/src/openwind/openwind.py", line 1758, in downloadDatasetsSinglePass
    totalrecords = int(result['wfs:FeatureCollection']['@numberMatched'])
KeyError: '@numberMatched'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions