Skip to content
This repository has been archived by the owner. It is now read-only.

Error when installing with brew install fission-cli #37

Closed
agentofuser opened this issue Nov 13, 2019 · 5 comments
Closed

Error when installing with brew install fission-cli #37

agentofuser opened this issue Nov 13, 2019 · 5 comments
Labels
🐛 bug Something isn't working homebrew Homebrew tap formula https://github.com/fission-suite/homebrew-fission

Comments

@agentofuser
Copy link

@agentofuser agentofuser commented Nov 13, 2019

Summary

==> Installing fission-cli from fission-suite/fission
Error: An exception occurred within a child process:
  RuntimeError: /usr/local/opt/ipfs not present or broken
Please reinstall ipfs. Sorry :(

Problem

I have the ipfs cli installed by IPFS Desktop.

First I thought the error was because fission was looking for the ipfs cli at that absolute path (/usr/local/opt/ipfs), which doesn't exist.

So I symlinked it to /Applications/IPFS\ Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/go-ipfs-dep/go-ipfs/ipfs, which is what the ipfs command in the PATH points to.

I tried again, but I keep getting the same error.

Impact

Show-stopper, can't install to sign up.

Solution

Not sure how to debug this, the error message is a bit vague.

Desktop (please complete the following information):

  • OS: macOS Catalina
  • ipfs version: 0.4.22
@agentofuser agentofuser added the 🐛 bug Something isn't working label Nov 13, 2019
@bmann
Copy link
Member

@bmann bmann commented Nov 13, 2019

That is an interesting error. First Mac error we’ve gotten ;)

Homebrew shouldn’t depend on IPFS being installed. Will look into this.

@bmann bmann added the homebrew Homebrew tap formula https://github.com/fission-suite/homebrew-fission label Nov 13, 2019
@bechurch
Copy link
Contributor

@bechurch bechurch commented Nov 13, 2019

hmm I have a feeling this has to do with requiring ipfs in our brew formula:
https://github.com/fission-suite/homebrew-fission/blob/master/fission-cli.rb#L7

Most likely its checking that you have ipfs installed via brew.

@agentofuser would you be willing to see if install ipfs via brew solves this for you? I understand if you might have ipfs setup a certain way and we can get around to verifying this ourselves :)

@expede
Copy link
Member

@expede expede commented Nov 13, 2019

Thanks for the detailed bug report! We really appreciate these 🙏

Just to unblock, you can also download the binary here

If IPFS is on your PATH, running that should work 🤞

We're working on fixing the Homebrew formula to auto-detect non-brew IPFS, or at minumu give an opt-out of the dependency.

@agentofuser
Copy link
Author

@agentofuser agentofuser commented Nov 14, 2019

@bechurch I installed ipfs via brew, and either before or after doing that I'm now getting the following message:

Error: fission-cli: Unsupported special dependency :ipfs

@expede thanks! I'll try the binary.

@bmann
Copy link
Member

@bmann bmann commented Nov 15, 2019

I heard back from @agentofuser on Discord that brew untap / tap fixed this issue. Closing!

@bmann bmann closed this as completed Nov 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 bug Something isn't working homebrew Homebrew tap formula https://github.com/fission-suite/homebrew-fission
Projects
None yet
Development

No branches or pull requests

4 participants