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

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

Open
hongjie123 opened this issue Mar 25, 2024 · 0 comments
Open

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

hongjie123 opened this issue Mar 25, 2024 · 0 comments

Comments

@hongjie123
Copy link

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

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

No branches or pull requests

1 participant