ckan / ckan/ckan-docker

ckan.plugins.base.PluginNotFoundException: Interface student does not exist

Open
#248 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
151
Forks
279
PR merge metrics
No merged PRs in 30d

Description

I am trying to create an extension and I was following the videos of LINK DIGITAL. Right after creating an extension, i got an issue.

`ckan-dev-1 | /srv/app/src/ckan/ckan/cli/cli.py:7: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
ckan-dev-1 | from pkg_resources import iter_entry_points
ckan-dev-1 | 2026-01-29 18:21:06,326 INFO [ckan.cli] Using configuration file /srv/app/ckan.ini
ckan-dev-1 | 2026-01-29 18:21:06,326 INFO [ckan.config.environment] Loading static files from public
ckan-dev-1 | 2026-01-29 18:21:06,437 INFO [ckanext.envvars.plugin] Loading new plugin: student
ckan-dev-1 | Traceback (most recent call last):
ckan-dev-1 | File "/usr/local/bin/ckan", line 7, in
ckan-dev-1 | sys.exit(ckan())
ckan-dev-1 | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
ckan-dev-1 | return self.main(*args, **kwargs)
ckan-dev-1 | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1077, in main
ckan-dev-1 | with self.make_context(prog_name, args, **extra) as ctx:
ckan-dev-1 | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 943, in make_context
ckan-dev-1 | self.parse_args(ctx, args)
ckan-dev-1 | File "/srv/app/src/ckan/ckan/cli/cli.py", line 120, in parse_args
ckan-dev-1 | result = super().parse_args(ctx, args)
ckan-dev-1 | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1644, in parse_args
ckan-dev-1 | rest = super().parse_args(ctx, args)
ckan-dev-1 | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1408, in parse_args
ckan-dev-1 | value, args = param.handle_parse_result(ctx, opts, args)
ckan-dev-1 | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 2400, in handle_parse_result
ckan-dev-1 | value = self.process_value(ctx, value)
ckan-dev-1 | File "/usr/local/lib/python3.10/site-packages/click/core.py", line 2362, 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 130, 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 139, in _add_ctx_object
ckan-dev-1 | ctx.obj = CtxObject(path)
ckan-dev-1 | File "/srv/app/src/ckan/ckan/cli/cli.py", line 56, 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 29, in make_app
ckan-dev-1 | load_environment(conf)
ckan-dev-1 | File "/srv/app/src/ckan/ckan/config/environment.py", line 68, in load_environment
ckan-dev-1 | p.load_all()
ckan-dev-1 | File "/srv/app/src/ckan/ckan/plugins/core.py", line 148, in load_all
ckan-dev-1 | load(*plugins)
ckan-dev-1 | File "/srv/app/src/ckan/ckan/plugins/core.py", line 180, in load
ckan-dev-1 | plugins_update()
ckan-dev-1 | File "/srv/app/src/ckan/ckan/plugins/core.py", line 136, in plugins_update
ckan-dev-1 | environment.update_config()
ckan-dev-1 | File "/srv/app/src/ckan/ckan/config/environment.py", line 134, in update_config
ckan-dev-1 | plugin.update_config(config)
ckan-dev-1 | File "/srv/app/src/ckanext-envvars/ckanext/envvars/plugin.py", line 79, in update_config
ckan-dev-1 | plugins.load(plugin)
ckan-dev-1 | File "/srv/app/src/ckan/ckan/plugins/core.py", line 164, in load
ckan-dev-1 | service = _get_service(plugin)
ckan-dev-1 | File "/srv/app/src/ckan/ckan/plugins/core.py", line 285, in _get_service
ckan-dev-1 | raise PluginNotFoundException(plugin_name)
ckan-dev-1 | ckan.plugins.base.PluginNotFoundException: Interface student does not exist
ckan-dev-1 | Exit with status 1. Restarting.`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with ckan/cli/cli.py, ckan/config/environment.py, and ckan/plugins/core.py, following the traceback through ckanext/envvars/plugin.py. Check how the student extension is registered and loaded in the Docker environment; done means the CKAN process starts without PluginNotFoundException.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker-compose, python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.