Samba4: Dn_swigregister(Dn): SystemError: UnpackTuple() argument list is not a tuple

Michael Ströder michael at stroeder.com
Tue Jul 1 12:13:34 GMT 2008


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 <module>
>>     import samba
>>   File "bin/python/samba/__init__.py", line 44, in <module>
>>     import ldb
>>   File "bin/python/ldb.py", line 163, in <module>
>>     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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: removed_python2.6.diff
Type: text/x-patch
Size: 560 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080701/1102b2a0/removed_python2.6.bin


More information about the samba-technical mailing list