Open miqbal23 opened 3 years ago
ckanext-cloudstorage is currently Py2 only, while you're trying to use it with Python 3.8. Try out this PR: https://github.com/TkTech/ckanext-cloudstorage/pull/42 for Py3.8 support.
I tried applied the PR, but now I got missing ckanapi
library
ckan | Traceback (most recent call last):
ckan | File "/usr/bin/ckan", line 33, in <module>
ckan | sys.exit(load_entry_point('ckan', 'console_scripts', 'ckan')())
ckan | File "/usr/lib/python3.8/site-packages/click/core.py", line 722, in __call__
ckan | return self.main(*args, **kwargs)
ckan | File "/usr/lib/python3.8/site-packages/click/core.py", line 696, in main
ckan | with self.make_context(prog_name, args, **extra) as ctx:
ckan | File "/usr/lib/python3.8/site-packages/click/core.py", line 621, in make_context
ckan | self.parse_args(ctx, args)
ckan | File "/usr/lib/python3.8/site-packages/click/core.py", line 1018, in parse_args
ckan | rest = Command.parse_args(self, ctx, args)
ckan | File "/usr/lib/python3.8/site-packages/click/core.py", line 880, in parse_args
ckan | value, args = param.handle_parse_result(ctx, opts, args)
ckan | File "/usr/lib/python3.8/site-packages/click/core.py", line 1403, in handle_parse_result
ckan | value = invoke_param_callback(
ckan | File "/usr/lib/python3.8/site-packages/click/core.py", line 78, in invoke_param_callback
ckan | return callback(ctx, param, value)
ckan | File "/srv/app/src/ckan/ckan/cli/cli.py", line 102, in _init_ckan_config
ckan | ctx.obj = CkanCommand(value)
ckan | File "/srv/app/src/ckan/ckan/cli/cli.py", line 52, in __init__
ckan | self.app = make_app(self.config)
ckan | File "/srv/app/src/ckan/ckan/config/middleware/__init__.py", line 56, in make_app
ckan | load_environment(conf)
ckan | File "/srv/app/src/ckan/ckan/config/environment.py", line 123, in load_environment
ckan | p.load_all()
ckan | File "/srv/app/src/ckan/ckan/plugins/core.py", line 140, in load_all
ckan | load(*plugins)
ckan | File "/srv/app/src/ckan/ckan/plugins/core.py", line 154, in load
ckan | service = _get_service(plugin)
ckan | File "/srv/app/src/ckan/ckan/plugins/core.py", line 256, in _get_service
ckan | return plugin.load()(name=plugin_name)
ckan | File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2450, in load
ckan | return self.resolve()
ckan | File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2456, in resolve
ckan | module = __import__(self.module_name, fromlist=['__name__'], level=0)
ckan | File "/usr/lib/python3.8/site-packages/ckanext/cloudstorage/plugin/__init__.py", line 13, in <module>
ckan | from ckanext.cloudstorage.plugin.flask_plugin import MixinPlugin
ckan | File "/usr/lib/python3.8/site-packages/ckanext/cloudstorage/plugin/flask_plugin.py", line 5, in <module>
ckan | from ckanext.cloudstorage.views import get_blueprints
ckan | File "/usr/lib/python3.8/site-packages/ckanext/cloudstorage/views.py", line 4, in <module>
ckan | import ckanext.cloudstorage.utils as utils
ckan | File "/usr/lib/python3.8/site-packages/ckanext/cloudstorage/utils.py", line 13, in <module>
ckan | from ckanapi import LocalCKAN
ckan | ModuleNotFoundError: No module named 'ckanapi'
Hello, I'm currently trying to deploy CKAN container with your extension (using keitaro's docker-ckan). I have followed the instruction and the build works fine, but the
ckan
container exited because of missing moduleIs there any solution to this?