Michael Ströder wrote:
> Michael Ströder wrote:
>>
>> I've built samba-4.0.0alpha4 (--prefix=/opt/samba4) on a openSUSE 10.3.
>> The following command does not work (with locally installed Python
>> 2.5.1 and swig-1.3.31-50).
>>
>> $ ./setup/provision --realm=SAMBA4.STROEDER.LOCAL --domain=SAMBA4TEST
>> --adminpass=geheim --server-role='domain controller'
>> Traceback (most recent call last):
>> File "./setup/provision", line 32, in
>> import samba
>> File "bin/python/samba/__init__.py", line 44, in
>> import ldb
>> File "bin/python/ldb.py", line 163, in
>> Dn_swigregister(Dn)
>> SystemError: UnpackTuple() argument list is not a tuple

>
> I've updated swig to 1.3.35 but same problem.


I've tracked this down a bit more: In mkconfig.mk different Python
versions were referenced (I have installed Python 2.6b1 with make
altinstall).

PYTHON_CONFIG = /usr/bin/python2.6-config
pythondir = ${prefix}/lib/python2.5/site-packages

After applying the attached patch it worked. Obviously this patch
cannnot be considered a solution. It's rather a work-around and I sent
it along to give a hint where to search for this issue.

Ciao, Michael.