Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 页面扩展中存在PluginNotFoundException_Python_Apache_Exception_Ckan_Opendata - Fatal编程技术网

Python 页面扩展中存在PluginNotFoundException

Python 页面扩展中存在PluginNotFoundException,python,apache,exception,ckan,opendata,Python,Apache,Exception,Ckan,Opendata,我正在使用CKAN作为我的开放数据门户。它是使用Python框架用Python编写的。我想集成插件。所以我用了下面的步骤 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.

我正在使用CKAN作为我的开放数据门户。它是使用Python框架用Python编写的。我想集成插件。所以我用了下面的步骤

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 develope命令时,仍然会发现插件安装正确。请参阅下面的输出

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

尽管它说插件安装正确,但还是发生了异常。如何修复此问题?

您已将这些软件包安装到系统Python中(/
usr/local/lib/python2.7/dist-packages
)。确保使用virtualenv中的pip和python。看起来virtualenv根本没有被激活。尝试执行
source/usr/lib/ckan/default/bin/activate

您还可以尝试使用virtualenv的绝对路径调用pip和python。

我尝试执行source/usr/lib/ckan/default/bin/activate,然后执行上述4个命令。仍然会发生相同的异常。