[Samba] samba4 phyton-dns error
Jelmer Vernooij
jelmer at samba.org
Thu Jul 22 05:59:36 MDT 2010
On Thu, 2010-07-22 at 12:35 +0200, Michael Wood wrote:
> On 22 July 2010 10:49, Daniel Müller <mueller at tropenklinik.de> wrote:
> > 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.
We should just avoid using keyword arguments there...
Cheers,
Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100722/f6d54a59/attachment.pgp>
More information about the samba-technical
mailing list