-
-
Notifications
You must be signed in to change notification settings - Fork 55
Description
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