<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Wouter,</p>
<p>I already narrowed it down to be a python3 (in my case 3.6 issue). If I configure unbound the exact same way except using PYTHON_VERSION=2.7 everything works as intended. If I build it using Python3 the first method that is used from _unboundmodule (in my case _unboundmodule.dnameAsStr(dname)) fails.</p>
<p>This is how I configure it:</p>
<p>./configure --with-libevent --disable-static --with-ssl --sysconfdir=/etc/unbound --with-conf-file=/etc/unbound/unbound.conf --with-pidfile=/var/run/unbound.pid --enable-pie --enable-systemd --enable-subnet --enable-event-api --enable-dnscrypt --enable-cachedb --enable-ipsecmod --with-pyunbound --with-pythonmodule PKG_CONFIG="/usr/bin/pkg-config" --prefix=/usr PYTHON_VERSION=2.7</p>
<p>As a side note: starting from 1.8.1 systemd integration works like a charm, thanks!</p>
<p>Bests,</p>
<p>Daniel</p>
<p id="reply-intro">Am 2018-10-08 16:05, schrieb Wouter Wijngaards via Unbound-users:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Hi Daniel,<br /><br />This module is built-into the unbound executable by the compile, and it<br />is fetched at that time by the python start routines. That is why it is<br />not built separately. The python module needs a python script to load,<br />and that is something you configure in unbound.conf.<br /><br />Could it be some sort of version issue in Python (compile vs run-time)<br />that causes it to not load the symbols from the executable and search<br />for them externally?<br /><br />Best regards, Wouter<br /><br />On 10/6/18 3:55 PM, Snitch Ashor via Unbound-users wrote:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">I'm tryin to get unbound with the python module running on Ubuntu 18.04<br />LTS. The version from the ubuntu repository (1.6 7) works fine without<br />the python module.. The package python-unbound provides unboundmodule.py<br />under dist-packages however _unboundmodule(.so?!?) is missing. Same if i<br />compile it, unboundmodule.py is created _unboundmodule is missing. Any<br />Ideas?<br />I had a look at the makefile and it seems that part is simply missing.<br />Pyunbound works fine (_unbound.so is created). I also checked a couple<br />of repisitories and it seems _unboundmodule is always missing on ubuntu,<br />i saw It's part of the python-unbound package, for e.g. Fedora.<br /><br />Bests,<br />Daniel<br /><br /></blockquote>
</div>
</blockquote>
<p><br /></p>
</body></html>