-
Notifications
You must be signed in to change notification settings - Fork 3
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
Error if pyenv-virtualenv not installed #2
Comments
Sorry, I missed this issue completely. Checking. |
Hmm, I can't reproduce this, for me if |
When starting a XONSH shell (with xontrib load pyenv in .xonshrc) I get the message:
(I have $XONSH_SHOW_TRACEBACK set to True). Then I brew installed pyenv-virtualenv. It makes the message/error go away. |
I've commited a change into The other issue is more interesting, for me it works as inteded: ❯ pyenv virtualenv test
Looking in links: /tmp/tmpahxyqpfz
Requirement already satisfied: setuptools in /home/dyuri/.pyenv/versions/test/lib/python3.9/site-packages (56.0.0)
Requirement already satisfied: pip in /home/dyuri/.pyenv/versions/test/lib/python3.9/site-packages (21.1.3)
❯ pyenv activate test
pyenv-virtualenv: prompt changing will be removed from future release. configure `export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
❯ which python
/home/dyuri/.pyenv/shims/python
❯ $VIRTUAL_ENV
'/home/dyuri/.pyenv/versions/test'
❯ pyenv deactivate cica
❯ $VIRTUAL_ENV
Traceback (Most recent call last):
1 <xonsh-code> <module> -->
KeyError: 'Unknown environment variable: $VIRTUAL_ENV'
❯ pyenv virtualenv-delete test
pyenv-virtualenv: remove /home/dyuri/.pyenv/versions/test? y Is the
|
I brew uninstalled pyenv-virtualenv. |
No, I did not, and no, pyenv-virtualenv is not my package, xontrib-pyenv is. A minute and I publish a new version to PyPI. |
I see. What is the best procedure to get your latest version? |
New version (1.0.6) released to PyPI (https://pypi.org/project/xontrib-pyenv/), I hope brew uses that. |
I'm using |
Everything seems to work now, including the virtualenv stuff. Great! Thanks for the prompt action. For others who may read this: xpip uninstall xontrib-pyenv, followed by a similar install. BTW it would be useful if you could add to the contributing-pyenv docs that no other installation steps (as stipulated in the pyenv docs) are necessary. |
If pyenv-virtualenv is not installed, I get:
The text was updated successfully, but these errors were encountered: