[OSGeoLive] #2372: GeoNode upgrade to 3.3.x

OSGeoLive trac_osgeolive at osgeo.org
Tue Jul 12 11:50:46 PDT 2022


#2372: GeoNode upgrade to 3.3.x
-----------------------+----------------------------
 Reporter:  kalxas     |       Owner:  osgeolive@…
     Type:  defect     |      Status:  new
 Priority:  critical   |   Milestone:  OSGeoLive15.0
Component:  OSGeoLive  |  Resolution:
 Keywords:  GeoNode    |
-----------------------+----------------------------
Comment (by kalxas):

 {{{
 Configuring GeoNode
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/django/template/utils.py", line 66,
 in __getitem__
     return self._engines[alias]
 KeyError: 'GeoNode Project Templates'

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/usr/lib/python3/dist-
 packages/django/template/backends/django.py", line 121, in
 get_package_libraries
     module = import_module(entry[1])
   File "/usr/lib/python3.10/importlib/__init__.py", line 126, in
 import_module
     return _bootstrap._gcd_import(name[level:], package, level)
   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
   File "<frozen importlib._bootstrap>", line 1006, in
 _find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
   File "<frozen importlib._bootstrap>", line 241, in
 _call_with_frames_removed
   File "/usr/lib/python3/dist-
 packages/markdownify/templatetags/markdownify.py", line 5, in <module>
     from bleach.css_sanitizer import ALLOWED_CSS_PROPERTIES
 ModuleNotFoundError: No module named 'bleach.css_sanitizer'

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/usr/bin/django-admin", line 5, in <module>
     management.execute_from_command_line()
   File "/usr/lib/python3/dist-
 packages/django/core/management/__init__.py", line 381, in
 execute_from_command_line
     utility.execute()
   File "/usr/lib/python3/dist-
 packages/django/core/management/__init__.py", line 375, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
   File "/usr/lib/python3/dist-packages/django/core/management/base.py",
 line 323, in run_from_argv
     self.execute(*args, **cmd_options)
   File "/usr/lib/python3/dist-packages/django/core/management/base.py",
 line 361, in execute
     self.check()
   File "/usr/lib/python3/dist-packages/django/core/management/base.py",
 line 387, in check
     all_issues = self._run_checks(
   File "/usr/lib/python3/dist-packages/django/core/management/base.py",
 line 377, in _run_checks
     return checks.run_checks(**kwargs)
   File "/usr/lib/python3/dist-packages/django/core/checks/registry.py",
 line 72, in run_checks
     new_errors = check(app_configs=app_configs)
   File "/usr/lib/python3/dist-packages/django/contrib/admin/checks.py",
 line 79, in check_dependencies
     for engine in engines.all():
   File "/usr/lib/python3/dist-packages/django/template/utils.py", line 90,
 in all
     return [self[alias] for alias in self]
   File "/usr/lib/python3/dist-packages/django/template/utils.py", line 90,
 in <listcomp>
     return [self[alias] for alias in self]
   File "/usr/lib/python3/dist-packages/django/template/utils.py", line 81,
 in __getitem__
     engine = engine_cls(params)
   File "/usr/lib/python3/dist-
 packages/django/template/backends/django.py", line 25, in __init__
     options['libraries'] = self.get_templatetag_libraries(libraries)
   File "/usr/lib/python3/dist-
 packages/django/template/backends/django.py", line 43, in
 get_templatetag_libraries
     libraries = get_installed_libraries()
   File "/usr/lib/python3/dist-
 packages/django/template/backends/django.py", line 108, in
 get_installed_libraries
     for name in get_package_libraries(pkg):
   File "/usr/lib/python3/dist-
 packages/django/template/backends/django.py", line 123, in
 get_package_libraries
     raise InvalidTemplateLibrary(
 django.template.library.InvalidTemplateLibrary: Invalid template library
 specified. ImportError raised when trying to load
 'markdownify.templatetags.markdownify': No module named
 'bleach.css_sanitizer'
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/django/template/utils.py", line 66,
 in __getitem__
     return self._engines[alias]
 KeyError: 'GeoNode Project Templates'
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/osgeolive/ticket/2372#comment:5>
OSGeoLive <https://live.osgeo.org/>
self-contained bootable DVD, USB thumb drive or Virtual Machine based on Lubuntu, that allows you to try a wide variety of open source geospatial software without installing anything.


More information about the osgeolive mailing list