datopian / ckan-cloud-helm

CKAN on Kubernetes (k8s) - Helm charts
https://tech.datopian.com/
MIT License
20 stars 10 forks source link

Update giftless storage_class #30

Closed pdelboca closed 4 years ago

pdelboca commented 4 years ago

This PR updates the giftless storage_class to work with the latest refactor of giftless. This PR fixes the following error when deploying:

*** Operational MODE: preforking+threaded ***
Traceback (most recent call last):
  File "./giftless/wsgi_entrypoint.py", line 7, in <module>
    app = init_app()
  File "./giftless/app.py", line 43, in init_app
    transfer.init_flask_app(app)
  File "./giftless/transfer/__init__.py", line 76, in init_flask_app
    adapters = {k: _init_adapter(v) for k, v in config.items()}
  File "./giftless/transfer/__init__.py", line 76, in <dictcomp>
    adapters = {k: _init_adapter(v) for k, v in config.items()}
  File "./giftless/transfer/__init__.py", line 101, in _init_adapter
    adapter: TransferAdapter = factory(**config.get('options', {}))
  File "./giftless/transfer/basic_external.py", line 84, in factory
    storage = get_callable(storage_class, __name__)
  File "./giftless/util.py", line 19, in get_callable
    module = importlib.import_module(module_name, base_package)
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'giftless.transfer.storage'