[ckan-dev] ckanext-datajson installation issues

Renato Guevara guevara.renato at gmail.com
Mon Sep 29 12:58:48 UTC 2014


I've been trying to install ckanext-datajson using the the instructions
located at this site:

https://github.com/HHS/ckanext-datajson

There is a section where it says that there may be a dependency bug.  I
couldn't find a wsgi.py file with the line:

from paste.deploy import loadapp

So, I'm not sure if this applied to me or not.  However, when I restart
apache2, and I try to go to the ckan server, I get a server error.  When I
look at the logs, I get the following:

[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1] mod_wsgi (pid=31295):
Target WSGI script '/etc/ckan/default/apache.wsgi' cannot be loaded as
Python module.
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1] mod_wsgi (pid=31295):
Exception occurred processing WSGI script '/etc/ckan/default/apache.wsgi'.
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1] Traceback (most
recent call last):
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]   File
"/etc/ckan/default/apache.wsgi", line 5, in <module>
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]     from paste.deploy
import loadapp
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]   File
"/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/__init__.py",
line 3, in <module>
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]     from
paste.deploy.loadwsgi import *
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]   File
"/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 8, in <module>
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]     import
pkg_resources
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]   File
"/usr/lib/ckan/default/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py",
line 2727, in <module>
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]
add_activation_listener(lambda dist: dist.activate())
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]   File
"/usr/lib/ckan/default/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py",
line 700, in subscribe
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]     callback(dist)
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]   File
"/usr/lib/ckan/default/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py",
line 2727, in <lambda>
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]
add_activation_listener(lambda dist: dist.activate())
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]   File
"/usr/lib/ckan/default/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py",
line 2230, in activate
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]
map(declare_namespace, self._get_metadata('namespace_packages.txt'))
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]   File
"/usr/lib/ckan/default/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py",
line 1827, in declare_namespace
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]
_handle_ns(packageName, path_item)
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]   File
"/usr/lib/ckan/default/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py",
line 1797, in _handle_ns
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]
loader.load_module(packageName); module.__path__ = path
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]   File
"/usr/lib/python2.7/pkgutil.py", line 246, in load_module
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]     mod =
imp.load_module(fullname, self.file, self.filename, self.etc)
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]   File
"/usr/lib/ckan/default/lib/python2.7/site-packages/ckanext_datajson-0.1-py2.7.egg/ckanext/datajson/__init__.py",
line 9, in <module>
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]     from plugin
import DataJsonPlugin
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]   File
"/usr/lib/ckan/default/lib/python2.7/site-packages/ckanext_datajson-0.1-py2.7.egg/ckanext/datajson/plugin.py",
line 1, in <module>
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]     import
ckan.plugins as p
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]   File
"/usr/lib/ckan/default/src/ckan/ckan/plugins/__init__.py", line 5, in
<module>
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]     import toolkit as
_toolkit
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]   File
"/usr/lib/ckan/default/src/ckan/ckan/plugins/toolkit.py", line 4, in
<module>
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1]     import
paste.deploy.converters as converters
[Mon Sep 29 05:44:03 2014] [error] [client 127.0.0.1] AttributeError:
'module' object has no attribute 'deploy'

What am I doing wrong or what am I forgetting to do?

Thank you in advance.

Renato Guevara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140929/a13e0531/attachment-0002.html>


More information about the ckan-dev mailing list