CKAN安装错误:站点ckan_default和datapusher不存在

时间:2014-04-07 14:45:37

标签: python apache ubuntu nginx ckan

我正在尝试将CKAN安装到Ubuntu 13.10上。 (64位)these instructions之后。机器上安装了Python 2.7.5+。以下错误阻止我安装CKAN包:

$ sudo dpkg -i python-ckan_2.2_amd64.deb
Selecting previously unselected package python-ckan.
(Reading database ... 289528 files and directories currently installed.)
Unpacking python-ckan (from python-ckan_2.2_amd64.deb) ...
Setting up python-ckan (2.2-1) ...
Traceback (most recent call last):
  File "/usr/lib/ckan/default/bin/paster", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/ \
    distribute-0.6.24-py2.7.egg/pkg_resources.py", line 16, in <module>
    import sys, os, zipimport, time, re, imp, types
  File "/usr/lib/ckan/default/lib/python2.7/re.py", line 105, in <module>
    import sre_compile
  File "/usr/lib/ckan/default/lib/python2.7/sre_compile.py", line 14, in <module>
    import sre_parse
  File "/usr/lib/ckan/default/lib/python2.7/sre_parse.py", line 17, in <module>
    from sre_constants import *
  File "/usr/lib/ckan/default/lib/python2.7/sre_constants.py", line 18, in <module>
    from _sre import MAXREPEAT

ImportError: cannot import name MAXREPEAT
 System start/stop links for /etc/init.d/nginx already exist.
 System start/stop links for /etc/init.d/apache2 already exist.
ERROR: Site ckan_default does not exist!
ERROR: Site datapusher does not exist!

1 个答案:

答案 0 :(得分:0)

最后,我按照documentation

的建议从源代码安装了CKAN
  

这是安装CKAN最快捷,最简单的方法,但它需要64位Ubuntu 12.04。