libgit2 / libgit2/pygit2

Error when trying to run gitfs

Open
#1,018 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.7k
Forks
408
Avg merge
2d 57m
Merged PRs (30d)
7

Description

Error

 ✘ no@no  ~/gitfstest  gitfs [REDACTED] .
Traceback (most recent call last):
  File "/usr/bin/gitfs", line 33, in <module>
    sys.exit(load_entry_point('gitfs==0.5.1', 'console_scripts', 'gitfs')())
  File "/usr/lib/python3.8/site-packages/gitfs/__init__.py", line 19, in mount
    from gitfs.mounter import start_fuse
  File "/usr/lib/python3.8/site-packages/gitfs/mounter.py", line 22, in <module>
    from pygit2.remote import RemoteCallbacks
ImportError: cannot import name 'RemoteCallbacks' from 'pygit2.remote' (/usr/lib/python3.8/site-packages/pygit2/remote.py)

 ✘ no@no  ~/gitfstest  

Additional Info:

My uname -a output:

Linux no 5.7.3-arch1-1 #1 SMP PREEMPT Wed, 17 Jun 2020 19:42:12 +0000 x86_64 GNU/Linux

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the traceback entry point in gitfs/init.py and the failing import in gitfs/mounter.py, then check the available pygit2.remote API. Reproduce the gitfs command shown and determine the compatible behavior; done means the command starts without the RemoteCallbacks ImportError.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.