Skip to content

python --version sends to stderr on macos before activating venv #638

@ciferkey

Description

@ciferkey

Describe the bug

This seems similar to #271.

On macos the system version of Python is 2.7 and --version will send text to stderr.

Steps to reproduce

  1. cd into a Python project that uses a virtual environment.
  2. before sourcing the venv the system version of Python is used to detect the Python version.
  3. The string Python 2.7.18 is printed over stderr.
  4. once you source the venv, you the venv version of Python is used.
  5. No messages appear in stderr.

Screenshots

Image

Environment

Output of tide bug-report:

fish version: 4.4.0
tide version: 6.0.1
term: xterm-ghostty
os: MacOS Sequoia
terminal emulator: Ghostty/iTerm2
fish startup: 61.11 millis
fisher plugins: ilancosman/tide@v6 patrickf1/fzf.fish

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions