[ckan-dev] an error for the installation for CKAN into Linux

Vitor Baptista vitor at vitorbaptista.com
Tue Mar 19 18:13:08 UTC 2013


Hi Malick,

Did you try running "python -c 'import pylons'"? Did it raise any errors?

Cheers,
Vítor.

2013/3/13 Malick TAPSOBA <malick.tapsoba at ymail.com>

>  Hello,
>
> I have the same problem. I try the solutions here<http://stackoverflow.com/questions/14398978/ckan-install-on-ubuntu-cannot-create-std-instance>but it doesn't work.
> Could you help us?
>
> See attached file for the error generated.
>
> Thanks
>
> Malick
>
>
> On 12/03/2013 13:17, Sen Wang wrote:
>
> Hello
>
> I try to install the software into system Ubuntu 12.04. But after package
> installation, when i run the code
>
> sudo ckan-create-instance std default.vm.buildkit yes
>
> to create an instances, it cause the error:
>
>
>
> 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 ...
> /usr/bin/ckan-create-instance: 行 95: /etc/init.d/postgresql-8.4: 没有那个文件或目录
> 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 77, in _load_config
>     conf = appconfig('config:' + self.filename)
>   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 261, in appconfig
>
>
>
>
>     global_conf=global_conf)
>   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
>     global_conf=global_conf)
>   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
>
>
>
>
>     return loader.get_context(object_type, name, global_conf)
>   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 454, in get_context
>     section)
>   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 476, in _context_from_use
>
>
>
>
>     object_type, name=use, global_conf=global_conf)
>   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 406, in get_context
>     global_conf=global_conf)
>   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
>
>
>
>
>     global_conf=global_conf)
>   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 328, in _loadegg
>     return loader.get_context(object_type, name, global_conf)
>   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 620, in get_context
>
>
>
>
>     object_type, name=name)
>   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 646, in find_egg_entry_point
>     possible.append((entry.load(), protocol, entry.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/config/middleware.py", line 25, in <module>
>
>
>
>
>     from ckan.config.environment import load_environment
>   File "/usr/lib/pymodules/python2.7/ckan/config/environment.py", line 18, in <module>
>     import ckan.lib.helpers as h
>   File "/usr/lib/pymodules/python2.7/ckan/lib/helpers.py", line 32, in <module>
>
>
>
>
>     from pylons import 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 ...
>
> Can you please help to solve the problem? thanks, Sen WANG
>
>
>
> _______________________________________________
> ckan-dev mailing listckan-dev at lists.okfn.orghttp://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130319/e906dc66/attachment-0001.html>


More information about the ckan-dev mailing list