[ckan-discuss] Run paster of ckanext-qa plugin using CKAN 1.6
John Glover
john.glover at okfn.org
Fri Apr 6 09:46:01 BST 2012
Hi Johannes,
Can you confirm that your virtualenv is activated when you're running
the command?
You can probably also specify the full path to the correct paster
command make sure that the ckan plugin is enabled, something like
this:
sudo -u ckanstd /var/lib/ckan/std/pyenv/bin/paster --plugin=ckan qa
upgrade --config=/etc/ckan/std/std.ini
Thanks,
John
On 5 April 2012 19:34, <ckan at fwd.at> wrote:
> Hello,
>
> I've tried to install the CKAN-Extensions QA-Plugin (ckanext-qa) on Ubuntu
> 10.04 LTS with CKAN 1.6.
>
> I installed the archiver first:
> sudo -u ckanstd /var/lib/ckan/std/pyenv/bin/pip install -E
> /var/lib/ckan/std/pyenv -e
> git+http://github.com/okfn/ckanext-archiver.git#egg=ckanext-archiver
> --log=/tmp/pip-log.txt
>
> next the qa plugin:
> sudo -u ckanstd /var/lib/ckan/std/pyenv/bin/pip install -E
> /var/lib/ckan/std/pyenv -e
> git+https://github.com/okfn/ckanext-qa.git#egg=ckanext-qa
> --log=/tmp/pip-log.txt
>
> After this, calling the QA-Plugin from the CKAN frontend works as expected
> (after activating it using ckan.plugins=qa).
> So it seems, it has been installed successfully
> (http://your-ckan-instance/qa).
>
> However, when I then try to run the paster qa update, I get the following
> error:
> (documentation: https://github.com/okfn/ckanext-qa)
>
> user at pc:/var/lib/ckan/std/pyenv/src/ckanext-qa# paster qa update
> --config=/etc/ckan/std/std.ini
> Traceback (most recent call last):
> File "/usr/bin/paster", line 18, in <module>
> command.run()
> File "/usr/lib/pymodules/python2.6/paste/script/command.py", line 73, in
> run
> commands = get_commands()
> File "/usr/lib/pymodules/python2.6/paste/script/command.py", line 115, in
> get_commands
> plugins = pluginlib.resolve_plugins(plugins)
> File "/usr/lib/pymodules/python2.6/paste/script/pluginlib.py", line 81, in
> resolve_plugins
> pkg_resources.require(plugin)
> File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 648, in
> require
> needed = self.resolve(parse_requirements(requirements))
> File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 546, in
> resolve
> raise DistributionNotFound(req)
> pkg_resources.DistributionNotFound: requests==0.6.4: Not Found for:
> ckanext_qa
> (did you run python setup.py develop?)
>
> Has anybody yet successfully run the paster command with the ckanext-qa
> Plugin and can provide me with a hint?
> Thank you very much & Best regards,
> Johannes
>
>
>
> _______________________________________________
> ckan-discuss mailing list
> ckan-discuss at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-discuss
More information about the ckan-discuss
mailing list