privatedatasets error
psonis opened this issue · 6 comments
hey, I am trying to install the extension but when I enable I get an error:
I am using ubuntu 16.04 and I tried it with a fresh 2.4.9 and 2.6.6 source install.
I didnt deploy CKAN. I immediately installed the extension using these commands.
. /usr/lib/ckan/default/bin/activate
pip install -e 'git+https://github.com/conwetlab/ckanext-privatedatasets.git#egg=ckanext-privatedatasets'
or
pip install ckanext-privatedatasets
This is the message I get when using paster serve /etc/ckan/default/development.ini
Also want to point that I have successfully installed the extension in a 2.7.4 source ckan install last month but I need to use a lower CKAN version in order to use another extension as well.
Thanks!
Traceback (most recent call last):
File "/usr/lib/ckan/default/bin/paster", line 11, in <module>
sys.exit(run())
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 102, in run
invoke(command, command_name, options, args[1:])
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 141, in invoke
exit_code = runner.run(args)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 236, in run
result = self.command()
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/serve.py", line 284, in command
relative_to=base, global_conf=vars)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/serve.py", line 329, in loadapp
**kw)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
return context.create()
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
return self.object_type.invoke(self)
File "/usr/lib/ckan/default/local/lib/python2.7/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/local/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
val = callable(*args, **kw)
File "/home/hit/ckan/lib/default/src/ckan/ckan/config/middleware/__init__.py", line 45, in make_app
load_environment(conf, app_conf)
File "/home/hit/ckan/lib/default/src/ckan/ckan/config/environment.py", line 97, in load_environment
p.load_all()
File "/home/hit/ckan/lib/default/src/ckan/ckan/plugins/core.py", line 139, in load_all
load(*plugins)
File "/home/hit/ckan/lib/default/src/ckan/ckan/plugins/core.py", line 153, in load
service = _get_service(plugin)
File "/home/hit/ckan/lib/default/src/ckan/ckan/plugins/core.py", line 255, in _get_service
return plugin.load()(name=plugin_name)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2203, in load
return self.resolve()
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2209, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/ckanext/privatedatasets/plugin.py", line 25, in <module>
from ckan.lib.plugins import DefaultPermissionLabels
ImportError: cannot import name DefaultPermissionLabels
Sorry, current version of the plugin doesn't support CKAN 2.6 nor CKAN 2.4. But.... the good news is that v0.2.18 (pip install ckanext-privatedatasets==0.2.18) does support CKAN 2.6. Give it a try and let us know if this solve your problem.
Cheers
Thanks for the prompt answer. Will try it first thing Monday morning and let you know!
I tested version 0.2.18 && CKAN 2.6.6 but I got another error when serving....
File "/usr/lib/ckan/default/bin/paster", line 11, in <module> sys.exit(run()) File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 102, in run invoke(command, command_name, options, args[1:]) File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 141, in invoke exit_code = runner.run(args) File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 236, in run result = self.command() File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/serve.py", line 284, in command relative_to=base, global_conf=vars) File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/serve.py", line 329, in loadapp **kw) File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp return loadobj(APP, uri, name=name, **kw) File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj return context.create() File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create return self.object_type.invoke(self) File "/usr/lib/ckan/default/local/lib/python2.7/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/local/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call val = callable(*args, **kw) File "/home/hit/ckan/lib/default/src/ckan/ckan/config/middleware/__init__.py", line 45, in make_app load_environment(conf, app_conf) File "/home/hit/ckan/lib/default/src/ckan/ckan/config/environment.py", line 97, in load_environment p.load_all() File "/home/hit/ckan/lib/default/src/ckan/ckan/plugins/core.py", line 139, in load_all load(*plugins) File "/home/hit/ckan/lib/default/src/ckan/ckan/plugins/core.py", line 153, in load service = _get_service(plugin) File "/home/hit/ckan/lib/default/src/ckan/ckan/plugins/core.py", line 255, in _get_service return plugin.load()(name=plugin_name) File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2203, in load return self.resolve() File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2209, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/ckanext/privatedatasets/plugin.py", line 24, in <module> import auth File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/ckanext/privatedatasets/auth.py", line 23, in <module> import ckan.new_authz as new_authz ImportError: No module named new_authz
I think you fixed it here #36
but 0.2.18 is older that that...
Any suggestions?
Thanks.
Hi @psonis,
I have released v0.2.19 using the work done before starting working on CKAN 2.7. The bad news is that continuos integration (Travis, Coveralls, ...) was not enabled on that point of the time so I don't have an easy way to create a CKAN 2.6 environment to testing this new version.
Please, try to use this new version and lets us know if it is working or not.
Hey, @aarranz
This one appears to be working! will proceed with the other extensions and tweaks and let you know.
Thanks.
Ok, thank you very much for the feedback!
I'm closing this ticket, I suppose that if you find something more, it would be better to create a new ticket. Anyway, feel free to reopen it if you considere it a better approach.