[ckan-discuss] Problem installing CKAN on debian lenny

Cliff ckan at obro.nl
Fri Mar 18 18:23:48 GMT 2011


Hey Everyone,

I am trying to open a open datastore, we want to use our own ckan
instance. We have our own server but we are having problems installing the
instance on it. The server is running Debian Lenny and Python 2.5.5. First
i tried the apt repository, but when I was about to initialize the
database, I got the following problem. After that I tried the developers
installation and there I god the same error while initializing the
database.

paster --plugin=ckan db init --config=development.ini
AttributeError: 'unicode' object has no attribute 'get_extension'

The complete traceback is:
Traceback (most recent call last):
  File "/usr/bin/paster", line 18, in <module>
    command.run()
  File "/usr/lib/pymodules/python2.5/paste/script/command.py", line 79, in
run
    invoke(command, command_name, options, args[1:])
  File "/usr/lib/pymodules/python2.5/paste/script/command.py", line 118,
in invoke
    exit_code = runner.run(args)
  File "/usr/lib/pymodules/python2.5/paste/script/command.py", line 213,
in run
    result = self.command()
  File "/usr/lib/pymodules/python2.5/ckan/lib/cli.py", line 68, in command
    self._load_config()
  File "/usr/lib/pymodules/python2.5/ckan/lib/cli.py", line 23, in
_load_config
    from ckan.config.environment import load_environment
  File "/usr/lib/pymodules/python2.5/ckan/config/environment.py", line 17,
in <module>
    from ckan import model
  File "/usr/lib/pymodules/python2.5/ckan/model/__init__.py", line 24, in
<module>
    from harvesting import HarvestSource, HarvestingJob, HarvestedDocument
  File "/usr/lib/pymodules/python2.5/ckan/model/harvesting.py", line 789,
in <module>
    vdm.sqlalchemy.modify_base_object_mapper(HarvestedDocument, Revision,
State)
  File "/usr/lib/pymodules/python2.5/vdm/sqlalchemy/base.py", line 357, in
modify_base_object_mapper
    base_mapper = class_mapper(base_object)
  File "/usr/lib/pymodules/python2.5/sqlalchemy/orm/util.py", line 390, in
class_mapper
    return mapper.compile()
  File "/usr/lib/pymodules/python2.5/sqlalchemy/orm/mapper.py", line 350,
in compile
    mapper.__initialize_properties()
  File "/usr/lib/pymodules/python2.5/sqlalchemy/orm/mapper.py", line 371,
in __initialize_properties
    prop.init(key, self)
  File "/usr/lib/pymodules/python2.5/sqlalchemy/orm/interfaces.py", line
374, in init
    self.do_init()
  File "/usr/lib/pymodules/python2.5/sqlalchemy/orm/properties.py", line
479, in do_init
    self._post_init()
  File "/usr/lib/pymodules/python2.5/sqlalchemy/orm/properties.py", line
726, in _post_init
    self.attributeext = self.backref.get_extension()
AttributeError: 'unicode' object has no attribute 'get_extension'

I hope someone could help me.
Thanks



More information about the ckan-discuss mailing list