[ckan-discuss] Problem installing CKAN on debian lenny
Rufus Pollock
rufus.pollock at okfn.org
Thu Mar 24 14:51:49 GMT 2011
Hi Cliff,
Sorry for slight delay in responding! I'm cc'ing ckan-dev (and we
should remove from ckan-discuss) as this is a dev question :)
On 18 March 2011 18:23, Cliff <ckan at obro.nl> wrote:
> 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
Fantastic.
> 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'
Which version of sqlalchemy are you using (i.e. which version comes
with Debian Lenny?) Also the Harvesting code is moving out of main
into an extension as I write so it might be worth trying to install
off HEAD.
Rufus
More information about the ckan-discuss
mailing list