[ckan-dev] [ckan-discuss] Problem installing CKAN on debian lenny

Rufus Pollock rufus.pollock at okfn.org
Thu Mar 24 16:30:35 UTC 2011


On 24 March 2011 16:12, Cliff <ckan at obro.nl> wrote:
> Hi Rufus,
>
> Thanks for your e-mail, but it's resolved. During the pip install of the
> missing, present and conflict txt files I got an error (tested on debian
> and ubuntu) that git is not installed (clean install). Since git is not
> listed as a required package I din't see the error and got an error later
> on in the installation.

Hmm, I didn't think git was required either! We'll double check this ...

> I got the error during this command:
> pip install -r lucid_missing.txt -r lucid_conflict.txt -r
> lucid_present.txt -e hg+http://bitbucket.org/okfn/ckan#egg=ckan

Thanks. The good thing is it's working now :)

Rufus

> Cliff
>
> On Thu, 24 Mar 2011 14:51:49 +0000, Rufus Pollock <rufus.pollock at okfn.org>
> wrote:
>> 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
>



-- 
Co-Founder, Open Knowledge Foundation
Promoting Open Knowledge in a Digital Age
http://www.okfn.org/ - http://blog.okfn.org/




More information about the ckan-dev mailing list