From: Mike Brady on
On Thu, 2010-07-22 at 10:49 +0200, Daniel Müller wrote:
> Dear all,
>
> I compiled Samba 4.0.0alpha12 successful on my centos 5.5 box. Kerberos and
> DNS working as wanted.
> There is only a ugly error in dnsupdate. Samba_dnsupdate gives this error:
>
> 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
>
> Starting samba –I –M single:
>
> samba version 4.0.0alpha12-GIT-UNKNOWN started.
> Copyright Andrew Tridgell and the Samba Team 1992-2010
> samba: using 'single' process model
> FIXME: Using new system session for hdb
> /usr/local/samba/sbin/samba_dnsupdate: Traceback (most recent call last):
> /usr/local/samba/sbin/samba_dnsupdate: File
> "/usr/local/samba/sbin/samba_dnsupdate", line 40, in ?
> /usr/local/samba/sbin/samba_dnsupdate:
> samba.ensure_external_module("dns", "dnspython")
> /usr/local/samba/sbin/samba_dnsupdate: File
> "/usr/local/samba/lib/python2.4/site-packages/samba/__init__.py", line 321,
> in ensure_external_module
> /usr/local/samba/sbin/samba_dnsupdate: sys.modules[modulename] =
> __import__(
> /usr/local/samba/sbin/samba_dnsupdate: TypeError: __import__() takes no
> keyword arguments
> ../dsdb/dns/dns_update.c:249: Failed DNS update - NT_STATUS_ACCESS_DENIED
> Testing kcctpl_create_intersite_connections
>
>
> Of course I installed following rpm: python-pydns-2.3.4-1.noarch.rpm
> What link do I miss.
>
> Greetings
> Daniel
>
> EDV Daniel Müller
>
> Leitung EDV
> Tropenklinik Paul-Lechler-Krankenhaus
> Paul-Lechler-Str. 24
> 72076 Tübingen
> Tel.: 07071/206-463, Fax: 07071/206-499
> eMail: mueller(a)tropenklinik.de
> Internet: www.tropenklinik.de
>
>

Daniel

I have python-dns-1.7.1-1.el5 installed from EPEL, not python-pydns.

Regards

Mike

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Michael Wood on
On 22 July 2010 10:49, Daniel Müller <mueller(a)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(a)gmail.com>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Daniel Müller on
I installed this package, python-dns-1.7.1-1.el5. Restarted Samba4 now the error:
samba version 4.0.0alpha12-GIT-UNKNOWN started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
samba: using 'single' process model
FIXME: Using new system session for hdb
/usr/local/samba/sbin/samba_dnsupdate: dns_tkey_buildgssquery failed: ran out of space
/usr/local/samba/sbin/samba_dnsupdate: dns_tkey_buildgssquery failed: ran out of space
/usr/local/samba/sbin/samba_dnsupdate: dns_tkey_buildgssquery failed: ran out of space
/usr/local/samba/sbin/samba_dnsupdate: dns_tkey_buildgssquery failed: ran out of space

-----------------------------------------------
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mueller(a)tropenklinik.de
Internet: www.tropenklinik.de
-----------------------------------------------

-----Ursprüngliche Nachricht-----
Von: Mike Brady [mailto:mike.brady(a)devnull.net.nz]
Gesendet: Donnerstag, 22. Juli 2010 11:53
An: mueller(a)tropenklinik.de
Cc: samba(a)lists.samba.org
Betreff: Re: [Samba] samba4 phyton-dns error

On Thu, 2010-07-22 at 10:49 +0200, Daniel Müller wrote:
> Dear all,
>
> I compiled Samba 4.0.0alpha12 successful on my centos 5.5 box. Kerberos and
> DNS working as wanted.
> There is only a ugly error in dnsupdate. Samba_dnsupdate gives this error:
>
> 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
>
> Starting samba –I –M single:
>
> samba version 4.0.0alpha12-GIT-UNKNOWN started.
> Copyright Andrew Tridgell and the Samba Team 1992-2010
> samba: using 'single' process model
> FIXME: Using new system session for hdb
> /usr/local/samba/sbin/samba_dnsupdate: Traceback (most recent call last):
> /usr/local/samba/sbin/samba_dnsupdate: File
> "/usr/local/samba/sbin/samba_dnsupdate", line 40, in ?
> /usr/local/samba/sbin/samba_dnsupdate:
> samba.ensure_external_module("dns", "dnspython")
> /usr/local/samba/sbin/samba_dnsupdate: File
> "/usr/local/samba/lib/python2.4/site-packages/samba/__init__.py", line 321,
> in ensure_external_module
> /usr/local/samba/sbin/samba_dnsupdate: sys.modules[modulename] =
> __import__(
> /usr/local/samba/sbin/samba_dnsupdate: TypeError: __import__() takes no
> keyword arguments
> ../dsdb/dns/dns_update.c:249: Failed DNS update - NT_STATUS_ACCESS_DENIED
> Testing kcctpl_create_intersite_connections
>
>
> Of course I installed following rpm: python-pydns-2.3.4-1.noarch.rpm
> What link do I miss.
>
> Greetings
> Daniel
>
> EDV Daniel Müller
>
> Leitung EDV
> Tropenklinik Paul-Lechler-Krankenhaus
> Paul-Lechler-Str. 24
> 72076 Tübingen
> Tel.: 07071/206-463, Fax: 07071/206-499
> eMail: mueller(a)tropenklinik.de
> Internet: www.tropenklinik.de
>
>

Daniel

I have python-dns-1.7.1-1.el5 installed from EPEL, not python-pydns.

Regards

Mike


--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Jelmer Vernooij on
On Thu, 2010-07-22 at 12:35 +0200, Michael Wood wrote:
> On 22 July 2010 10:49, Daniel Müller <mueller(a)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