我尝试按照GIT page中描述的步骤为CKAN安装ckanext-archiver插件。
但是,当我重新启动Web服务器时,会发生以下错误。
我尝试使用' pip install '和' python setup.py安装/开发'直接从git,下载zip,克隆我的机器中的代码。
刷新服务器时错误始终相同:
Source Template Extra Data Traceback
WebError Traceback:
⇝ TemplateNotFound: package\resource_read.html
Module ckan.controllers.package:1142 in resource_read
>> return render(template, extra_vars=vars)
Module ckan.lib.base:216 in render
>> loader_class=loader_class)
Module pylons.templating:249 in cached_template
>> return render_func()
Module ckan.lib.base:154 in render_template
>> return render_jinja2(template_name, globs)
Module ckan.lib.base:104 in render_jinja2
>> return template.render(**extra_vars)
Module jinja2.environment:894 in render
>> return self.environment.handle_exception(exc_info, True)
Module c:\users\bp\envs\ckan2.5.2env\src\ckanext-archiver\ckanext\archiver\templates\package\resource_read.html:1 in top-level template
>> {% ckan_extends %}
Module ckan.lib.jinja_extensions:182 in get_source
>> pieces = loaders.split_template_path(template)
Module jinja2.loaders:33 in split_template_path
>> raise TemplateNotFound(template)
TemplateNotFound: package\resource_read.html
我在Windows 8上安装了CKAN 2.5.2,我设法安装了其他扩展程序。
引用的页面确实存在于路径中,它具有以下内容:
{% ckan_extends %}
{% block resource_additional_information_inner %}
{# This is copied from core ckan, but with the changes marked #}
<div class="module-content">
<h2>{{ _('Additional Information') }}</h2>
<table class="table table-striped table-bordered table-condensed" data-module="table-toggle-more">
<thead>
<tr>
<th scope="col">{{ _('Field') }}</th>
<th scope="col">{{ _('Value') }}</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">{{ _('Last updated') }}</th>
<td>{{ h.render_datetime(res.last_modified) or h.render_datetime(res.revision_timestamp) or h.render_datetime(res.created) or _('unknown') }}</td>
</tr>
<tr>
<th scope="row">{{ _('Created') }}</th>
<td>{{ h.render_datetime(res.created) or _('unknown') }}</td>
</tr>
<tr>
<th scope="row">{{ _('Format') }}</th>
<td>{{ res.mimetype_inner or res.mimetype or res.format or _('unknown') }}</td>
</tr>
<tr>
<th scope="row">{{ _('License') }}</th>
<td>{% snippet "snippets/license.html", pkg_dict=pkg, text_only=True %}</td>
</tr>
{# We replaced h.format_resource_items with h.archiver_format_resource_items so that we can hide the archiver key #}
{% for key, value in h.archiver_format_resource_items(res.items()) %}
<tr class="toggle-more"><th scope="row">{{ key }}</th><td>{{ value }}</td></tr>
{% endfor %}
</tbody>
</table>
</div>
{{ h.archiver_is_resource_broken_html(c.resource) }}<br>
{{ h.archiver_is_resource_cached_html(c.resource) }}
{% endblock %}
有人能指出我做错了吗?