-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python: Odd behaviour with sys.executable
#30445
Comments
note this is a MCVE, this manifests in an actual issue for the
pre-commit uses the value of |
I have a workaround which works for me 🤷♂️ |
I found this issue with more information: https://bugs.python.org/issue22490 |
Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
brew install
(orupgrade
,reinstall
) a single, official formula (not cask)? If it's a generalbrew
problem please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new/choose. If it's abrew cask
problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew gist-logs <formula>
(where<formula>
is the name of the formula that failed) and included the output link?brew gist-logs
didn't work: ranbrew config
andbrew doctor
and included their output with your issue?To help us debug your issue please explain:
brew install
commands)Here's a script which reproduces my problem:
Despite my script
bin/t
having a full shebang (here's what it ends up looking like):When run as a subprocess from
brew
's python it is reporting an executable which is entirely different from the one being used.I suspect this is due to this
Here's the output on my machine (script returns
1
)The text was updated successfully, but these errors were encountered: