2013-01-18 2 views
0

Ubuntu 10.04가 설치된 가상 시스템에 CKAN 1.8을 설치하려고합니다.CKAN을 우분투에 설치하십시오 (표준 인스턴스를 생성 할 수 없음)

설치가 잘 끝났지 만 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 

를 그 무언가가 (그것이 있어야로)를 설치하고 철탑이 설치되어 있지 잘못 간 실패합니다.

그 시점에서 다시 설치해 보는 것이 좋습니다.

도움이되는지 알려 주시면 자세히 알려 드리겠습니다.

관련 문제