Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db build fails on whse_admin_boundaries.adm_nr_districts_spg #598

Open
smnorris opened this issue Nov 12, 2024 · 1 comment
Open

db build fails on whse_admin_boundaries.adm_nr_districts_spg #598

smnorris opened this issue Nov 12, 2024 · 1 comment

Comments

@smnorris
Copy link
Owner

When building a new database, db/sources/migrate.sh bails due to lack of info coming from bcdc api:

bcdata bc2pg -e -c 1 whse_admin_boundaries.adm_nr_districts_spg
2024-11-12 13:10:10,493:INFO:bcdata.wfs: Total features requested: 1
2024-11-12 13:10:10,772:WARNING:bcdata.bcdc: BC Data Catalouge API search provides no schema for: WHSE_ADMIN_BOUNDARIES.ADM_NR_DISTRICTS_SPG
Traceback (most recent call last):
  File "/Users/snorris/Projects/repo/bcfishpass/.venv/bin/bcdata", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/Users/snorris/Projects/repo/bcfishpass/.venv/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/snorris/Projects/repo/bcfishpass/.venv/lib/python3.12/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/snorris/Projects/repo/bcfishpass/.venv/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/snorris/Projects/repo/bcfishpass/.venv/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/snorris/Projects/repo/bcfishpass/.venv/lib/python3.12/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/snorris/Projects/repo/bcfishpass/.venv/lib/python3.12/site-packages/bcdata/cli.py", line 412, in bc2pg
    out_table = bcdata.bc2pg(
                ^^^^^^^^^^^^^
  File "/Users/snorris/Projects/repo/bcfishpass/.venv/lib/python3.12/site-packages/bcdata/bc2pg.py", line 96, in bc2pg
    raise ValueError(
ValueError: Cannot create table, schema details not found via bcdc api
@smnorris
Copy link
Owner Author

Issue is with bcdata and the catalogue api: smnorris/bcdata#200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant