This commit is contained in:
ed 2022-11-26 22:27:09 +00:00
parent c1315a3b39
commit f39e370e2a
3 changed files with 25 additions and 15 deletions

View file

@ -62,12 +62,12 @@ except:
else: else:
libfuse = "apt install libfuse\n modprobe fuse" libfuse = "apt install libfuse\n modprobe fuse"
print( m = """\033[33m
"\n could not import fuse; these may help:" could not import fuse; these may help:
+ "\n python3 -m pip install --user fusepy\n " {} -m pip install --user fusepy
+ libfuse {}
+ "\n" \033[0m"""
) print(m.format(sys.executable, libfuse))
raise raise

View file

@ -74,12 +74,12 @@ except:
else: else:
libfuse = "apt install libfuse3-3\n modprobe fuse" libfuse = "apt install libfuse3-3\n modprobe fuse"
print( m = """\033[33m
"\n could not import fuse; these may help:" could not import fuse; these may help:
+ "\n python3 -m pip install --user fusepy\n " {} -m pip install --user fusepy
+ libfuse {}
+ "\n" \033[0m"""
) print(m.format(sys.executable, libfuse))
raise raise

View file

@ -32,9 +32,19 @@ try:
if not hasattr(fuse, "__version__"): if not hasattr(fuse, "__version__"):
raise Exception("your fuse-python is way old") raise Exception("your fuse-python is way old")
except: except:
print( if WINDOWS:
"\n could not import fuse; these may help:\n python3 -m pip install --user fuse-python\n apt install libfuse\n modprobe fuse\n" libfuse = "install https://github.com/billziss-gh/winfsp/releases/latest"
) elif MACOS:
libfuse = "install https://osxfuse.github.io/"
else:
libfuse = "apt install libfuse\n modprobe fuse"
m = """\033[33m
could not import fuse; these may help:
{} -m pip install --user fuse-python
{}
\033[0m"""
print(m.format(sys.executable, libfuse))
raise raise