gromgit / homebrew-fuse

gromgit's FUSE tap
BSD 2-Clause "Simplified" License
325 stars 37 forks source link

Got this error when run gitfs on my Mac #26

Closed weavingtan closed 3 years ago

weavingtan commented 3 years ago

My computer version:

     version 11.5.1

python3 version:3.9

installation steps:

☁  ~  brew install gromgit/fuse/gitfs-mac
Updating Homebrew...
^C==> Downloading https://github.com/gromgit/homebrew-fuse/releases/download/gitfs-mac-0.5.2/gitfs-mac-0.5.2.big_sur.bottle.tar.gz
Already downloaded: /Users/xxxxx/Library/Caches/Homebrew/downloads/a5acca0f8a465395ddf079dc9a73c14ffe4472ab81f2f807b1d9776695c7a874--gitfs-mac-0.5.2.big_sur.bottle.tar.gz
==> Installing gitfs-mac from gromgit/fuse
==> Pouring gitfs-mac-0.5.2.big_sur.bottle.tar.gz
==> Caveats
gitfs clones repos in /var/lib/gitfs. You can either create it with
sudo mkdir -m 1777 /var/lib/gitfs or use another folder with the
repo_path argument.
==> Summary
🍺  /usr/local/Cellar/gitfs-mac/0.5.2: 874 files, 10MB

When i execute the command

☁  ~  gitfs
Traceback (most recent call last):
  File "/usr/local/bin/gitfs", line 33, in <module>
    sys.exit(load_entry_point('gitfs==0.5.1', 'console_scripts', 'gitfs')())
  File "/usr/local/Cellar/gitfs-mac/0.5.2/libexec/lib/python3.9/site-packages/gitfs/__init__.py", line 19, in mount
    from gitfs.mounter import start_fuse
  File "/usr/local/Cellar/gitfs-mac/0.5.2/libexec/lib/python3.9/site-packages/gitfs/mounter.py", line 22, in <module>
    from pygit2.remote import RemoteCallbacks
ImportError: cannot import name 'RemoteCallbacks' from 'pygit2.remote' (/usr/local/Cellar/gitfs-mac/0.5.2/libexec/lib/python3.9/site-packages/pygit2/remote.py)

What happened? Is the python version wrong?

gromgit commented 3 years ago

Turned out to be an upstream issue: https://github.com/presslabs/gitfs/pull/379. I've also incorporated a patch from Linux gitfs in Homebrew core, to keep the two formulae in sync as much as possible.

Please brew update, then brew reinstall gitfs-mac.

weavingtan commented 3 years ago

Thank you for your reply