-->

CKAN PluginNotFoundException在网页扩展(CKAN PluginNotFo

2019-10-29 02:58发布

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

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服务器。

ckan.plugins.core.PluginNotFoundException: pages

但是,当我运行了Python setup.py开发的命令,它仍然是插件是正确安装。 请参阅下面的输出。

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

虽然它说,插件安装正确,就会发生异常。 我怎样才能解决这个问题?

Answer 1:

您已经安装的软件包到系统的Python(/ usr/local/lib/python2.7/dist-packages )。 请确保您使用PIP和python从virtualenv中。 看来,virtualenv中未被激活的。 尝试执行source /usr/lib/ckan/default/bin/activate你也可以尝试调用PIP和蟒蛇与virtualenv中的绝对路径。



文章来源: CKAN PluginNotFoundException in Pages Extension