Pipenv: Only pipenv shell -c works on my zsh

Created on 2 Feb 2017  Â·  5Comments  Â·  Source: pypa/pipenv

I'm using zsh, and pip shell only works with the --compat flag.

So, in this case, what "misconfigured shells" means?

github-douglas/demo/dfu-demo
â–¶ pipenv shell --help                                     
Usage: pipenv shell [OPTIONS] [SHELL_ARGS]...

  Spawns a shell within the virtualenv.

Options:
  --three / --two  Use Python 3/2 when creating virtualenv.
  --python TEXT    Specify which version of Python virtualenv should use.
  -c, --compat     Run in shell compatibility mode (for misconfigured shells).
  --help           Show this message and exit.

github-douglas/demo/dfu-demo
â–¶ pipenv shell       
Launching subshell in virtual environment. Type 'exit' or 'Ctrl+D' to return.

github-douglas/demo/dfu-demo
â–¶ ./manage.py --version
Traceback (most recent call last):
  File "./manage.py", line 17, in <module>
    "Couldn't import Django. Are you sure it's installed and "
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?

github-douglas/demo/dfu-demo
â–¶ pipenv shell -c                                         
Spawning environment shell (/bin/zsh).
source /Users/douglas/.virtualenvs/dfu-demo/bin/activate

github-douglas/demo/dfu-demo
â–¶ source /Users/douglas/.virtualenvs/dfu-demo/bin/activate
(dfu-demo) 
github-douglas/demo/dfu-demo
â–¶ ./manage.py --version                                   
1.10.5
(dfu-demo) 
github-douglas/demo/dfu-demo
â–¶ 

pipenv==3.3.4

Most helpful comment

@kennethreitz could you expand a little (or post a link) on what is considered properly configured shell in this case? For people who stumble to this via Google. Thanks!

All 5 comments

that means you don't have your shell configured properly!

and that's why compatibility mode is there. you can make it permanent by setting PIPENV_SHELL_COMPAT=1

@kennethreitz could you expand a little (or post a link) on what is considered properly configured shell in this case? For people who stumble to this via Google. Thanks!

I'm stumbling across this issue (linked from Google) and I still don't know what is misconfigured in my shell that makes a straight pipenv shell not work for me. What is not configured properly in my shell? What is considered a properly configured shell?
Thanks.

check this out for more information https://github.com/berdario/pew#the-environment-doesnt-seem-to-be-activated

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FooBarQuaxx picture FooBarQuaxx  Â·  3Comments

erinxocon picture erinxocon  Â·  3Comments

fbender picture fbender  Â·  3Comments

hynek picture hynek  Â·  3Comments

konstin picture konstin  Â·  3Comments