[Gluster-users] glusterfind can't find modul utils.py

David Spisla spisla80 at gmail.com
Thu Dec 5 12:37:51 UTC 2019


Dear Gluster Community,

I tried to run glusterfind on my SLES15-SP1 machine using GlusterFS v5.10
but I got this error when performing it with user root:

fs-davids-c1-n1:~ # glusterfind create --help
Traceback (most recent call last):
  File "/usr/bin/glusterfind", line 14, in <module>
    from glusterfind.main import main
  File "/usr/lib/glusterfs/glusterfind/main.py", line 26, in <module>
    from utils import execute, is_host_local, mkdirp, fail
ModuleNotFoundError: No module named 'utils'

It seems to be not the default python3 utils module because I found in this
path utils.py which has defined the function execute, is_host_local,
mkdirp, fail :

fs-davids-c1-n1:~ # ll /usr/lib/glusterfs/glusterfind/
total 112
-rwxr-xr-x 1 root root  1846 Oct 11 04:53 S57glusterfind-delete-post.py
-rw-r--r-- 1 root root   381 Oct 11 04:53 __init__.py
drwxr-xr-x 2 root root  4096 Dec  4 10:03 __pycache__
-rwxr-xr-x 1 root root  3737 Oct 11 04:53 brickfind.py
-rwxr-xr-x 1 root root 15342 Oct 11 04:53 changelog.py
-rw-r--r-- 1 root root 16079 Oct 11 04:53 changelogdata.py
-rw-r--r-- 1 root root   851 Oct 11 04:53 conf.py
-rw-r--r-- 1 root root  2507 Oct 11 04:53 libgfchangelog.py
-rw-r--r-- 1 root root 33317 Oct 11 04:53 main.py
-rwxr-xr-x 1 root root  5092 Oct 11 04:53 nodeagent.py
-rw-r--r-- 1 root root   365 Oct 11 04:53 tool.conf
-rw-r--r-- 1 root root  7195 Oct 11 04:53 utils.py

Why glusterfind can't find this utils.py?
Regards
David Spisla
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20191205/9d8e9827/attachment.html>


More information about the Gluster-users mailing list