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

Use an Aptfile to install geodjango system dependencies. #86

Closed
wants to merge 11 commits into from
Closed

Conversation

n1k0
Copy link
Member

@n1k0 n1k0 commented Nov 15, 2020

This is to circumvent an ongoing issue with Scalingo's geo-buildpack.

Docs:

@n1k0
Copy link
Member Author

n1k0 commented Nov 15, 2020

Blocked here :

OSError: libblas.so.3: cannot open shared object file: No such file or directory

Details:

Sqlite3 successfully installed.
-----> $ python manage.py collectstatic --noinput
       Traceback (most recent call last):
         File "manage.py", line 21, in <module>
           main()
         File "manage.py", line 17, in main
           execute_from_command_line(sys.argv)
         File "/app/.scalingo/python/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
           utility.execute()
         File "/app/.scalingo/python/lib/python3.8/site-packages/django/core/management/__init__.py", line 377, in execute
           django.setup()
         File "/app/.scalingo/python/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
           apps.populate(settings.INSTALLED_APPS)
         File "/app/.scalingo/python/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
           app_config.import_models()
         File "/app/.scalingo/python/lib/python3.8/site-packages/django/apps/config.py", line 211, in import_models
           self.models_module = import_module(models_module_name)
         File "/app/.scalingo/python/lib/python3.8/importlib/__init__.py", line 127, in import_module
           return _bootstrap._gcd_import(name[level:], package, level)
         File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
         File "<frozen importlib._bootstrap>", line 991, in _find_and_load
         File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
         File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
         File "<frozen importlib._bootstrap_external>", line 783, in exec_module
         File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
         File "/build/1a0165d2-f674-4c7f-9ea6-f8f9a34e9f53/erp/models.py", line 6, in <module>
           from django.contrib.gis.db import models
         File "/app/.scalingo/python/lib/python3.8/site-packages/django/contrib/gis/db/models/__init__.py", line 3, in <module>
           import django.contrib.gis.db.models.functions  # NOQA
         File "/app/.scalingo/python/lib/python3.8/site-packages/django/contrib/gis/db/models/functions.py", line 3, in <module>
           from django.contrib.gis.db.models.fields import BaseSpatialField, GeometryField
         File "/app/.scalingo/python/lib/python3.8/site-packages/django/contrib/gis/db/models/fields.py", line 3, in <module>
           from django.contrib.gis import forms, gdal
         File "/app/.scalingo/python/lib/python3.8/site-packages/django/contrib/gis/forms/__init__.py", line 3, in <module>
           from .fields import (  # NOQA
         File "/app/.scalingo/python/lib/python3.8/site-packages/django/contrib/gis/forms/fields.py", line 2, in <module>
           from django.contrib.gis.gdal import GDALException
         File "/app/.scalingo/python/lib/python3.8/site-packages/django/contrib/gis/gdal/__init__.py", line 28, in <module>
           from django.contrib.gis.gdal.datasource import DataSource
         File "/app/.scalingo/python/lib/python3.8/site-packages/django/contrib/gis/gdal/datasource.py", line 39, in <module>
           from django.contrib.gis.gdal.driver import Driver
         File "/app/.scalingo/python/lib/python3.8/site-packages/django/contrib/gis/gdal/driver.py", line 5, in <module>
           from django.contrib.gis.gdal.prototypes import ds as vcapi, raster as rcapi
         File "/app/.scalingo/python/lib/python3.8/site-packages/django/contrib/gis/gdal/prototypes/ds.py", line 9, in <module>
           from django.contrib.gis.gdal.libgdal import GDAL_VERSION, lgdal
         File "/app/.scalingo/python/lib/python3.8/site-packages/django/contrib/gis/gdal/libgdal.py", line 50, in <module>
           lgdal = CDLL(lib_path)
         File "/app/.scalingo/python/lib/python3.8/ctypes/__init__.py", line 373, in __init__
           self._handle = _dlopen(self._name, mode)
       OSError: libblas.so.3: cannot open shared object file: No such file or directory
 !     Error while running '$ python manage.py collectstatic --noinput'.

Found a similar issue reported to heroku apt-buildpack, with no fix mentioned so far :(

@n1k0
Copy link
Member Author

n1k0 commented Nov 15, 2020

The standard geo-buildpack seems to be working again on master. I'm closing this, but may reopen if this happens again.

@n1k0 n1k0 closed this Nov 15, 2020
@n1k0 n1k0 deleted the aptfile branch February 8, 2021 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant