DataShades / ckanext-charts

GNU Affero General Public License v3.0
4 stars 1 forks source link

install from source missing svg template #10

Closed brooks-eco closed 1 month ago

brooks-eco commented 2 months ago

installing on AWS Marketplace: CKAN 2.11 pre-configured by Link Digital.

install from git source using

sudo /usr/lib/ckan/default/bin/python3.12 -m pip install 'git+https://github.com/DataShades/ckanext-charts.git#egg=ckanext-charts' does not copy the svg template folder https://github.com/DataShades/ckanext-charts/tree/master/ckanext/charts/templates/charts/snippets/svg

Error log

  File "charts/snippets/chart_create_form§resource_id,settings,form_builder,errors.html", line 1, in template
  File "/usr/lib/ckan/default/lib/python3.12/site-packages/ckanext/charts/templates/charts/snippets/chart_create_form.html", line 29, in top-level template code
    {% snippet "charts/snippets/svg/loader.svg" %}
    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/ckan/default/lib/python3.12/site-packages/jinja2/runtime.py", line 782, in _invoke
    rv = self._func(*arguments)
         ^^^^^^^^^^^^^^^^^^^^^^
  File "charts/snippets/svg/loader§.svg", line 1, in template
jinja2.exceptions.TemplatesNotFound: none of the templates given were found: charts/snippets/svg/loader.svg

copied svg folder from source git zip into the installed location which for me is /usr/lib/ckan/default/lib/python3.12/site-packages/ckanext/charts/templates/charts/snippets/svg/

now working well.

mutantsan commented 1 month ago

Thanks, @brooks-eco. The .svg ext must be included to the MANIFEST.in, I'll do it.