[Kolab-devel] 3.0 on debian wheezy: setup-kolab failing

Johannes Graumann johannes_graumann at web.de
Sun Sep 16 14:52:44 CEST 2012


Jeroen van Meeuwen wrote:

> On Saturday, September 15, 2012 08:47:36 PM Johannes Graumann wrote:
>> Hi,
>> 
>> On my swanky new debian wheezy system
>> 
>> PROMPT> setup-kolab -d 9
>> 
>> leads to theerror below. python 2.7 seems installed. Pointers? Thank you.
>> Joh
>> 
>> Could not change the ownership of log file /var/log/kolab/pykolab.log
>> Could not change the ownership of log file /var/log/kolab/pykolab.log
>> Could not change the ownership of log file /var/log/kolab/pykolab.log
>> Could not change the ownership of log file /var/log/kolab/pykolab.log
>> Traceback (most recent call last):
>>   File "/usr/sbin/setup-kolab", line 41, in <module>
>>     setup = Setup()
>>   File "/usr/lib/python2.7/dist-packages/pykolab/setup/__init__.py", line
>> 32, in __init__
>>     components.__init__()
>>   File "/usr/lib/python2.7/dist-packages/pykolab/setup/components.py",
>>   line
>> 52, in __init__
>>     exec("from %s import __init__ as %s_register" %
>> (module_name,component_name))
>>   File "<string>", line 1, in <module>
>>   File "/usr/lib/python2.7/dist-packages/pykolab/setup/setup_php.py",
>>   line
>> 20, in <module>
>>     from augeas import Augeas
>>   File "/usr/lib/python2.7/dist-packages/augeas.py", line 55, in <module>
>>     class Augeas(object):
>>   File "/usr/lib/python2.7/dist-packages/augeas.py", line 61, in Augeas
>>     for _v in ("%d.%d", "%d%d")])
>>   File "/usr/lib/python2.7/dist-packages/augeas.py", line 52, in _dlopen
>>     raise ImportError("Unable to import lib%s!" % args[0])
>> ImportError: Unable to import libpython2.7!
>> 
>> 
> 
> This looks like an issue with Augeas (or the packaging of its python
> bindings) on Debian, more so than it seems to be an issue with pykolab
> itself.
> 
> Does the following work?
> 
> $ python
>>>> from augeas import Augeas
> 
> Kind regards,
> 
> Jeroen van Meeuwen
> 

Bingo!

>>> from augeas import Augeas
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/augeas.py", line 55, in <module>
    class Augeas(object):
  File "/usr/lib/python2.7/dist-packages/augeas.py", line 61, in Augeas
    for _v in ("%d.%d", "%d%d")])
  File "/usr/lib/python2.7/dist-packages/augeas.py", line 52, in _dlopen
    raise ImportError("Unable to import lib%s!" % args[0])
ImportError: Unable to import libpython2.7!

Downgrading python-augeas from 0.4.0-2.1 to 0.3.0-1 didn't fix this ... 
pointers?

Joh




More information about the devel mailing list