question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[mac os x sierra] raven==5.27.0 distribution was not found and is required by gitfs

See original GitHub issue
$ brew --version
Homebrew 1.2.4
Homebrew/homebrew-core (git revision ff3c; last commit 2017-07-06)
$ uname -mrs
Darwin 16.6.0 x86_64
$ brew cask install osxfuse
# success
$ brew install gitfs
# success
$ gitfs http://52.64.121.123/issues.git issues
Traceback (most recent call last):
  File "/usr/local/bin/gitfs", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3036, in <module>
    @_call_aside
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3020, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3049, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/pkg_resources/__init__.py", line 654, in _build_master
    ws.require(__requires__)
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/pkg_resources/__init__.py", line 968, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/pkg_resources/__init__.py", line 854, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'raven==5.27.0' distribution was not found and is required by gitfs

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
khoancommented, Jul 7, 2017

tried to resolve dependency

$ gitfs --version
GitFS 0.4.5.1
$ cd /usr/local/Cellar/gitfs/0.4.5.1/libexec
$ bin/pip install raven==5.27.0
$ # fudge /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libgit2.rb according to https://github.com/Homebrew/homebrew-core/pull/2324/files#diff-e8ee420781a969273c7a80870a8bf6db
$ brew remove --ignore-dependencies libgit2
$ brew install libgit2
$ bin/pip install pygit2==0.24.1
$ gitfs http://52.64.121.123/issues.git issues
Traceback (most recent call last):
  File "/usr/local/bin/gitfs", line 11, in <module>
    load_entry_point('gitfs==0.4.5.1', 'console_scripts', 'gitfs')()
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/gitfs/__init__.py", line 20, in mount
    start_fuse()
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/gitfs/mounter.py", line 108, in start_fuse
    args = parse_args(parser)
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/gitfs/mounter.py", line 40, in parse_args
    return Args(parser)
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/gitfs/utils/args.py", line 63, in __init__
    self.config = self.build_config(parser.parse_args())
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/gitfs/utils/args.py", line 72, in build_config
    return self.check_args(self.set_defaults(args))
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/gitfs/utils/args.py", line 142, in set_defaults
    value = value(args)
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/gitfs/utils/args.py", line 173, in get_repo_path
    return tempfile.mkdtemp(dir="/var/lib/gitfs")
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tempfile.py", line 333, in mkdtemp
    _os.mkdir(file, 0700)
OSError: [Errno 2] No such file or directory: '/var/lib/gitfs/tmpPZs8XF'
$ sudo !!
sudo gitfs http://52.64.121.123/issues.git issues
Traceback (most recent call last):
  File "/usr/local/bin/gitfs", line 11, in <module>
    load_entry_point('gitfs==0.4.5.1', 'console_scripts', 'gitfs')()
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/gitfs/__init__.py", line 20, in mount
    start_fuse()
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/gitfs/mounter.py", line 108, in start_fuse
    args = parse_args(parser)
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/gitfs/mounter.py", line 40, in parse_args
    return Args(parser)
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/gitfs/utils/args.py", line 63, in __init__
    self.config = self.build_config(parser.parse_args())
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/gitfs/utils/args.py", line 72, in build_config
    return self.check_args(self.set_defaults(args))
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/gitfs/utils/args.py", line 142, in set_defaults
    value = value(args)
  File "/usr/local/Cellar/gitfs/0.4.5.1/libexec/lib/python2.7/site-packages/gitfs/utils/args.py", line 173, in get_repo_path
    return tempfile.mkdtemp(dir="/var/lib/gitfs")
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tempfile.py", line 333, in mkdtemp
    _os.mkdir(file, 0700)
OSError: [Errno 2] No such file or directory: '/var/lib/gitfs/tmpZFBLGq'
$ # cried a little
$ sudo mkdir -p /var/lib/gitfs
$ sudo gitfs http://52.64.121.123/issues.git issues
0reactions
vtemiancommented, Nov 16, 2019

The homebrew formula was updated. Can you please try again?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git doesn't work after upgrading Mac OS X El Capitan [duplicate]
Git doesn't work after upgrading Mac OS X El Capitan. After installing El Capitan, I have this error when I'm doing a git...
Read more >
autogen.sh fails on Mac OS X 10.6.8 · Issue #6 - GitHub
What steps will reproduce the problem? 1. Clone the git repo 2. Install all required dependencies 3. Run autogen.sh What is the expected...
Read more >
Why is Git not found after installing OS X Lion? - Ask Different
Xcode 4(4.0-4.2) drops git into /Developer/usr/bin along with most of the other tools you need like make and gcc. It might be simplest...
Read more >
Download for macOS - Git SCM
Download for macOS. There are several options for installing Git on macOS. Note that any non-source distributions are provided by third parties, and...
Read more >
macOS, the command line developer tool missing after ...
After that, I found both python and git are no longer working properly ... /Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find git 2> ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found