Web lists-archives.com

Re: [Samba] dns module not found




Hi Dirk,

Le 11/03/2017 à 05:07 PM, Dirk Laurenz a écrit :
Nope, but that was not the problem...


root@samba01:~# dpkg -l | grep python-dns
root@samba01:~# apt-get install python-dns

ouch, my fault, I think it should have been python-dnspython

By the way, what samba package are you using? python-dnspython should be a dependency of samba package (at least it is in our backported packages).

sorry for the misleading previous post,

Denis

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  python-dns
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.7 kB of archives.
After this operation, 135 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian stretch/main armhf python-dns all 2.3.6-3 [28.7 kB]
Fetched 28.7 kB in 0s (81.3 kB/s)
Selecting previously unselected package python-dns.
(Reading database ... 24304 files and directories currently installed.)
Preparing to unpack .../python-dns_2.3.6-3_all.deb ...
Unpacking python-dns (2.3.6-3) ...
Setting up python-dns (2.3.6-3) ...
root@samba01:~# /usr/sbin/samba_dnsupdate --help
Traceback (most recent call last):
  File "/usr/sbin/samba_dnsupdate", line 52, in <module>
    samba.ensure_third_party_module("dns", "dnspython")
  File "/usr/lib/python2.7/dist-packages/samba/__init__.py", line 359, in ensure_third_party_module
    namespace="samba.third_party")
  File "/usr/lib/python2.7/dist-packages/samba/__init__.py", line 344, in import_bundled_package
    "%s.%s" % (namespace, modulename), fromlist=[namespace])
ImportError: No module named dns
root@samba01:~#

-----Ursprüngliche Nachricht-----
Von: Denis Cardon [mailto:dcardon@xxxxxxxxxxx]
Gesendet: Freitag, 3. November 2017 12:50
An: Dirk Laurenz <samba@xxxxxxxxxx>; samba@xxxxxxxxxxxxxxx
Betreff: Re: [Samba] dns module not found

Hi Dirk,


i have three samba dc's each running with Version 4.7 on raspbian
strech



On one oft hem i have now this problem and i don't know why?

I'm not sure what caused the problem. because it worked before.



root@samba01:~# /usr/sbin/samba_dnsupdate --help

Traceback (most recent call last):

  File "/usr/sbin/samba_dnsupdate", line 52, in <module>

    samba.ensure_third_party_module("dns", "dnspython")

  File "/usr/lib/python2.7/dist-packages/samba/__init__.py", line 359,
in ensure_third_party_module

    namespace="samba.third_party")

  File "/usr/lib/python2.7/dist-packages/samba/__init__.py", line 344,
in import_bundled_package

    "%s.%s" % (namespace, modulename), fromlist=[namespace])

ImportError: No module named dns

do you have python-dns package installed?

Cheers,

Denis





--
Denis Cardon
Tranquil IT Systems
Les Espaces Jules Verne, bâtiment A
12 avenue Jules Verne
44230 Saint Sébastien sur Loire
tel : +33 (0) 2.40.97.57.55
http://www.tranquil-it-systems.fr



--
Denis Cardon
Tranquil IT Systems
Les Espaces Jules Verne, bâtiment A
12 avenue Jules Verne
44230 Saint Sébastien sur Loire
tel : +33 (0) 2.40.97.57.55
http://www.tranquil-it-systems.fr


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba