hyper: Can't start Hyper from terminal (/opt/homebrew/bin/hyper: line 4: /usr/bin/python: No such file or directory)
- I am on the latest Hyper.app version
- I have searched the issues of this repo and believe that this is not a duplicate
- OS version and name: MacOS Monterey 12.3
- Hyper.app version: 3.2.0
- Link of a Gist with the contents of your .hyper.js: .hyper.js
- Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere):
Issue
Attempting to invoke Hyper from the terminal (terminal.app or iTerm2) fails:
$ hyper
$ /opt/homebrew/bin/hyper: line 4: /usr/bin/python: No such file or directory
$ /opt/homebrew/bin/hyper: line 8: ./MacOS/Hyper: No such file or directory
Please note my Python installation was done via Homebrew and as I am on an M1 machine all Homebrew installs go under /opt/homebrew/bin.
Also, there’s no such ./MacOS/Hyper anywhere. Was it supposed to get created by Hyper? It’s not there.
Hyper was also installed with Homebrew.
Maybe Related:
I cannot run either Tools/Install Hyper CLI command in PATH, I get the following error:

About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 26 (13 by maintainers)
No, haven’t played with it yet. Looking forward to it!
Yes it’ll get overwritten. I’ll try to submit a PR soon so hopefully they’ll take the fix.
This shell script expects to be in its proper home inside the Hyper.app application bundle. That’s what all the
CONTENTS=,ELECTRON=, etc are doing…trying to find the path toHyper.apprelative to thehyperscript. So you need to patch the script in place:Hyper.app/Contents/Resources/bin/hyperThat’s because the system’s default python was removed in macOS 12.3. This has been anticipated for a couple years, but the Hyper project must not have known. More info here: https://scriptingosx.com/2020/02/wrangling-pythons/
Putting this in Hyper.app/Contents/Resources/bin/hyper worked for me, thank you!
Hi @TransformersWsz! That’s Ohmyzsh running the powerlevel10k theme. It will look similar across all terminals if you source the
.zshrcfile: iTerm2, Terminal.app, Hyper, etc.It’s highly customizable. You can find how to place the OS logo in this section of the
.p10k.zshfile:Colors are also fully customizable. Let me know if you need help. It’s a pretty big file with tons of variables.
With Hyper I use the
hyper-one-darktheme, which changes some colors, but it doesn’t alter the look of powerlevel10k. You’ll need a powerfont as well. I useSauceCodePro Nerd Font.Hope this helps!
This latest version of the patch works perfectly fine, the cli is back and fig works as well (yes, indeed
figis very neat @zcutlip, did you check how nice is to create your own shortcuts or add mixins to expand the current clis?).Thank you so much. Would this get overwritten on an upcoming version of Hyper?
Thanks so much @zcutlip! That did the trick! 🚀 🎉
Okay, hopefully one last attempt. Since
-fwasn’t available on macOS until recently, here’s a workaround:https://unix.stackexchange.com/a/534101