[ckan-dev] Not being able to install CKan

Julio Acuña julio.acuna.carrillo at gmail.com
Tue Sep 30 00:40:58 UTC 2014


Hi Camilo,

It seems you don't have fanstatic installed (ImportError: No module named
fanstatic), verify if you have all dependencies installed.

Greetings.


On Mon, Sep 29, 2014 at 4:26 PM, Andrés Wa <randspamrand at gmail.com> wrote:

> Hello!
>
> I am Camilo and I am trying to install ckan using ckan documentation
> center and when I execute: "sudo ckan db init"
>
>
> I get:
> /usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/reflection.py:47:
> SAWarning: Skipped unsupported reflection of expression-based index
> idx_pkg_lname
>   ret = fn(self, con, *args, **kw)
> /usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/reflection.py:47:
> SAWarning: Skipped unsupported reflection of expression-based index
> idx_pkg_slname
>   ret = fn(self, con, *args, **kw)
> /usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/reflection.py:47:
> SAWarning: Skipped unsupported reflection of expression-based index
> idx_pkg_suname
>   ret = fn(self, con, *args, **kw)
> /usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/reflection.py:47:
> SAWarning: Skipped unsupported reflection of expression-based index
> idx_pkg_uname
>   ret = fn(self, con, *args, **kw)
> Traceback (most recent call last):
>   File "/usr/bin/ckan", line 45, in <module>
>     load_entry_point('PasteScript', 'console_scripts', 'paster')()
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
> line 104, in run
>     invoke(command, command_name, options, args[1:])
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
> line 143, in invoke
>     exit_code = runner.run(args)
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
> line 238, in run
>     result = self.command()
>   File "/usr/lib/ckan/default/src/ckan/ckan/lib/cli.py", line 147, in
> command
>     model.repo.init_db()
>   File "/usr/lib/ckan/default/src/ckan/ckan/model/__init__.py", line 210,
> in init_db
>     self.upgrade_db()
>   File "/usr/lib/ckan/default/src/ckan/ckan/model/__init__.py", line 329,
> in upgrade_db
>     mig.upgrade(self.metadata.bind, self.migrate_repository,
> version=version)
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/migrate/versioning/api.py",
> line 186, in upgrade
>     return _migrate(url, repository, version, upgrade=True, err=err,
> **opts)
>   File "<string>", line 2, in _migrate
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/migrate/versioning/util/__init__.py",
> line 159, in with_engine
>     return f(*a, **kw)
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/migrate/versioning/api.py",
> line 366, in _migrate
>     schema.runchange(ver, change, changeset.step)
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/migrate/versioning/schema.py",
> line 91, in runchange
>     change.run(self.engine, step)
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/migrate/versioning/script/py.py",
> line 145, in run
>     script_func(engine)
>   File
> "/usr/lib/ckan/default/src/ckan/ckan/migration/versions/034_resource_group_table.py",
> line 70, in upgrade
>     resource_count = migrate_engine.execute('''select count(*) from
> package_resource''').first()[0]
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py",
> line 2447, in execute
>     return connection.execute(statement, *multiparams, **params)
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py",
> line 1449, in execute
>     params)
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py",
> line 1628, in _execute_text
>     statement, parameters
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py",
> line 1698, in _execute_context
>     context)
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py",
> line 1691, in _execute_context
>     context)
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py",
> line 331, in do_execute
>     cursor.execute(statement, parameters)
> sqlalchemy.exc.ProgrammingError: (ProgrammingError) relation
> "package_resource" does not exist
> LINE 1: select count(*) from package_resource
>                              ^
>  'select count(*) from package_resource' {}
>
>
>
>
> I don't know what is it and I am stcuked... besides that when I try to
> create a database with:
>
> cd /usr/lib/ckan/default/src/ckan
> paster db init -c /etc/ckan/default/development.ini
>
> I get:
>
>
>  -c /etc/ckan/default/development.ini
> Traceback (most recent call last):
>   File "/usr/local/bin/paster", line 9, in <module>
>     load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
>   File
> "/usr/local/lib/python2.7/dist-packages/PasteScript-1.7.5-py2.7.egg/paste/script/command.py",
> line 103, in run
>     command = commands[command_name].load()
>   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/ckan/default/src/ckan/ckan/lib/cli.py", line 11, in
> <module>
>     import ckan.lib.fanstatic_resources as fanstatic_resources
>   File "/usr/lib/ckan/default/src/ckan/ckan/lib/fanstatic_resources.py",
> line 6, in <module>
>     from fanstatic import Library, Resource, Group, get_library_registry
> ImportError: No module named fanstatic
>
>
> I don't know why I just can't continue installing ckan because of this :(
>
> _____________
>
> Thanks in advance I really hope you can help me!
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140929/ffb95ac2/attachment-0003.html>


More information about the ckan-dev mailing list