【问题标题】:Installing CKAN error - cannot determine reason安装 CKAN 错误 - 无法确定原因
【发布时间】:2017-09-19 19:11:25
【问题描述】:

这是我必须为 CKAN 2.7.0 安装的软件包列表

python-setuptools-36.2.4-4.mga7.noarch.rpm
pgdg-redhat96-9.6-3.noarch.rpm

xml-commons git subversion mercurial postgresql96-server postgresql96-devel postgresql96 python-devel libxslt libxslt-devel libxml2 libxml2-devel python-virtualenv gcc gcc-c++ make java-1.6.0-openjdk redis tomcat tomcat-webapps tomcat-admin-webapps xalan-j2unzip policycoreutils-python mod_wsgi httpd tcl-devel redis

安装这些工具后,我能够使用成功下载 git

pip install --ignore-installed -e git+https://github.com/okfn/ckan.git@ckan-2.7.0#egg=ckan

然后我将 pgsql-9.6 添加到路径中,以便 ckan 识别 pg_config

PATH=$PATH:/usr/pgsql-9.6/bin

现在,当我尝试运行 requirements.txt 安装时,它会失败并出现此错误

ImportError: No module named pytz

----------------------------------------
Cleaning up...
Command /usr/lib/ckan/default/bin/python -c "import setuptools;__file__='/usr/lib/ckan/default/build/pbr/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Aun2rR-record/install-record.txt --single-version-externally-managed --install-headers /usr/lib/ckan/default/include/site/python2.7 failed with error code 1 in /usr/lib/ckan/default/build/pbr
Storing complete log in /usr/lib/ckan/.pip/pip.log

如果有人能解释错误的含义以及我需要安装/修改什么,我将不胜感激。似乎缺少一个名为 pytz 的包,但我找不到有关它的信息。

谢谢

【问题讨论】:

  • 请提供 ImportError 上方的行

标签: centos ckan requirements.txt


【解决方案1】:

pytz 必须安装在 virtualenv 中,并且 pip-requirements-docs.txt 必须在运行 requirements.txt 之前运行。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-12-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-25
    相关资源
    最近更新 更多