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

Prerendering vector tiles does not work: TypeError: _path() got an unexpected keyword argument 'distill_status_codes' #32

Open
nesnoj opened this issue Jun 1, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nesnoj
Copy link
Member

nesnoj commented Jun 1, 2023

Attempt to prerender vector tiles via
docker-compose -f production.yml run --name egon_distill -e DISTILL=True django /bin/bash -c "python manage.py collectstatic --noinput; python manage.py distill-local --force --exclude-staticfiles ./distill"
throws

Starting egon_wam_redis_1    ... done
Starting egon_wam_postgres_1 ... done
PostgreSQL is available

245 static files copied to '/app/staticfiles', 731 post-processed.
Traceback (most recent call last):
  File "/app/manage.py", line 30, in <module>
    execute_from_command_line(sys.argv)
  File "/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 257, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 39, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/venv/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/venv/lib/python3.9/site-packages/django_distill/management/commands/distill-local.py", line 7, in <module>
    from django_distill.renderer import (run_collectstatic, render_to_dir,
  File "/venv/lib/python3.9/site-packages/django_distill/renderer.py", line 21, in <module>
    urlconf = __import__(settings.ROOT_URLCONF, {}, {}, [''])
  File "/app/config/urls.py", line 14, in <module>
    path("map/", include("django_mapengine.urls")),
  File "/venv/lib/python3.9/site-packages/django/urls/conf.py", line 34, in include
    urlconf_module = import_module(urlconf_module)
  File "/venv/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/venv/lib/python3.9/site-packages/django_mapengine/urls.py", line 35, in <module>
    urlpatterns += [
  File "/venv/lib/python3.9/site-packages/django_mapengine/urls.py", line 36, in <listcomp>
    distill_path(
  File "/venv/lib/python3.9/site-packages/django_distill/distill.py", line 46, in distill_path
    return _distill_url(path, *a, **k)
  File "/venv/lib/python3.9/site-packages/django_distill/distill.py", line 21, in _distill_url
    url = func(*a, **k)
TypeError: _path() got an unexpected keyword argument 'distill_status_codes'

Package incompatibilities?

@nesnoj nesnoj added the bug Something isn't working label Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants