[ckan-discuss] CZ-CKAN: QA plugin, Celery issues

Ondřej Vadinský ondrej.vadinsky at vse.cz
Mon Jun 4 15:20:36 BST 2012


Dne Po 4. června 2012 13.50:22 jste napsal(a): 
> Hi Ondřej,
> 
> You're getting a PluginNotFoundException for 'qa'. Are you sure
> ckanext-qa has been installed? You might just need to run pip install
> . (or python setup.py install) from the extension directory with your
> virtualenv activated.
> 
> Thanks,
> John
> 

Hi, 
I installed it with: 
/var/lib/ckan/cz/pyenv/bin/pip install -E /var/lib/ckan/cz/pyenv/ -e 
git+https://github.com/okfn/ckanext-archiver#egg=ckanext-qa --log=/tmp/pip-
qa.log
as root (*). The log says following:
Obtaining ckanext-qa from git+https://github.com/okfn/ckanext-
archiver#egg=ckanext-qa
  Cloning https://github.com/okfn/ckanext-archiver to 
/var/lib/ckan/cz/pyenv/src/ckanext-qa
  Found command 'git' at '/usr/bin/git'
  Running command /usr/bin/git clone -q https://github.com/okfn/ckanext-
archiver /var/lib/ckan/cz/pyenv/src/ckanext-qa
  Running setup.py egg_info for package ckanext-qa
    running egg_info
    creating ckanext_archiver.egg-info
    writing requirements to ckanext_archiver.egg-info/requires.txt
    writing ckanext_archiver.egg-info/PKG-INFO
    writing top-level names to ckanext_archiver.egg-info/top_level.txt
    writing dependency_links to ckanext_archiver.egg-info/dependency_links.txt
    writing entry points to ckanext_archiver.egg-info/entry_points.txt
    writing manifest file 'ckanext_archiver.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found
    reading manifest file 'ckanext_archiver.egg-info/SOURCES.txt'
    writing manifest file 'ckanext_archiver.egg-info/SOURCES.txt'
Requirement already satisfied (use --upgrade to upgrade): celery>=2.3.3 in 
/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages (from ckanext-qa)
Requirement already satisfied (use --upgrade to upgrade): kombu-
sqlalchemy>=1.1.0 in /var/lib/ckan/cz/pyenv/lib/python2.6/site-packages (from 
ckanext-qa)
Requirement already satisfied (use --upgrade to upgrade): SQLAlchemy>=0.6.6 in 
/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages (from ckanext-qa)
Requirement already satisfied (use --upgrade to upgrade): requests==0.6.4 in 
/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages (from ckanext-qa)
Requirement already satisfied (use --upgrade to upgrade): messytables>=0.1.4 
in /var/lib/ckan/cz/pyenv/lib/python2.6/site-packages (from ckanext-qa)
Requirement already satisfied (use --upgrade to upgrade): flask==0.8 in 
/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages (from ckanext-qa)
Requirement already satisfied (use --upgrade to upgrade): importlib in 
/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages (from celery>=2.3.3-
>ckanext-qa)
Requirement already satisfied (use --upgrade to upgrade): anyjson>=0.3.1 in 
/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages (from celery>=2.3.3-
>ckanext-qa)
Requirement already satisfied (use --upgrade to upgrade): kombu>=2.1.5,<3.0 in 
/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages (from celery>=2.3.3-
>ckanext-qa)
Requirement already satisfied (use --upgrade to upgrade): python-
dateutil>=1.5,<2.0 in /var/lib/ckan/cz/pyenv/lib/python2.6/site-packages (from 
celery>=2.3.3->ckanext-qa)
Requirement already satisfied (use --upgrade to upgrade): ordereddict in 
/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages (from celery>=2.3.3-
>ckanext-qa)
Requirement already satisfied (use --upgrade to upgrade): xlrd==0.7.1 in 
/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages (from messytables>=0.1.4-
>ckanext-qa)
Requirement already satisfied (use --upgrade to upgrade): openpyxl==1.5.7 in 
/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages (from messytables>=0.1.4-
>ckanext-qa)
Requirement already satisfied (use --upgrade to upgrade): Werkzeug>=0.6.1 in 
/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages (from flask==0.8->ckanext-
qa)
Requirement already satisfied (use --upgrade to upgrade): Jinja2>=2.4 in 
/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages (from flask==0.8->ckanext-
qa)
Requirement already satisfied (use --upgrade to upgrade): amqplib>=1.0 in 
/var/lib/ckan/cz/pyenv/lib/python2.6/site-packages (from kombu>=2.1.5,<3.0-
>celery>=2.3.3->ckanext-qa)
Installing collected packages: ckanext-qa
  Running setup.py develop for ckanext-qa
    Running command /var/lib/ckan/cz/pyenv/bin/python -c "import setuptools; 
__file__='/var/lib/ckan/cz/pyenv/src/ckanext-qa/setup.py'; 
exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" 
develop --no-deps
    running develop
    running egg_info
    writing requirements to ckanext_archiver.egg-info/requires.txt
    writing ckanext_archiver.egg-info/PKG-INFO
    writing top-level names to ckanext_archiver.egg-info/top_level.txt
    writing dependency_links to ckanext_archiver.egg-info/dependency_links.txt
    writing entry points to ckanext_archiver.egg-info/entry_points.txt
    warning: manifest_maker: standard file '-c' not found
    reading manifest file 'ckanext_archiver.egg-info/SOURCES.txt'
    writing manifest file 'ckanext_archiver.egg-info/SOURCES.txt'
    running build_ext
    Creating /var/lib/ckan/cz/pyenv/lib/python2.6/site-packages/ckanext-
archiver.egg-link (link to .)
    Removing ckanext-archiver 0.1 from easy-install.pth file
    Adding ckanext-archiver 0.1 to easy-install.pth file
    
    Installed /var/lib/ckan/cz/pyenv/src/ckanext-qa
Successfully installed ckanext-qa
Cleaning up...
  Removing temporary dir /var/lib/ckan/cz/pyenv/build...

So I guess it is installed.
(*) installing as root caused the owner of those files to be root, so I 
chowned to ckancz:ckancz as the rest of /var/lib/ckan/cz/pyenv/ which results 
to the same error when trying to alow qa plugin. The same when running the 
install again as ckancz.

Regards,
Ondřej Vadinský
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2809 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20120604/caff6eda/attachment-0001.bin>


More information about the ckan-discuss mailing list