Closed justb4 closed 2 years ago
Ok, now the next error:
2021-12-22 16:25:56,117 execfilter INFO executing cmd=../../bag/bin/gemeentelijke-indeling.sh --convert-to-csv -i ../../bag/db/data/gemeentelijke-indeling.xml -o data/cbs/\
gemeentelijke-indeling.csv
Traceback (most recent call last):
File "/nlx/bag/src/gemeentelijke-indeling.py", line 48, in <module>
import xlrd
ModuleNotFoundError: No module named 'xlrd'
Fix may be similar: add xlrd==2.0.1
to requirements and python3-xlrd
for Dockerfile.
xlrd
is required for gemeentelijke-indeling.py
since the switch to Python 3 (#276).
openpyxl
is required for gemeentelijke-indeling.py
since CBS started using the XLSX format for 2021. (#294)
Ok, but this was not reflected in the dependencies for both Python and Docker. Now it is, and working, so closing.
Running BAGV2 ETL with latest Docker Image.
Think we need to add
openpyxl
dependency to bothrequirements.txt
andpython3-openpyxl
to packages used in the Dockerfile. Will try that first.