ckan / ckan/ckan-docker

can't install DCAT

Open
#151 3 comments 1 reaction 1 assignee Claimed by @kowh-ai View on GitHub
Dominant language
Shell
Stars
151
Forks
279
PR merge metrics
No merged PRs in 30d

Description

When trying to install DCAT with the script provided in dockerfile.dev I immediately get an error trying to build Docker.

```
RUN pip3 install -e git+https://github.com/ckan/ckanext-dcat.git@v0.0.6#egg=ckanext-dcat && \
pip3 install -r https://raw.githubusercontent.com/ckan/ckanext-dcat/v0.0.6/requirements.txt

```

```
'done'
11.34 Collecting rdflib==4.2.1 (from -r https://raw.githubusercontent.com/ckan/ckanext-dcat/v0.0.6/requirements.txt (line 1))
11.45 Downloading rdflib-4.2.1.tar.gz (889 kB)
11.57 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 889.5/889.5 kB 8.2 MB/s eta 0:00:00
12.31 Preparing metadata (setup.py): started
13.17 Preparing metadata (setup.py): finished with status 'error'
13.17 error: subprocess-exited-with-error
13.17
13.17 × python setup.py egg_info did not run successfully.
13.17 │ exit code: 1
13.17 ╰─> [11 lines of output]
13.17 no previously-included directories found matching 'docs/_build'
13.17 warning: no previously-included files matching '*.pyc' found anywhere in distribution
13.17 warning: no previously-included files matching '*$py.class' found anywhere in distribution
13.17 Traceback (most recent call last):
13.17 File "", line 2, in
13.17 File "", line 34, in
13.17 File "/tmp/pip-install-f2p4v6n1/rdflib_977d0e9dfa1c4a449cab88b10d46a7ee/setup.py", line 46, in
13.17 kwargs['src_root'] = setup_python3()
13.17 File "/tmp/pip-install-f2p4v6n1/rdflib_977d0e9dfa1c4a449cab88b10d46a7ee/setup.py", line 30, in setup_python3
13.17 util.run_2to3(outfiles_2to3)
13.17 AttributeError: module 'distutils.util' has no attribute 'run_2to3'
13.17 [end of output]
13.17
13.17 note: This error originates from a subprocess, and is likely not a problem with pip.
13.18 error: metadata-generation-failed
```

Tried to replace it with a later version compatable with CKAN 2.10
```
#RUN pip3 install -e git+https://github.com/ckan/ckanext-dcat.git@v1.5.0#egg=ckanext-dcat && \
#pip3 install -r ${APP_DIR}/src/ckanext-dcat/requirements.txt && \
```
- then it builds fine, but when I add the extension in my .env folder I get a `PluginNotFound exception dcat` when running Docker. Don't know what might be the problem
ckan-dev-1 | 2024-05-25 14:05:05,953 INFO [ckan.config.environment] Loading templates from /srv/app/src/ckan/ckan/templates
ckan-dev-1 | Traceback (most recent call last):
ckan-dev-1 | File "/usr/bin/ckan", line 8, in
ckan-dev-1 | sys.exit(ckan())
ckan-dev-1 | File "/usr/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
ckan-dev-1 | return self.main(*args, **kwargs)
ckan-dev-1 | File "/usr/lib/python3.10/site-packages/click/core.py", line 1054, in main
ckan-dev-1 | with self.make_context(prog_name, args, **extra) as ctx:
ckan-dev-1 | File "/usr/lib/python3.10/site-packages/click/core.py", line 920, in make_context
ckan-dev-1 | self.parse_args(ctx, args)
ckan-dev-1 | File "/srv/app/src/ckan/ckan/cli/cli.py", line 121, in parse_args
ckan-dev-1 | result = super().parse_args(ctx, args)
ckan-dev-1 | File "/usr/lib/python3.10/site-packages/click/core.py", line 1613, in parse_args
ckan-dev-1 | rest = super().parse_args(ctx, args)
ckan-dev-1 | File "/usr/lib/python3.10/site-packages/click/core.py", line 1378, in parse_args
ckan-dev-1 | value, args = param.handle_parse_result(ctx, opts, args)
ckan-dev-1 | File "/usr/lib/python3.10/site-packages/click/core.py", line 2360, in handle_parse_result
ckan-dev-1 | value = self.process_value(ctx, value)
ckan-dev-1 | File "/usr/lib/python3.10/site-packages/click/core.py", line 2322, in process_value
ckan-dev-1 | value = self.callback(ctx, self, value)
ckan-dev-1 | File "/srv/app/src/ckan/ckan/cli/cli.py", line 131, in _init_ckan_config
ckan-dev-1 | _add_ctx_object(ctx, value)
ckan-dev-1 | File "/srv/app/src/ckan/ckan/cli/cli.py", line 140, in _add_ctx_object
ckan-dev-1 | ctx.obj = CtxObject(path)
ckan-dev-1 | File "/srv/app/src/ckan/ckan/cli/cli.py", line 57, in __init__
ckan-dev-1 | self.app = make_app(raw_config)
ckan-dev-1 | File "/srv/app/src/ckan/ckan/config/middleware/__init__.py", line 27, in make_app
ckan-dev-1 | load_environment(conf)
ckan-dev-1 | File "/srv/app/src/ckan/ckan/config/environment.py", line 69, in load_environment
ckan-dev-1 | p.load_all()
ckan-dev-1 | File "/srv/app/src/ckan/ckan/plugins/core.py", line 222, in load_all
ckan-dev-1 | load(*plugins)
ckan-dev-1 | File "/srv/app/src/ckan/ckan/plugins/core.py", line 238, in load
ckan-dev-1 | service = _get_service(plugin)
ckan-dev-1 | File "/srv/app/src/ckan/ckan/plugins/core.py", line 346, in _get_service
ckan-dev-1 | raise PluginNotFoundException(plugin_name)
ckan-dev-1 | ckan.plugins.core.PluginNotFoundException: dcat
ckan-dev-1 exited with code 0

I get the same problem when trying to install DOI

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.