[ckan-dev] extension issues: ckanext-scheming

Ian Ward ian at excess.org
Sat Oct 29 00:17:36 UTC 2016


did you create a 'ckanext' package somewhere that wasn't declared as a
namespace package? If you run these in a python interpreter with your
virtualenv activated what do they print?

>>> import ckanext; print ckanext

>>> from ckanext import scheming; print scheming


On Fri, Oct 28, 2016 at 7:58 PM, Thomas Heetderks - MSU
<thomas.heetderks at montana.edu> wrote:
> Hi -
>
> We have CKAN 2.5.2 up and running on CentOS 6.8
>
> I have been trying to install ckanext-scheming
> The pip install actually went fine...
>
> But when I tried to add scheming_datasets to the ckan.plugins setting in the
> production.ini file-- I got this error:
>
> ImportError: No module named scheming.plugins
>
> The entire trace-back follows--
>
> Thanks in advance for any and all help!
>
> BTW: can anyone suggest the BEST way to extend the metadata schema?
> (I have found two so far, this extension and IDatasetForm, which I also had
> trouble with)
> ...I get the feeling I am somehow making this extension stuff harder than it
> should be :)
>
> - Thomas Heetderks
>
> ------------
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142] mod_wsgi
> (pid=12165): Target WSGI script '/etc/ckan/default/apache.wsgi' cannot be
> loaded as Python module.
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142] mod_wsgi
> (pid=12165): Exception occurred processing WSGI script
> '/etc/ckan/default/apache.wsgi'.
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142] Traceback (most
> recent call last):
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]   File
> "/etc/ckan/default/apache.wsgi", line 18, in <module>
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]     application =
> loadapp('config:%s' % config_filepath)
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]   File
> "/usr/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247,
> in loadapp
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]     return
> loadobj(APP, uri, name=name, **kw)
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]   File
> "/usr/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272,
> in loadobj
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]     return
> context.create()
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]   File
> "/usr/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710,
> in create
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]     return
> self.object_type.invoke(self)
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]   File
> "/usr/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146,
> in invoke
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]     return
> fix_call(context.object, context.global_conf, **context.local_conf)
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]   File
> "/usr/local/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in
> fix_call
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]     val =
> callable(*args, **kw)
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]   File
> "/usr/lib/ckan/default/src/ckan/ckan/config/middleware.py", line 58, in
> make_app
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]
> load_environment(conf, app_conf)
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]   File
> "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 232, in
> load_environment
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]
> p.load_all(config)
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]   File
> "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 134, in load_all
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]     load(*plugins)
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]   File
> "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 148, in load
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]     service =
> _get_service(plugin)
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]   File
> "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 254, in
> _get_service
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]     return
> plugin.load()(name=plugin_name)
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]   File
> "/usr/lib/ckan/default/lib/python2.7/site-packages/pkg_resources/__init__.py",
> line 2235, in load
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]     return
> self.resolve()
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]   File
> "/usr/lib/ckan/default/lib/python2.7/site-packages/pkg_resources/__init__.py",
> line 2241, in resolve
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142]     module =
> __import__(self.module_name, fromlist=['__name__'], level=0)
> [Fri Oct 28 13:00:38 2016] [error] [client 52.57.242.142] ImportError: No
> module named scheming.plugins
>
> _______________________________________________
> 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