[ckan-dev] No Module Named Python
Ross Jones
ross at servercode.co.uk
Mon Mar 9 19:39:59 UTC 2015
Hi,
That's weird.
Did you install your plugin? Normally (during development) you should
python setup.py develop from wherever your setup.py is on disk. Might
there be an error in your plugin that is causing it to not load? Can you
load it in the Python repl?
Ross
On Mon, Mar 9, 2015, at 07:32 PM, Gerace, Christian [ITSUS] wrote:
> Hello,
>
> After setting up multiple instances of CKAN previously, I recently
> decided to start up a new instance of version 2.3 on RHEL 6. I’m
> currently attempting to customize my own CKAN theme, which I have done
> in the past, but I keep on receiving
an error in my log file telling me that there is no module named
plugin. Due to this issue, my instance won’t run when the my theme name
is included in the ckan.plugins list in the configuration file. Below
is my traceback, if someone could please provide guidance as to why I
might be seeing this issue, it would be greatly appreciated.
>
> Traceback (most recent call last):
> File "/etc/ckan/default/apache.wsgi", line 9, in <module>
> application = loadapp('config:%s' % config_filepath)
> File
> "/usr/lib/ckan/default/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
> line 247, in loadapp
> return loadobj(APP, uri, name=name, **kw)
> File
> "/usr/lib/ckan/default/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
> line 272, in loadobj
> return context.create()
> File
> "/usr/lib/ckan/default/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
> line 710, in create
> return self.object_type.invoke(self)
> File
> "/usr/lib/ckan/default/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
> line 146, in invoke
> return fix_call(context.object, context.global_conf,
> **context.local_conf)
> File
> "/usr/lib/ckan/default/lib/python2.6/site-packages/paste/deploy/util.py",
> line 56, in fix_call
> val = callable(*args, **kw)
> File "/usr/lib/ckan/default/src/ckan/ckan/config/middleware.py", line
> 58, in make_app
> load_environment(conf, app_conf)
> File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line
> 232, in load_environment
> p.load_all(config)
> File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 134,
> in load_all
> load(*plugins)
> File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line
> 148, in load
> service = _get_service(plugin)
> File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 254,
> in _get_service
> return plugin.load()(name=plugin_name)
> File
> "/usr/lib/ckan/default/lib/python2.6/site-packages/pkg_resources.py",
> line 2260, in load
> entry = __import__(self.module_name, globals(),globals(),
> ['__name__'])
> ImportError: No module named plugin
>
> Thanks,
> *Christian Gerace* Associate Analyst - Enterprise Architect
> +1.908.655.4147 | _cgerace at its.jnj.com_
>
> _________________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150309/30885bd8/attachment-0003.html>
More information about the ckan-dev
mailing list