Closed donascian closed 1 year ago
That is not the only function that crashed. Full error report:
FAILED tests/test_list_geobr.py::test_list_geobr - http.client.IncompleteRead: IncompleteRead(0 bytes read)
FAILED tests/test_read_amazon.py::test_read_amazon - fiona.errors.DriverError: 'temp.gpkg' not recognized as a supported file for...
FAILED tests/test_read_census_tract.py::test_read_census_tract - KeyError: "['code_abrev'] not in index"
FAILED tests/test_read_meso_region.py::test_read_meso_region - KeyError: "['code_abrev'] not in index"
FAILED tests/test_read_micro_region.py::test_read_micro_region - KeyError: "['code_abrev'] not in index"
FAILED tests/test_read_municipality.py::test_read_municipality - KeyError: "['code_abrev'] not in index"
FAILED tests/test_read_state.py::test_read_state - KeyError: 'code_abrev'
FAILED tests/test_read_weighting_area.py::test_read_weighting_area - KeyError: "['code_abrev'] not in index"
FAILED tests/test_utils.py::test_download_metadata - AssertionError: assert False
@rafapereirabr the new mirroring infrastructure changed the content of the files?
The code_abrev
column has been updated (fixed) to code_abbrev
in the new metadata file. The original metadata file is still working normally (I kept it so we wouldn't break the python package).
but the update of the python version to incorporate the new data sets (mirrored in two servers) need a couple tweaks. That's why I mentioned we (@JoaoCarabetta and I) should have a quick chat before making any changes to the python version
Hi,
There seems to be an issue when downloading the spatial data for all municipalities within a specific state.
read_municipality(code_muni="all")
seems to be working fine, with the issue only arising when a specific state is specified (using the relevant abbreviation). I have successfully reproduced the error in other virtual environments using the most recent version of geobr (0.1.10). Any help would be greatly appreciated!Many thanks,
Ian Do Nascimento