ca_od = get_lodes(
state="CA", year=2022, lodes_type="od", cache=True, return_geometry=True, agg_level="block"
)
fails with the error:
HTTP download failed, trying FTP as fallback...
Downloading tl_2020_06_tabblock20.zip from Census FTP...
Traceback (most recent call last):
File "/Users/connor/ontra/ontra-python/src/demand_modeling/main.py", line 383, in
ca_od = get_lodes(
^^^^^^^^^^
File "/Users/connor/ontra/ontra-python/.venv/lib/python3.12/site-packages/pygris/data.py", line 311, in get_lodes
geom = _get_geometry(geography = agg_level, state = state, cb = cb, year = year, cache = cache)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/connor/ontra/ontra-python/.venv/lib/python3.12/site-packages/pygris/geometry.py", line 13, in _get_geometry
geo = blocks(state = state, year = year, cache = cache)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/connor/ontra/ontra-python/.venv/lib/python3.12/site-packages/pygris/enumeration_units.py", line 799, in blocks
blks = _load_tiger(url, cache = cache, subset_by = subset_by, protocol = protocol, timeout = timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/connor/ontra/ontra-python/.venv/lib/python3.12/site-packages/pygris/helpers.py", line 171, in _load_tiger
raise e
File "/Users/connor/ontra/ontra-python/.venv/lib/python3.12/site-packages/pygris/helpers.py", line 151, in _load_tiger
tiger_data = gp.read_file(file_path)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/connor/ontra/ontra-python/.venv/lib/python3.12/site-packages/geopandas/io/file.py", line 294, in _read_file
return _read_file_pyogrio(
^^^^^^^^^^^^^^^^^^^
File "/Users/connor/ontra/ontra-python/.venv/lib/python3.12/site-packages/geopandas/io/file.py", line 547, in _read_file_pyogrio
return pyogrio.read_dataframe(path_or_bytes, bbox=bbox, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/connor/ontra/ontra-python/.venv/lib/python3.12/site-packages/pyogrio/geopandas.py", line 265, in read_dataframe
result = read_func(
^^^^^^^^^^
File "/Users/connor/ontra/ontra-python/.venv/lib/python3.12/site-packages/pyogrio/raw.py", line 198, in read
return ogr_read(
^^^^^^^^^
File "pyogrio/_io.pyx", line 1240, in pyogrio._io.ogr_read
File "pyogrio/_io.pyx", line 220, in pyogrio._io.ogr_open
It could be because of this notice?
https://www2.census.gov/geo/tiger/TIGER2024/TRACT/tl_2024_06_tract.zip
Yes, it's probably government shutdown-related, unfortunately.