Ckan安装失败:未知的分发选项:'message_extractors'

时间:2017-02-07 20:20:53

标签: python linux python-2.7 ckan

我在虚拟环境中安装build CKAN。我在安装一些模块时遇到了问题。

(default)[ckan@localhost ~]$ pip install -e git+https://github.com/ckan/ckan.git@ckan-2.6.0#egg=ckan
Obtaining ckan from git+https://github.com/ckan/ckan.git@ckan-2.6.0#egg=ckan
  Updating ./default/src/ckan clone (to ckan-2.6.0)
  Running setup.py egg_info for package ckan
    /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'message_extractors'
      warnings.warn(msg)

    no previously-included directories found matching '.git'
    warning: no files found matching 'CHANGELOG.txt'
    warning: no files found matching '*' under directory 'ckan_deb'
Installing collected packages: ckan
  Running setup.py develop for ckan
    /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'message_extractors'
      warnings.warn(msg)

    no previously-included directories found matching '.git'
    warning: no files found matching 'CHANGELOG.txt'
    warning: no files found matching '*' under directory 'ckan_deb'
    Creating /usr/lib/ckan/default/lib/python2.7/site-packages/ckan.egg-link (link to .)
    ckan 2.6.0 is already the active version in easy-install.pth
    Installing ckan-admin script to /usr/lib/ckan/default/bin

    Installed /usr/lib/ckan/default/src/ckan
Successfully installed ckan
Cleaning up...
(default)[ckan@localhost ~]$ pip install -r 
default/src/ckan/requirements.txt 
(...) 
Cleaning up... Command python setup.py egg_info failed with error code 1 in 
/usr/lib/ckan/default/build/funcsigs Storing complete log in 
/usr/lib/ckan/.pip/pip.log

Full pip.log

假设“成功安装ckan”应具有此命令(虚拟环境)

(default)[ckan@localhost ~]$ paster
-bash: paster: command not found

另一个信息:

  • Python 2.7.5
  • 来自/usr/lib/python2.7/site-packages(python2.7)的pip 9.0.1
  • 操作系统:Centos7 Linux localhost.localdomain 3.10.0-514.6.1.el7.x86_64#1 SMP Wed Jan 18 13:06:36 UTC 2017 x86_64 x86_64 x86_64 GNU / Linux
  • Pip安装包(virtualenv):
    • appdirs(1.4.0)
    • ckan(2.6.0,/ usr / lib / ckan / default / src / ckan)
    • 包装(16.8)
    • pip(1.4.1)
    • pyparsing(2.1.10)
    • setuptools(34.1.1)
    • 六(1.10.0)
    • wsgiref(0.1.2)

1 个答案:

答案 0 :(得分:1)

当funcsigs想要setuptools 17.1或更新时,它抱怨setuptools版本仅为0.9.8。

我不清楚在funcsigs中指定的位置,实际上我刚用setuptools 2.2安装它,所以我不确定这里发生了什么。也许日志有误导性,而其他东西需要更新版本的setuptools。无论如何,CKAN对最新的setuptools版本非常满意,所以只需升级即可。

尝试升级setuptools的最简单方法是:

pip install -U setuptools