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

PDF_View returns Internal server error #39

Open
turbatuandrei opened this issue Feb 12, 2021 · 5 comments
Open

PDF_View returns Internal server error #39

turbatuandrei opened this issue Feb 12, 2021 · 5 comments

Comments

@turbatuandrei
Copy link

After adding the plugin and default_views, whenever I try to save a view I get and internal server error in front end.

and:

2021-02-12 17:02:50,457 ERROR [ckan.config.middleware.flask_app] Could not build url for endpoint 'package.resource_view' with values ['id', 'resource_id', 'view_id']. Did you mean 'dataset_resource.view' instead?

@taylordowns2000
Copy link

taylordowns2000 commented May 21, 2021

Same here. New to CKAN so I'm assuming I'm doing something wrong. Does anyone have installation tips that go beyond https://github.com/ckan/ckanext-pdfview#installation ?

Out of curiosity, @turbatuandrei , did you install ckan from source or package? (I'm on 2.9.2 from package)

@turbatuandrei
Copy link
Author

@taylordowns2000 I installed it from source.

@amercader
Copy link
Member

I can't reproduce this, are you able to provide a full stacktrace for the error?

@linforestzhang
Copy link

Same here for CKAN 2.10

@linforestzhang
Copy link

Error Log:

2024-01-04 11:35:09,068 INFO [ckan.cli] Using configuration file /etc/ckan/default/ckan.ini
2024-01-04 11:35:09,068 INFO [ckan.config.environment] Loading static files from public
2024-01-04 11:35:11,292 INFO [ckan.config.environment] Loading templates from /usr/lib/ckan/default/src/ckan/ckan/templates
Traceback (most recent call last):
File "/usr/lib/ckan/default/bin/ckan", line 33, in
sys.exit(load_entry_point('ckan', 'console_scripts', 'ckan')())
File "/usr/lib/ckan/default/lib/python3.10/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/usr/lib/ckan/default/lib/python3.10/site-packages/click/core.py", line 1054, in main
with self.make_context(prog_name, args, **extra) as ctx:
File "/usr/lib/ckan/default/lib/python3.10/site-packages/click/core.py", line 920, in make_context
self.parse_args(ctx, args)
File "/usr/lib/ckan/default/src/ckan/ckan/cli/cli.py", line 121, in parse_args
result = super().parse_args(ctx, args)
File "/usr/lib/ckan/default/lib/python3.10/site-packages/click/core.py", line 1613, in parse_args
rest = super().parse_args(ctx, args)
File "/usr/lib/ckan/default/lib/python3.10/site-packages/click/core.py", line 1378, in parse_args
value, args = param.handle_parse_result(ctx, opts, args)
File "/usr/lib/ckan/default/lib/python3.10/site-packages/click/core.py", line 2360, in handle_parse_result
value = self.process_value(ctx, value)
File "/usr/lib/ckan/default/lib/python3.10/site-packages/click/core.py", line 2322, in process_value
value = self.callback(ctx, self, value)
File "/usr/lib/ckan/default/src/ckan/ckan/cli/cli.py", line 131, in _init_ckan_config
_add_ctx_object(ctx, value)
File "/usr/lib/ckan/default/src/ckan/ckan/cli/cli.py", line 140, in _add_ctx_object
ctx.obj = CtxObject(path)
File "/usr/lib/ckan/default/src/ckan/ckan/cli/cli.py", line 57, in init
self.app = make_app(raw_config)
File "/usr/lib/ckan/default/src/ckan/ckan/config/middleware/init.py", line 27, in make_app
load_environment(conf)
File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 69, in load_environment
p.load_all()
File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 222, in load_all
load(*plugins)
File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 238, in load
service = _get_service(plugin)
File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 346, in _get_service
raise PluginNotFoundException(plugin_name)
ckan.plugins.core.PluginNotFoundException: pdf_view

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

4 participants