Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got this error when run gitfs on my Mac #26

Closed
weavingtan opened this issue Oct 26, 2021 · 2 comments
Closed

Got this error when run gitfs on my Mac #26

weavingtan opened this issue Oct 26, 2021 · 2 comments

Comments

@weavingtan
Copy link

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
Copy link
Owner

gromgit commented Oct 26, 2021

Turned out to be an upstream issue: presslabs/gitfs#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
Copy link
Author

Thank you for your reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants