Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

`_pyenv_virtualenv_hook` still in $PROMPT_COMMAND after uninstall

Abierto
#482 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
shell
Área
cli

Línea de trabajo

No source file or test is named. Reproduce the macOS arm64 case with pyenv 2.4.3 and pyenv-virtualenv 1.2.3, then inspect bashrc, virtualenv-init, and PROMPT_COMMAND during a new terminal session. Done means uninstalling the plugin and removing virtualenv-init no longer leaves _pyenv_virtualenv_hook in PROMPT_COMMAND.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

I was using pyenv+pyenv-virtualenv installed via brew on macOS. I uninstalled it and removed virtualenv-init from my bashrc, but it still gets added to PROMPT_COMMAND which now makes every new terminal fail with -bash: _pyenv_virtualenv_hook: command not found.

Too many issues will kill our team's development velocity, drastically.
Make sure you have checked all steps below.

Prerequisite
  • Make sure your problem is not listed in the common build problems.
  • Make sure no duplicated issue has already been reported in the pyenv-virtualenv issues. You should look in closed issues, too.
  • Make sure you are not asking us to help solving your specific issue.
    • GitHub issues is opened mainly for development purposes. If you want to ask someone to help solving your problem, go to some community site like Gitter, StackOverflow, etc.
  • Make sure your problem is not derived from packaging (e.g. Homebrew).
    • Please refer to the package documentation for the installation issues, etc.
  • Make sure your problem is not derived from other plugins.
    • This repository is maintaining the pyenv-virtualenv plugin only. Please refrain from reporting issues of other plugins here.
Description
  • Platform information (e.g. Ubuntu Linux 20.04): macOS
  • OS architecture (e.g. amd64): arm64
  • pyenv version: 2.4.3
  • pyenv-virtualenv version: 1.2.3
  • Python version: 3.12.2
  • virtualenv version (if installed):
  • Please attach the debug log of a faulty Pyenv invocation as a gist
    • If the problem happens in a Pyenv invocation, you can turn on debug logging by setting PYENV_DEBUG=1, e.g. env PYENV_DEBUG=1 pyenv install -v 3.6.4
    • If the problem happens outside of a Pyenv invocation, get the debug log like this:
      # for Bash
      export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
      # for Zsh
      export PS4='+(%x:%I): %N(%i): '
      
      set -x
      <reproduce the problem>
      set +x
      
Lenguaje dominante
Shell
Estrellas
6.7k
Forks
427
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pyenv/pyenv-virtualenv

Todos los issues de pyenv/pyenv-virtualenv

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.