dns module not found

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

dns module not found

Samba - General mailing list
Hello @all,

 

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

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|

Re: dns module not found

Samba - General mailing list
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


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|

Re: dns module not found

Samba - General mailing list
Nope, but that was not the problem...


root@samba01:~# dpkg -l | grep python-dns
root@samba01:~# apt-get install python-dns
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:[hidden email]]
Gesendet: Freitag, 3. November 2017 12:50
An: Dirk Laurenz <[hidden email]>; [hidden email]
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



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|

Re: dns module not found

Samba - General mailing list
On Fri, 3 Nov 2017 17:07:28 +0100
Dirk Laurenz via samba <[hidden email]> wrote:

> Nope, but that was not the problem...
>
>
> root@samba01:~# dpkg -l | grep python-dns
> root@samba01:~# apt-get install python-dns
> 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:~#
>

I suppose the question has to be, where did you get the 4.7 from ?
Stretch has 4.5.12 by default.

Rowland

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|

Re: dns module not found

Samba - General mailing list
In reply to this post by Samba - General mailing list
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:[hidden email]]
> Gesendet: Freitag, 3. November 2017 12:50
> An: Dirk Laurenz <[hidden email]>; [hidden email]
> 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
Reply | Threaded
Open this post in threaded view
|

Re: dns module not found

Samba - General mailing list
That helped, thanks..

I build it on my own via

Configure
Make
And checkinstall

But i don't add any dependencies, now i see i should add some


-----Ursprüngliche Nachricht-----
Von: samba [mailto:[hidden email]] Im Auftrag von Denis Cardon via samba
Gesendet: Freitag, 3. November 2017 17:59
An: Dirk Laurenz <[hidden email]>; [hidden email]
Betreff: 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:[hidden email]]
> Gesendet: Freitag, 3. November 2017 12:50
> An: Dirk Laurenz <[hidden email]>; [hidden email]
> 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


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