You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a documentation issue as the underlying issue is with dotenv's parser. I think we just need an example and a cautionary note about enclosing variables in .env files in {} or a link to the dotenv docs https://github.com/theskumar/python-dotenv#usages although they don't exactly highlight this failure case either
PATH env var gets overwritten and causes crazyness
hughest@argon [0] $ pipenv shell
Loading .env environment variables…
Launching subshell in virtual environment…
bash: id: command not found
bash: id: command not found
. /home/hughest/.local/share/virtualenvs/jupyter_notebooks-xrlszz2Q/bin/activate
/usr/libexec/grepconf.sh: line 5: grep: command not found
/usr/libexec/grepconf.sh: line 5: grep: command not found
/usr/libexec/grepconf.sh: line 5: grep: command not found
bash: flatpak: command not found
bash: grep: command not found
bash: sed: command not found
bash: grep: command not found...
Install package 'grep' to provide command 'grep'? [N/y] ^Cbash: __vte_prompt_command: command not found...
[hughest@argon jupyter_notebooks]$ pipenv help^C
bash: __vte_prompt_command: command not found...
[hughest@argon jupyter_notebooks]$ exit
This is a documentation issue as the underlying issue is with dotenv's parser. I think we just need an example and a cautionary note about enclosing variables in
.env
files in{}
or a link to thedotenv
docs https://github.com/theskumar/python-dotenv#usages although they don't exactly highlight this failure case eitherIssue description
dotenv doesn't load .env files as expected
Expected result
Actual result
PATH env var gets overwritten and causes crazyness
Notice the '$PATH' is not evaluated
Steps to replicate
Here is my
.env
fileIt is fixed by adding curly braces around the variable
Pipenv version:
'2018.11.26'
Pipenv location:
'/usr/lib/python3.7/site-packages/pipenv'
Python location:
'/usr/bin/python3'
Python installations found:
3.7.2
:/usr/bin/python3
3.7.2
:/usr/bin/python3.7m
3.7.2
:/home/hughest/.pyenv/versions/3.7.2/bin/python3.7m
3.7.2
:/home/hughest/.pyenv/versions/3.7.2/bin/python3.7
3.7.0
:/home/hughest/.pyenv/versions/3.7.0/bin/python3.7m
3.7.0
:/home/hughest/.pyenv/versions/3.7.0/bin/python3.7
3.6.8
:/home/hughest/.local/share/virtualenvs/jupyter_notebooks-xrlszz2Q/bin/python3.6
3.6.8
:/usr/bin/python3.6
3.6.8
:/usr/bin/python3.6m
3.6.4
:/home/hughest/.pyenv/versions/3.6.4/bin/python3.6m
3.6.4
:/home/hughest/.pyenv/versions/3.6.4/bin/python3.6
3.5.6
:/usr/bin/python3.5
3.5.6
:/usr/bin/python3.5m
3.5.3
:/usr/bin/pypy3
3.4.9
:/usr/bin/python3.4
3.4.9
:/usr/bin/python3.4m
2.7.15
:/usr/bin/python
2.7.15
:/home/hughest/.pyenv/versions/2.7.15/bin/python2.7
2.7.13
:/usr/bin/pypy
2.6.9
:/usr/bin/python2.6
PEP 508 Information:
System environment variables:
LS_COLORS
LD_LIBRARY_PATH
TERMINATOR_UUID
XDG_MENU_PREFIX
MODULES_RUN_QUARANTINE
LANG
GDM_LANG
HISTCONTROL
DISPLAY
GUESTFISH_RESTORE
HOSTNAME
PYENV_ROOT
OLDPWD
EDITOR
PATH_modshare
LOADEDMODULES_modshare
COLORTERM
GUESTFISH_INIT
USERNAME
JAVA_HOME
KDEDIRS
PYENV_HOOK_PATH
GOENV_SHELL
XDG_VTNR
GIO_LAUNCHED_DESKTOP_FILE_PID
SSH_AUTH_SOCK
VIRTUAL_ENV
S_COLORS
XDG_SESSION_ID
MODULES_CMD
USER
ENV
PYENV_DIR
GUESTFISH_PS1
DESKTOP_SESSION
RBENV_SHELL
GOPATH
PIP_PYTHON_PATH
PWD
MODULES_LMCONFLICT_modshare
HOME
SSH_AGENT_PID
PYENV_VERSION
XDG_SESSION_TYPE
BASH_ENV
XDG_DATA_DIRS
_LMFILES__modshare
HTML_TIDY
SVN_EDITOR
PIPENV_ACTIVE
TERMINATOR_DBUS_NAME
XDG_SESSION_DESKTOP
EMAIL
SPARK_HOME
GJS_DEBUG_OUTPUT
PROJECT_HOME
LOADEDMODULES
TERMINATOR_DBUS_PATH
MAIL
MODULES_LMCONFLICT
WINDOWPATH
SHELL
VTE_VERSION
TERM
RBENV_ROOT
PS1_RB
QT_IM_MODULE
XMODIFIERS
XDG_CURRENT_DESKTOP
GIO_LAUNCHED_DESKTOP_FILE
PYTHONDONTWRITEBYTECODE
XDG_SEAT
PYENV_SHELL
SHLVL
PS1_PY
MANPATH
MODULEPATH
GDMSESSION
LOGNAME
PIP_DISABLE_PIP_VERSION_CHECK
DBUS_SESSION_BUS_ADDRESS
GIT_ASKPASS
XDG_RUNTIME_DIR
XAUTHORITY
MODULEPATH_modshare
GOENV_ROOT
PATH
_LMFILES_
GUESTFISH_OUTPUT
MODULESHOME
HISTSIZE
GJS_DEBUG_TOPICS
SESSION_MANAGER
LESSOPEN
BASH_FUNC_module%%
BASH_FUNC__module_raw%%
BASH_FUNC_switchml%%
BASH_FUNC_scl%%
PIP_SHIMS_BASE_MODULE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
PIPENV_ACTIVE
:1
Debug–specific environment variables:
PATH
:/usr/bin:/home/hughest/.pyenv/libexec:/home/hughest/.pyenv/plugins/python-build/bin:/home/hughest/.pyenv/plugins/pyenv-virtualenvwrapper/bin:/home/hughest/.local/share/virtualenvs/jupyter_notebooks-xrlszz2Q/bin:/home/hughest/.cargo/bin:/home/hughest/applications/spark/bin:/home/hughest/.npm-global/bin:/home/hughest/go/bin:/home/hughest/.goenv/shims:/home/hughest/.goenv/bin:/home/hughest/.rbenv/shims:/home/hughest/.rbenv/bin:/home/hughest/.pyenv/shims:/home/hughest/.pyenv/bin:/usr/bin:/home/hughest/.pyenv/libexec:/home/hughest/.pyenv/plugins/python-build/bin:/home/hughest/.pyenv/plugins/pyenv-virtualenvwrapper/bin:/home/hughest/.cargo/bin:/home/hughest/.cargo/bin:/home/hughest/applications/spark/bin:/home/hughest/.npm-global/bin:/home/hughest/go/bin:/home/hughest/.goenv/shims:/home/hughest/.goenv/bin:/home/hughest/.rbenv/shims:/home/hughest/.rbenv/bin:/home/hughest/.pyenv/shims:/home/hughest/.pyenv/bin:/home/hughest/.cargo/bin:/home/hughest/.cargo/bin:/home/hughest/applications/spark/bin:/home/hughest/.npm-global/bin:/home/hughest/go/bin:/home/hughest/.goenv/shims:/home/hughest/.goenv/bin:/home/hughest/.rbenv/shims:/home/hughest/.rbenv/bin:/home/hughest/.pyenv/shims:/home/hughest/.pyenv/bin:/usr/libexec/python3-sphinx:/usr/share/Modules/bin:/home/hughest/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/opt/puppetlabs/bin:/home/hughest/.local/bin:/home/hughest/bin:/home/hughest/.local/bin:/home/hughest/bin:~/applications/hadoop/bin
SHELL
:/bin/bash
EDITOR
:vim
LANG
:en_GB.UTF-8
PWD
:/home/hughest/git/jupyter_notebooks
VIRTUAL_ENV
:/home/hughest/.local/share/virtualenvs/jupyter_notebooks-xrlszz2Q
Contents of
Pipfile
('/home/hughest/git/jupyter_notebooks/Pipfile'):Contents of
Pipfile.lock
('/home/hughest/git/jupyter_notebooks/Pipfile.lock'):The text was updated successfully, but these errors were encountered: