python-fuse icon indicating copy to clipboard operation
python-fuse copied to clipboard

failed to install on MacOS(sonoma)

Open FreakinJay opened this issue 1 year ago • 0 comments

When attempting to install fuse-python via pip install fuse-python, I encountered the following error, which resulted in the installation failure. I have already installed FUSE using brew install --cask macfuse.

ENVIRONMENT

  • os : macos (m1, sonoma 14.4.1 (23E224))
  • python version : python3.10

ERROR MESSAGE

fuseparts/_fusemodule.c:1393:2: error: incompatible function pointer types assigning to 'int (*)(const char *, const char *, char *, size_t, uint32_t)' (aka 'int (*)(const char *, const char *, char *, unsigned long, unsigned int)') from 'int (const char *, const char *, char *, size_t)' (aka 'int (const char *, const char *, char *, unsigned long)') [-Wincompatible-function-pointer-types]
      DO_ONE_ATTR(getxattr);
      ^~~~~~~~~~~~~~~~~~~~~
fuseparts/_fusemodule.c:1363:2: note: expanded from macro 'DO_ONE_ATTR'
      DO_ONE_ATTR_AS(name, name)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~
fuseparts/_fusemodule.c:1358:12: note: expanded from macro 'DO_ONE_ATTR_AS'
              op.fname = pyname ## _func;     \
                       ^ ~~~~~~~~~~~~~~~
fuseparts/_fusemodule.c:1395:2: error: incompatible function pointer types assigning to 'int (*)(const char *, const char *, const char *, size_t, int, uint32_t)' (aka 'int (*)(const char *, const char *, const char *, unsigned long, int, unsigned int)') from 'int (const char *, const char *, const char *, size_t, int)' (aka 'int (const char *, const char *, const char *, unsigned long, int)') [-Wincompatible-function-pointer-types]
      DO_ONE_ATTR(setxattr);
      ^~~~~~~~~~~~~~~~~~~~~
fuseparts/_fusemodule.c:1363:2: note: expanded from macro 'DO_ONE_ATTR'
      DO_ONE_ATTR_AS(name, name)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~
fuseparts/_fusemodule.c:1358:12: note: expanded from macro 'DO_ONE_ATTR_AS'
              op.fname = pyname ## _func;     \
                       ^ ~~~~~~~~~~~~~~~
19 warnings and 2 errors generated.
error: command '/usr/bin/clang' failed with exit code 1

FreakinJay avatar Aug 15 '24 02:08 FreakinJay