[ckan-dev] ImportError: No module named ckan.lib.cli
Judith Moran
Judith.Moran at nt.gov.au
Mon May 20 01:16:25 UTC 2019
Hi,
I am starting ckan via httpd.
I read this error related to virtual environment.
So I stopped httpd and started virtual - . /usr/lib/ckan/default/bin/activate but still get the error.
Gosh this is just too all over the place?? For a person who just wants to have CKAN as a simple customisable product and can run as per guide I am afraid it fails badly.
The error.
ckanapi dump datasets --all -O my_datasets.jsonl
Traceback (most recent call last):
File "/usr/bin/ckanapi", line 9, in <module>
load_entry_point('ckanapi==4.1', 'console_scripts', 'ckanapi')()
File "/usr/lib/python2.7/site-packages/ckanapi/cli/main.py", line 94, in main
return _switch_to_paster(arguments)
File "/usr/lib/python2.7/site-packages/ckanapi/cli/main.py", line 142, in _switch_to_paster
sys.exit(load_entry_point('PasteScript', 'console_scripts', 'paster')())
File "/usr/lib/python2.7/site-packages/paste/script/command.py", line 103, in run
command = commands[command_name].load()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2343, in load
return self.resolve()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2349, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python2.7/site-packages/ckanapi/cli/paster.py", line 2, in <module>
from ckan.lib.cli import CkanCommand
ImportError: No module named ckan.lib.cli
Judy Moran
Manager Data Strategy
Department of Corporate and Information Services
Northern Territory Government of Australia
T: 892 96550
E: DataStrategy.NTG at nt.gov.au<mailto:DataStrategy.NTG at nt.gov.au>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20190520/b4140405/attachment.html>
More information about the ckan-dev
mailing list