samba-tool ImportError: No module named param

Björn Baumbach bb at sernet.de
Wed Dec 12 15:34:47 UTC 2018


Hi!

It seems that there is something broken with the python changes in
current master.

I've just checked out current master, cleaned the checkout, configured
with configure.developer, make && make install && make and have the
following result on different systems:

# ./bin/samba-tool domain provision ...
Traceback (most recent call last):
  File "./bin/samba-tool", line 33, in <module>
    from samba.netcmd.main import cmd_sambatool
  File "bin/python/samba/__init__.py", line 29, in <module>
    import samba.param
ImportError: No module named param

This calls:
execve("/usr/lib/python-exec/python2.7/python",
["/usr/lib/python-exec/python2.7/python", "./bin/samba-tool",...

Fails with:
stat("bin/python/samba/samba", 0x7ffccdf6b510) = -1 ENOENT (No such file
or directory)
openat(AT_FDCWD, "bin/python/samba/samba.so", O_RDONLY) = -1 ENOENT (No
such file or directory)
openat(AT_FDCWD, "bin/python/samba/sambamodule.so", O_RDONLY) = -1
ENOENT (No such file or directory)
openat(AT_FDCWD, "bin/python/samba/samba.py", O_RDONLY) = -1 ENOENT (No
such file or directory)
openat(AT_FDCWD, "bin/python/samba/samba.pyc", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat("bin/python/samba/param", 0x7ffccdf6b510) = -1 ENOENT (No such file
or directory)
openat(AT_FDCWD, "bin/python/samba/param.so", O_RDONLY) = -1 ENOENT (No
such file or directory)
openat(AT_FDCWD, "bin/python/samba/parammodule.so", O_RDONLY) = -1
ENOENT (No such file or directory)
openat(AT_FDCWD, "bin/python/samba/param.py", O_RDONLY) = -1 ENOENT (No
such file or directory)
openat(AT_FDCWD, "bin/python/samba/param.pyc", O_RDONLY) = -1 ENOENT (No
such file or directory)



This is working somehow:
# python3 ./bin/samba-tool domain provision ...
INFO 2018-12-12 16:18:36,623 pid:3504
bin/python/samba/provision/__init__.py #2079: Looking up IPv4 addresses
INFO 2018-12-12 16:18:36,624 pid:3504
bin/python/samba/provision/__init__.py #2096: Looking up IPv6 addresses
WARNING 2018-12-12 16:18:36,624 pid:3504
bin/python/samba/provision/__init__.py #2103: No IPv6 address will be
assigned
INFO 2018-12-12 16:18:37,073 pid:3504
bin/python/samba/provision/__init__.py #2269: Setting up share.ldb
INFO 2018-12-12 16:18:37,295 pid:3504
bin/python/samba/provision/__init__.py #2273: Setting up secrets.ldb
INFO 2018-12-12 16:18:37,426 pid:3504
bin/python/samba/provision/__init__.py #2279: Setting up the registry
...

This does:
stat("bin/python/samba/param.cpython-34m.so", {st_mode=S_IFREG|0755,
st_size=64200, ...}) = 0
openat(AT_FDCWD, "bin/python/samba/param.cpython-34m.so",
O_RDONLY|O_CLOEXEC) = 3
...

Best regards,
Björn

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de



More information about the samba-technical mailing list