Hey Guus,
thanks for the links. I had to modify the Dockerfile:
RUN apt-get update && apt-get install --auto-remove -y \
binutils \
gdal-bin \
libgdal-dev \
python3-gdal \
binutils \
libproj-dev \
ffmpeg
Update C env vars so compiler can find gdal
ENV CPLUS_INCLUDE_PATH=/usr/include/gdal
ENV C_INCLUDE_PATH=/usr/include/gdal
I can build, but there are some issues with the db:
moc_web | Exception in thread django-main-thread:
moc_web | Traceback (most recent call last):
moc_web | File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
moc_web | self.run()
moc_web | File "/usr/local/lib/python3.8/threading.py", line 870, in run
moc_web | self._target(self._args, self._kwargs)
moc_web | File "/usr/local/lib/python3.8/site-packages/django/utils/autoreload.py", line 53, in wrapper
moc_web | fn(args, **kwargs)
moc_web | File "/usr/local/lib/python3.8/site-packages/channels/management/commands/runserver.py", line 75, in inner_run
moc_web | self.check(display_num_errors=True)
moc_web | File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 392, in check
moc_web | all_issues = checks.run_checks(
moc_web | File "/usr/local/lib/python3.8/site-packages/django/core/checks/registry.py", line 70, in run_checks
moc_web | new_errors = check(app_configs=app_configs, databases=databases)
moc_web | File "/usr/local/lib/python3.8/site-packages/django/core/checks/urls.py", line 13, in check_url_config
moc_web | return check_resolver(resolver)
moc_web | File "/usr/local/lib/python3.8/site-packages/django/core/checks/urls.py", line 23, in check_resolver
moc_web | return check_method()
moc_web | File "/usr/local/lib/python3.8/site-packages/django/urls/resolvers.py", line 408, in check
moc_web | for pattern in self.url_patterns:
moc_web | File "/usr/local/lib/python3.8/site-packages/django/utils/functional.py", line 48, in get
moc_web | res = instance.dict[self.name] = self.func(instance)
moc_web | File "/usr/local/lib/python3.8/site-packages/django/urls/resolvers.py", line 589, in url_patterns
moc_web | patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
moc_web | File "/usr/local/lib/python3.8/site-packages/django/utils/functional.py", line 48, in get
moc_web | res = instance.dict[self.name] = self.func(instance)
moc_web | File "/usr/local/lib/python3.8/site-packages/django/urls/resolvers.py", line 582, in urlconf_module
moc_web | return import_module(self.urlconf_name)
moc_web | File "/usr/local/lib/python3.8/importlib/init.py", line 127, in import_module
moc_web | return _bootstrap._gcd_import(name[level:], package, level)
moc_web | File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
moc_web | File "<frozen importlib._bootstrap>", line 991, in _find_and_load
moc_web | File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
moc_web | File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
moc_web | File "<frozen importlib._bootstrap_external>", line 783, in exec_module
moc_web | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
moc_web | File "/src/ie/urls.py", line 74, in <module>
moc_web | path('debug/', include(debug_toolbar.urls)),
moc_web | File "/usr/local/lib/python3.8/site-packages/django/urls/conf.py", line 34, in include
moc_web | urlconf_module = import_module(urlconf_module)
moc_web | File "/usr/local/lib/python3.8/importlib/init.py", line 127, in import_module
moc_web | return _bootstrap._gcd_import(name[level:], package, level)
moc_web | File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
moc_web | File "<frozen importlib._bootstrap>", line 991, in _find_and_load
moc_web | File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
moc_web | File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
moc_web | File "<frozen importlib._bootstrap_external>", line 783, in exec_module
moc_web | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
moc_web | File "/usr/local/lib/python3.8/site-packages/debug_toolbar/urls.py", line 5, in <module>
moc_web | urlpatterns = DebugToolbar.get_urls()
moc_web | File "/usr/local/lib/python3.8/site-packages/debug_toolbar/toolbar.py", line 137, in get_urls
moc_web | for panel_class in cls.get_panel_classes():
moc_web | File "/usr/local/lib/python3.8/site-packages/debug_toolbar/toolbar.py", line 118, in get_panel_classes
moc_web | panel_classes = [
moc_web | File "/usr/local/lib/python3.8/site-packages/debug_toolbar/toolbar.py", line 119, in <listcomp>
moc_web | import_string(panel_path) for panel_path in dt_settings.get_panels()
moc_web | File "/usr/local/lib/python3.8/site-packages/django/utils/module_loading.py", line 17, in import_string
moc_web | module = import_module(module_path)
moc_web | File "/usr/local/lib/python3.8/importlib/init.py", line 127, in import_module
moc_web | return _bootstrap._gcd_import(name[level:], package, level)
moc_web | File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
moc_web | File "<frozen importlib._bootstrap>", line 991, in _find_and_load
moc_web | File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
moc_web | File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
moc_web | File "<frozen importlib._bootstrap_external>", line 783, in exec_module
moc_web | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
moc_web | File "/usr/local/lib/python3.8/site-packages/debug_toolbar/panels/cache.py", line 155, in <module>
moc_web | middleware_cache.caches = CacheHandlerPatch()
moc_web | File "/usr/local/lib/python3.8/site-packages/debug_toolbar/panels/cache.py", line 145, in init
moc_web | super().init(settings=settings)
moc_web | TypeError: init() got an unexpected keyword argument 'settings'
Let me know, if you have a guess. I will look at it later though.
Thanks in advance!
Last edited: 2022-05-15 20:02:46.128694+00:00