<div dir="ltr">Hi David,<br><br>Looks like it is a python2 to python3 compatibility issue. It occurs because implicit imports within packages are not supported in python3.<br>This issue is resolved in the patch <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1658116">https://bugzilla.redhat.com/show_bug.cgi?id=1658116</a>, which went in <span style="color:rgb(0,0,0);white-space:pre-wrap">glusterfs-6.0.
Updating into recent glusterfs version should solve this problem.</span><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">Regards,</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">Shwetha </span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 5, 2019 at 6:08 PM David Spisla <<a href="mailto:spisla80@gmail.com" target="_blank">spisla80@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Dear Gluster Community,</div><div><br></div><div>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:</div><div><br></div><div>fs-davids-c1-n1:~ # glusterfind create --help<br>Traceback (most recent call last):<br> File "/usr/bin/glusterfind", line 14, in <module><br> from glusterfind.main import main<br> File "/usr/lib/glusterfs/glusterfind/main.py", line 26, in <module><br> from utils import execute, is_host_local, mkdirp, fail<br>ModuleNotFoundError: No module named 'utils'</div><div><br></div><div>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 :<br></div><div><br></div><div>fs-davids-c1-n1:~ # ll /usr/lib/glusterfs/glusterfind/<br>total 112<br>-rwxr-xr-x 1 root root 1846 Oct 11 04:53 S57glusterfind-delete-post.py<br>-rw-r--r-- 1 root root 381 Oct 11 04:53 __init__.py<br>drwxr-xr-x 2 root root 4096 Dec 4 10:03 __pycache__<br>-rwxr-xr-x 1 root root 3737 Oct 11 04:53 brickfind.py<br>-rwxr-xr-x 1 root root 15342 Oct 11 04:53 changelog.py<br>-rw-r--r-- 1 root root 16079 Oct 11 04:53 changelogdata.py<br>-rw-r--r-- 1 root root 851 Oct 11 04:53 conf.py<br>-rw-r--r-- 1 root root 2507 Oct 11 04:53 libgfchangelog.py<br>-rw-r--r-- 1 root root 33317 Oct 11 04:53 main.py<br>-rwxr-xr-x 1 root root 5092 Oct 11 04:53 nodeagent.py<br>-rw-r--r-- 1 root root 365 Oct 11 04:53 tool.conf<br>-rw-r--r-- 1 root root 7195 Oct 11 04:53 utils.py</div><div><br></div><div>Why glusterfind can't find this utils.py?</div><div>Regards</div><div>David Spisla<br></div></div>
________<br>
<br>
Community Meeting Calendar:<br>
<br>
APAC Schedule -<br>
Every 2nd and 4th Tuesday at 11:30 AM IST<br>
Bridge: <a href="https://bluejeans.com/441850968" rel="noreferrer" target="_blank">https://bluejeans.com/441850968</a><br>
<br>
NA/EMEA Schedule -<br>
Every 1st and 3rd Tuesday at 01:00 PM EDT<br>
Bridge: <a href="https://bluejeans.com/441850968" rel="noreferrer" target="_blank">https://bluejeans.com/441850968</a><br>
<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="https://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-users</a><br>
</blockquote></div>