CKAN PluginNotFoundException在扩展页面 [英] CKAN PluginNotFoundException in Pages Extension

查看:379
本文介绍了CKAN PluginNotFoundException在扩展页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用CKAN作为我的开放数据门户网站。它使用塔框架用Python编写的。我想整合 ckanext的页面插件。所以我用下面的步骤。

I'm using CKAN as my open data portal. It's written in Python using Pylons framework. I want to integrate ckanext-pages plugin. So I used below steps.

1. . /usr/lib/ckan/default/bin/activate

2. pip install -e 'git+https://github.com/ckan/ckanext-pages.git#egg=ckanext-pages'

3. cd /usr/lib/ckan/default/src/ckanext-pages

4. python setup.py develop

不过,我得到异常的下面。鉴于我试图重启CKAN和Apache服务器。

Still I get below exception. Given that I tried restart CKAN and Apache server.

ckan.plugins.core.PluginNotFoundException: pages

但是,当我运行的蟒蛇的setup.py制定的命令,它仍然是插件正确安装。请参阅下面的输出。

But when I run the python setup.py develop command it still that plugin is install correctly. Please see the output below.

running develop
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files
running egg_info
writing ckanext_pages.egg-info/PKG-INFO
writing namespace_packages to ckanext_pages.egg-info/namespace_packages.txt
writing top-level names to ckanext_pages.egg-info/top_level.txt
writing dependency_links to ckanext_pages.egg-info/dependency_links.txt
writing entry points to ckanext_pages.egg-info/entry_points.txt
WARNING: ckanext is a namespace package, but its __init__.py does
not declare_namespace(); setuptools 0.7 will REQUIRE this!
(See the setuptools manual under "Namespace Packages" for details.)

reading manifest file 'ckanext_pages.egg-info/SOURCES.txt'
writing manifest file 'ckanext_pages.egg-info/SOURCES.txt'
running build_ext
Creating /usr/local/lib/python2.7/dist-packages/ckanext-pages.egg-link (link to .)
Removing ckanext-pages 0.1 from easy-install.pth file
Adding ckanext-pages 0.1 to easy-install.pth file

Installed /usr/lib/ckan/default/src/ckanext-pages
Processing dependencies for ckanext-pages==0.1
Finished processing dependencies for ckanext-pages==0.1

虽然它说,该插件安装正确,就会发生异常。我该如何解决这个问题?

Even though it says that plugin is installed correctly, exception is occurred. How can I fix this?

推荐答案

您已经安装的软件包到系统的Python(/<$c$c>usr/local/lib/python2.7/dist-packages)。请确保您使用PIP和python从virtualenv中。似乎的virtualenv未激活的。尝试执行源/ usr / lib目录/ CKAN /默认/斌/启动
你也可以尝试调用PIP和蟒蛇的virtualenv中的绝对路径。

You have installed the packages into the system Python (/usr/local/lib/python2.7/dist-packages). Make sure that you use the pip and python from the virtualenv. It seems that the virtualenv is not activated at all. Try executing source /usr/lib/ckan/default/bin/activate You could also try to call pip and python with the absolute path of the virtualenv.

这篇关于CKAN PluginNotFoundException在扩展页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆