2013-01-18 25 views
0

我试图在Ubuntu 10.04的虚拟机上安装CKAN 1.8。CKAN在Ubuntu上安装(无法创建标准实例)

安装结束了,但是当我创建std实例时,在Python中出现了一个我无法解决的错误。

任何人都可以帮助我吗?

在终端中的消息的转录:

[email protected]:~$ sudo ckan-create-instance std default.vm.buildkit yes 
Installing or upgrading CKAN std ... 
Ensuring users and groups are set up correctly ... 
Ensuring directories exist for std CKAN INSTANCE ... 
Disabling the crontab for the ckanstd user ... 
Putting CKAN into maintenance mode ... 
Site std disabled. 
To activate the new configuration, you need to run: 
    service apache2 reload 
Enabling site std.maint. 
To activate the new configuration, you need to run: 
    service apache2 reload 
* Reloading web server config apache2                 
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName 
                           [ OK ] 
Setting log file permissions so that both Apache and cron jobs can log to the same place ... 
Ensuring who.ini file exists ... 
Ensuring wsgi.py file exists ... 
Making sure PostgreSQL is running ... 
Setting the password of the std user in PostgreSQL 
Setting the std user password ... 
ALTER ROLE 
Ensuring the std database exists ... 
Overwriting the existing Apache config ... 
Performing any database upgrades ... 

Traceback (most recent call last): 
    File "/usr/bin/paster", line 4, in <module> 
    command.run() 
    File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 104, in run 
    invoke(command, command_name, options, args[1:]) 
    File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 143, in invoke 
    exit_code = runner.run(args) 
    File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 238, in run 
    result = self.command() 
    File "/usr/lib/pymodules/python2.7/ckan/lib/cli.py", line 120, in command 
    self._load_config() 
    File "/usr/lib/pymodules/python2.7/ckan/lib/cli.py", line 82, in _load_config 
    load_environment(conf.global_conf, conf.local_conf) 
    File "/usr/lib/pymodules/python2.7/ckan/config/environment.py", line 141, in load_environment 
    p.load('synchronous_search') 
    File "/usr/lib/pymodules/python2.7/ckan/plugins/core.py", line 122, in load 
    service = _get_service(plugin) 
    File "/usr/lib/pymodules/python2.7/ckan/plugins/core.py", line 77, in _get_service 
    return plugin.load()(name=name) 
    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load 
    entry = __import__(self.module_name, globals(),globals(), ['__name__']) 
    File "/usr/lib/pymodules/python2.7/ckan/lib/search/__init__.py", line 2, in <module> 
    from pylons import config, c 
ImportError: cannot import name c 


Bringing the std INSTANCE out of maintenance mode ... 
Site std.maint disabled. 
To activate the new configuration, you need to run: 
    service apache2 reload 
Enabling site std. 
To activate the new configuration, you need to run: 
    service apache2 reload 
* Reloading web server config apache2 


apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName 
                            [ OK ] 
    Reloading apache ... 
    * Reloading web server config apache2                 
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName 
                            [ OK ] 
    Enabling crontab for the ckanstd user ... 

回答

1

的问题是在堆栈跟踪的末尾:

File "/usr/lib/pymodules/python2.7/ckan/lib/search/__init__.py", line 2, in <module> 
    from pylons import config, c 
ImportError: cannot import name c 

这表明塔架(一个所需的库)可能不正确地安装。如果失败,那么出了问题在安装挂架不安装(因为它应该是)

$ python 
>>> import pylons 

:你可以通过做检查。

在这一点上,值得尝试重新安装。

请让我知道,如果这有帮助(或不),并会尝试进一步协助。