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

ckanext-dcat latest changes not compatible with catalog #4806

Open
rshewitt opened this issue Jul 8, 2024 · 3 comments
Open

ckanext-dcat latest changes not compatible with catalog #4806

rshewitt opened this issue Jul 8, 2024 · 3 comments
Assignees
Labels
bug Software defect or bug

Comments

@rshewitt
Copy link
Contributor

rshewitt commented Jul 8, 2024

commit hash results in a non-zero return when running prerun.py caused by an import error with ckanext.scheming

... from ckanext.dcat.validators import is_year, is_year_month, is_date\n  File "/usr/local/lib/python3.10/site-packages/ckanext/dcat/validators.py", line 12, in <module>\n    from ckanext.scheming.validation import scheming_validator\nModuleNotFoundError: No module named \'ckanext.scheming\'\n'
2024-07-08 13:14:31 Traceback (most recent call last):
2024-07-08 13:14:31   File "/srv/app/prerun.py", line 208, in <module>
2024-07-08 13:14:31     init_db()
2024-07-08 13:14:31   File "/srv/app/prerun.py", line 112, in init_db
2024-07-08 13:14:31     raise e
2024-07-08 13:14:31   File "/srv/app/prerun.py", line 101, in init_db
2024-07-08 13:14:31     subprocess.check_output(db_command, stderr=subprocess.STDOUT)
2024-07-08 13:14:31   File "/usr/local/lib/python3.10/subprocess.py", line 421, in check_output
2024-07-08 13:14:31     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
2024-07-08 13:14:31   File "/usr/local/lib/python3.10/subprocess.py", line 526, in run
2024-07-08 13:14:31     raise CalledProcessError(retcode, process.args,
2024-07-08 13:14:31 subprocess.CalledProcessError: Command '['ckan', '-c', '/srv/app/ckan.ini', 'db', 'init']' returned non-zero exit status 1.

change comparison between the current working commit and the latest causing the error.

How to reproduce

  1. point ckanext-dcat version to 1ef40546ce8656cb2b7b8d5a23f26bf64523acfa in ckan/requirements.txt
  2. run make build then make up

Expected behavior

prerun.py runs successfully

Actual behavior

prerun.py errors out

Sketch

[Notes or a checklist reflecting our understanding of the selected approach]

@rshewitt rshewitt added the bug Software defect or bug label Jul 8, 2024
@btylerburton
Copy link
Contributor

could just be missing the new dependency.

@jbrown-xentity
Copy link
Contributor

ckanext scheming seems to be the missing problem. Should investigate dcat dependencies and see what has changed. Unknown what integrating ckanext-scheming will do to catalog, would need testing and validation.

@FuhuXia
Copy link
Member

FuhuXia commented Jul 18, 2024

let us pin to the latest release v1.7.0 for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Software defect or bug
Projects
Status: 📔 Product Backlog
Development

No branches or pull requests

4 participants