[ckan-dev] ckan scheming extension : PluginNotFoundException

lucia.espona at wsl.ch lucia.espona at wsl.ch
Fri May 20 21:44:03 UTC 2016


Dear Jenny

The extension worked fine for me following the instructions.

Maybe you have some typo in the name of the plugin somewhere, this happened to me once and I got a similar error.
You can check the names match in the following files:

- In development.ini you should have "scheming_datasets" in the plugins settings:
## Plugins Settings
ckan.plugins = stats text_view image_view recline_view [other plugins] scheming_datasets

- It should be the same name as in your plugins setup.py file:
   """
    [ckan.plugins]
    scheming_datasets=ckanext.scheming.plugins:SchemingDatasetsPlugin
    scheming_groups=ckanext.scheming.plugins:SchemingGroupsPlugin
    scheming_organizations=ckanext.scheming.plugins:SchemingOrganizationsPlugin
    scheming_test_subclass=ckanext.scheming.tests.plugins:SchemingTestSubclass

    [paste.paster_command]
    scheming=ckanext.scheming.commands:SchemingCommand
    """,

- Just in case, don't forget to install the extension (python setup.py develop) 

I hope it helps, good luck!
Lucia


_________________________________________________________
Dr. Lucia Espona Pernas

Swiss Federal Institute for Forest, Snow and Landscape Research WSL
Hauptgebäaude Labortrakt (HL D34)
Zürcherstrasse 111
8903 Birmensdorf
Switzerland

+41 44 739 28 71 phone direct
+41 44 739 21 11 reception

www.wsl.ch

-----"ckan-dev" <ckan-dev-bounces at lists.okfn.org> wrote: -----
To: CKAN Development Discussions <ckan-dev at lists.okfn.org>
From: Hong Jing 
Sent by: "ckan-dev" 
Date: 20.05.2016 19:55
Subject: Re: [ckan-dev] ckan scheming extension : PluginNotFoundException

Hi, Carl:
 
Yes, I did this in the production.ini file:
 
scheming.dataset_schemas = https://gist.githubusercontent.com/happyrainb/3b21cbdc7e64a1a2311ed54abc4ed5dd/raw/15f44d4f0fc755217f736b7d8e287ade5e3b0ba7/ckan-cusp-schema.json
 
Then I changed back to the default scheme which used to work well.
scheming.dataset_schemas = https://raw.githubusercontent.com/ckan/ckanext-scheming/master/ckanext/scheming/ckan_dataset.json
 
 
But now the error message changed to:
 
tail -20 /var/log/apache2/ckan_default.error.log
[Fri May 20 16:34:07.753186 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]     return loadobj(APP, uri, name=name, **kw)
[Fri May 20 16:34:07.753194 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
[Fri May 20 16:34:07.753206 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]     return context.create()
[Fri May 20 16:34:07.753213 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
[Fri May 20 16:34:07.753225 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]     return self.object_type.invoke(self)
[Fri May 20 16:34:07.753246 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
[Fri May 20 16:34:07.753257 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]     return fix_call(context.object, context.global_conf, **context.local_conf)
[Fri May 20 16:34:07.753264 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
[Fri May 20 16:34:07.753275 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]     val = callable(*args, **kw)
[Fri May 20 16:34:07.753290 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]   File "/usr/lib/ckan/default/src/ckan/ckan/config/middleware.py", line 58, in make_app
[Fri May 20 16:34:07.753302 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]     load_environment(conf, app_conf)
[Fri May 20 16:34:07.753309 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]   File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 232, in load_environment
[Fri May 20 16:34:07.753320 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]     p.load_all(config)
[Fri May 20 16:34:07.753327 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 134, in load_all
[Fri May 20 16:34:07.753352 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]     load(*plugins)
[Fri May 20 16:34:07.753358 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 148, in load
[Fri May 20 16:34:07.753369 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]     service = _get_service(plugin)
[Fri May 20 16:34:07.753375 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 255, in _get_service
[Fri May 20 16:34:07.753385 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317]     raise PluginNotFoundException(plugin_name)
[Fri May 20 16:34:07.753412 2016] [:error] [pid 22907:tid 139844006164224] [remote 127.0.0.1:45317] PluginNotFoundException: 
And here is my testing site:
 
http://52.38.14.163/
 
Any suggestion?
 
Thanks a lot!
ÿ
Jenny
ÿ
From: ckan-dev [mailto:ckan-dev-bounces at lists.okfn.org] On Behalf Of Carl Lange
Sent: Friday, May 20, 2016 1:13 PM
To: CKAN Development Discussions
Subject: Re: [ckan-dev] ckan scheming extension : PluginNotFoundException
ÿ

Hi Jenny,

ÿ
Did you enable the plugin on the ckan.plugins line in your production.ini?
ÿ
Cheers,
Carl
ÿ

On 20 May 2016 at 17:27, Hong Jing <jenny.jing at nyu.edu> wrote:

ÿ
Hi, All:
ÿ
I tried to use the ckanext-scheming extension and I got the error message below.
ÿ
I added the http path of my schema in the /etc/ckan/default/production.ini.
ÿ
here is the schema:ÿ
https://gist.githubusercontent.com/happyrainb/3b21cbdc7e64a1a2311ed54abc4ed5dd/raw/15f44d4f0fc755217f736b7d8e287ade5e3b0ba7/ckan-cusp-schema.json
ÿ
Does anyone have any suggestion?
ÿ
Thanks.
ÿ
Jenny/var/log/apache2/ckan_default.error.log
[Fri May 20 16:21:27.357909 2016] [:error] [pid 22455:tid 140394051131136] [remote 127.0.0.1:60687] ÿ ÿ load_environment(conf, app_conf)
[Fri May 20 16:21:27.357917 2016] [:error] [pid 22455:tid 140394051131136] [remote 127.0.0.1:60687] ÿ File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 232, in load_environment
[Fri May 20 16:21:27.357929 2016] [:error] [pid 22455:tid 140394051131136] [remote 127.0.0.1:60687] ÿ ÿ p.load_all(config)
[Fri May 20 16:21:27.357950 2016] [:error] [pid 22455:tid 140394051131136] [remote 127.0.0.1:60687] ÿ File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 134, in load_all
[Fri May 20 16:21:27.357963 2016] [:error] [pid 22455:tid 140394051131136] [remote 127.0.0.1:60687] ÿ ÿ load(*plugins)
[Fri May 20 16:21:27.357971 2016] [:error] [pid 22455:tid 140394051131136] [remote 127.0.0.1:60687] ÿ File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 148, in load
[Fri May 20 16:21:27.357982 2016] [:error] [pid 22455:tid 140394051131136] [remote 127.0.0.1:60687] ÿ ÿ service = _get_service(plugin)
[Fri May 20 16:21:27.357990 2016] [:error] [pid 22455:tid 140394051131136] [remote 127.0.0.1:60687] ÿ File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 255, in _get_service
[Fri May 20 16:21:27.358001 2016] [:error] [pid 22455:tid 140394051131136] [remote 127.0.0.1:60687] ÿ ÿ raise PluginNotFoundException(plugin_name)
[Fri May 20 16:21:27.358015 2016] [:error] [pid 22455:tid 140394051131136] [remote 127.0.0.1:60687] PluginNotFoundException: scheming.dataset_schemas=

ÿ-- 

Research Information Scientist,
Center for Urban Science + Progress, NYU
https://datahub.cusp.nyu.edu/ÿ
ÿ
646-997-0519
_______________________________________________
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160520/b83c6621/attachment-0003.html>


More information about the ckan-dev mailing list