[Samba] samba4 phyton-dns error

Michael Wood esiotrot at gmail.com
Thu Jul 22 04:35:28 MDT 2010


On 22 July 2010 10:49, Daniel Müller <mueller at tropenklinik.de> wrote:
>
> Dear all,
>
> I compiled Samba 4.0.0alpha12 successful on my centos 5.5 box.
[...]
> Traceback (most recent call last):
>   File "/usr/sbin/samba_dnsupdate", line 40, in ?
>     samba.ensure_external_module("dns", "dnspython")
>   File "/usr/local/samba/lib/python2.4/site-packages/samba/__init__.py",
> line 321, in ensure_external_module
>     sys.modules[modulename] = __import__(
> TypeError: __import__() takes no keyword arguments
[...]

I see you are using Python 2.4.

It seems that samba_dnsupdate needs Python 2.5:

http://docs.python.org/library/functions.html#__import__

"[...] Changed in version 2.5: Keyword support for parameters was added."

Perhaps the Samba4 HOWTO should be updated to state this requirement.

-- 
Michael Wood <esiotrot at gmail.com>


More information about the samba-technical mailing list