Sublime Forum

How to specify / set the correct Python?

#1

For Sublime Merge, I have a pre-commit script that runs and errors out because flake8 is missing. I’ve tried installing flake8 every where but I can’t seem to find the correct Python.

0 Likes

#2

What operating system are you using? Did you set the git_binary setting?

0 Likes

#3

Using Mac OS 10.13.6.

git is working fine. I have a pre-commit file set to use flake8 on all the Python files. I’m just not sure how to check which Python Sublime is using. I have to install flake8 into the right Python.

0 Likes

#4

The environment that GUI apps launch in is different than your terminal. My hunch is that you don’t have flake8 on the system PATH. Changing the path for the Dock, which is what affects GUI apps, is a pain. You could try installing flake8 on the system Python 2.7 for now.

We may consider using the PATH from your terminal for Git processes in the future, I’ll have to discuss with Jon.

0 Likes

#5

ok thanks. Looks like I would need to sudo install pip and flake8 to system python which I’m apprehensive of doing :sweat_smile:

0 Likes

#6

This should be solved in build 1059, which is a dev build (and requires a license). We’ll likely be making a new stable build sometime this week to get some of the initial fixes out to users.

1 Like