Install-From-Source-Guide: outdated instructions (Mac)
See original GitHub issueIn the dependencies section, it says:
macOS:
Install Homebrew, then brew install ffmpeg and brew install homebrew/science/opencv --with-ffmpeg.
The homebrew/science branch was deprecated as all formulae were moved elsewhere. The closest package I could find by name was opencv@2 by simply doing brew install opencv@2 however --with-ffmpeg is an invalid option when I tried substituting with this.
(edit: overlooked package opencv because I’m stupid but same invalid option error thrown)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:14
Top Results From Across the Web
How to download macOS - Apple Support
Download and install current or previous versions of the Mac operating system.
Read more >MacPorts Guide
MacPorts is an easy to use system for compiling, installing, and managing open source software. MacPorts may be conceptually divided into two main...
Read more >How to install older versions of macOS or OS X - Macworld
We'll walk you through all the steps below for installing an older version of macOS on your Mac – from making sure your...
Read more >How to clean install macOS on your Mac - Macworld
1. We're going to re-download the installer file for our chosen version of macOS and store it on a USB stick or external...
Read more >How to Install macOS Ventura or Monterey on Unsupported ...
There's hope for older Macs. There is, in fact, hope for users of many old Mac models. With a bit of effort, you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I see references to butterflow all over the internet when frame interpolation comes up, so it’s a bit surprising it’s not just an installable Homebrew formula. If someone can get this working on a contemporary version of macOS, probably worthwhile to make it a formula.
Here’s a step-by-step of worked for me on macOS 10.15 Catalina:
Install the Xcode commandline tools if you need to
xcode-select --installnote that opencv@2 depends on ffmpeg now so it gets installed automatically - see https://formulae.brew.sh/formula/opencv@2
brew install opencv@2Install pip, which’ll then let us install virtualenv
sudo easy_install pippip install virtualenvNote that it’ll give you the following info, which we can ignore for now WARNING: The script virtualenv is installed in ‘/Users/yourusername/Library/Python/2.7/bin’ which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
cd to wherever you want to put your code, e.g.
cd ~, then clone the butterflow sourcegit clone https://github.com/dthpham/butterflow.gitCreate the virtualenv - we’ll just refer to the newly-install virtualenv binary directly instead of adding it to our PATH like the warning above says. Note that
pythonhas been renamed topython2andpython3in Catalina, as far as I know, so we want virtualenv to use python2~/Library/Python/2.7/bin/virtualenv -p /usr/bin/python2 butterflowNavigate into the folder
cd butterflowTell butterflow where the homebrew python site-packages are by using a .pth file
echo "$(brew --prefix)/lib/python2.7/site-packages" > lib/python2.7/site-packages/butterflow.pthactivate the virtualenv
source bin/activatenow we’re inside the virtualenv, set the compile flags so the clang compiler knows where things are
OK, we’re hopefully ready to install! -
sudo python2 setup.py installtest that it works
butterflow --helpexit the virtualenv
deactivateNOTE: to use butterflow outside of the virtualenv environment, you’ll need to set the PYTHONPATH permanently for your shell, e.g. something like:
echo "export PYTHONPATH=$PYTHONPATH:$(brew --prefix)/lib/python2.7/site-packages" >> ~/.bash_profileHope that helps somebody!