TkTech / ckanext-cloudstorage

Implements support for resource storage against multiple popular providers via apache-libcloud (S3, Azure Storage, etc...)
MIT License
35 stars 55 forks source link

Is this extension suitable for CKAN2.10.3 (new version)? #60

Open hongjie123 opened 5 months ago

hongjie123 commented 5 months ago

The version of ckan I am using is 2.10.3. After installing the ckanext cloudstorage extension, restarting ckan cannot run properly, and the error is as follows:

error1: File "/usr/lib/ckan/default/src/ckanext-cloudstorage/ckanext/cloudstorage/storage.py", line 12, in from pylons import config ModuleNotFoundError: No module named 'pylons' Method taken1: pip install pylons ##Successfully installed Pylons-1.0.3

error2: File "/usr/lib/ckan/default/lib/python3.8/site-packages/pylons/controllers/core.py", line 108 except HTTPException, httpe: ^ SyntaxError: invalid syntax Method taken2: Modify the core. py file, except HTTPException, httpe:--》except HTTPException as httpe:

error3: File "/usr/lib/ckan/default/lib/python3.8/site-packages/pylons/controllers/xmlrpc.py", line 5, in import xmlrpclib ModuleNotFoundError: No module named 'xmlrpclib' Method taken3: Modify the xmlrpc.py file, import xmlrpclib --》 import xmlrpc.client

error4: File "/usr/lib/ckan/default/src/ckan/ckan/plugins/init.py", line 12, in getattr raise AttributeError(f"module '{name}' has no attribute '{name}'") AttributeError: module 'ckan.plugins' has no attribute 'IRoutes'

How can I solve the above problem? Is it because the version of ckan is incompatible with the version of cloudstorage?

CKAN == 2.10.3 Python == 3.8.10