[ckan-dev] ckanext-datajson installation issues
David Read
david.read at hackneyworkshop.com
Fri Oct 3 13:20:40 UTC 2014
Do paste the error message for when you try that.
Dave
On 3 October 2014 14:16, Renato Guevara <guevara.renato at gmail.com> wrote:
> Thank you for your response.
>
> I actually did try pasting it in the apache.wsgi file, but unfortunately,
> this issue still continues.
>
> On Fri, Oct 3, 2014 at 9:11 AM, David Read <david.read at hackneyworkshop.com>
> wrote:
>>
>> It could well be the dependency bug mentioned.
>>
>> In your case, the wsgi.py file it refers to is:
>> /etc/ckan/default/apache.wsgi
>>
>> so try editing that as it suggests and restarting apache to see if the
>> error goes.
>>
>> David
>>
>> On 29 September 2014 13:58, Renato Guevara <guevara.renato at gmail.com>
>> wrote:
>> > 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
>> >
>> > _______________________________________________
>> > ckan-dev mailing list
>> > ckan-dev at lists.okfn.org
>> > https://lists.okfn.org/mailman/listinfo/ckan-dev
>> > Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>> >
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
More information about the ckan-dev
mailing list