Skip to content

Run FIT on macOS

Fabio Zito edited this page Feb 21, 2024 · 1 revision


To run FIT on macOS (Sonoma 14.3.1) where python 3.12 was already installed, I did do the following steps.

1. Install Visual Studio Code

To install Visual Studio Code I followed the steps outlined in this guide.

2. Install Python 3.11

2.1 Install Python using pyenv

For manage different versions of Python I use pyenv and to install it I used brew as shown below:

% brew install pyenv
% pyenv install 3.11.0

2.2 Add pyenv in the PATH

% echo 'export PYENV_ROOT=$(pyenv root)"' >> ~/.zshrc
% echo 'export PATH="$PYENV_ROOT/shims:$PATH"' >> ~/.zshrc
% source ~/.zshrc

3. Install Poetry

% curl -sSL https://install.python-poetry.org | python3.11 -
% echo `export PATH="/Users/zitelog/.local/bin:$PATH"` >> ~/.zshrc
% source ~/.zshrc

4. Install FIT

Cloning repository and create virtualenvs with Poetry and python 3.11.0

% git clone https://github.com/fit-project/fit.git

Install requirements with Poetry and run FIT

% poetry install

Installing sslkeylog (0.4.0): Failed

During the installation I got this error:

Screenshot 2024-02-21 alle 09 59 07 Googling this error and I found this solution:

  1. Run brew --prefix openssl to check the openSSL path. If OpenSSL is not installed, install it first.
  2. Run export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include" to add openssl include in environment variable CPPFLAGS.
  3. Run poetry install to install sslkeylog