Skip to content
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

Not finding Pipfile via PIPENV_PIPFILE with relative location #4164

Closed
n-batalha opened this issue Mar 26, 2020 · 2 comments
Closed

Not finding Pipfile via PIPENV_PIPFILE with relative location #4164

n-batalha opened this issue Mar 26, 2020 · 2 comments
Labels
Status: Awaiting Update ⏳ This issue requires more information before assistance can be provided. triage

Comments

@n-batalha
Copy link

n-batalha commented Mar 26, 2020

Issue description

pipenv is not finding a Pipfile provided with the PIPENV_PIPFILE variable when provided as a relative link, or an absolute link with relative notation e.g. /Users/REDACTED/Documents/git/wiki/src/somefolder/somefolder/../../../Pipfile.

It fails with RuntimeError: Given PIPENV_PIPFILE is not found!

Running PIPENV_PIPFILE=/Users/REDACTED/git/wiki/Pipfile pipenv run jupyter --help works.

Expected result

It finds the Pipfile


$ pipenv --support

Pipenv version: '2018.11.26'

Pipenv location: '/Users/REDACTED/Library/Python/3.7/lib/python/site-packages/pipenv'

Python location: '/usr/local/opt/python/bin/python3.7'

Python installations found:

  • 3.8.1: /usr/local/opt/pyenv/versions/3.8.1/bin/python3
  • 3.7.4: /usr/local/bin/python3
  • 3.7.4: /usr/local/bin/python3.7m
  • 3.7.3: /usr/bin/python3
  • 2.7.16: /usr/bin/python
  • 2.7.16: /usr/bin/pythonw

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.7.4',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '19.3.0',
 'platform_system': 'Darwin',
 'platform_version': 'Darwin Kernel Version 19.3.0: Thu Jan  9 20:58:23 PST '
                     '2020; root:xnu-6153.81.5~1/RELEASE_X86_64',
 'python_full_version': '3.7.4',
 'python_version': '3.7',
 'sys_platform': 'darwin'}

System environment variables:

  • SECURITYSESSIONID
  • USER
  • COMMAND_MODE
  • PATH
  • HOME
  • SHELL
  • LaunchInstanceID
  • __CF_USER_TEXT_ENCODING
  • XPC_SERVICE_NAME
  • SSH_AUTH_SOCK
  • XPC_FLAGS
  • LOGNAME
  • TMPDIR
  • CPPFLAGS
  • EDITOR
  • GIT_SUBREPO_ROOT
  • LDFLAGS
  • LESS
  • LSCOLORS
  • MANPATH
  • OLDPWD
  • PAGER
  • PKG_CONFIG_PATH
  • PWD
  • PYENV_ROOT
  • PYENV_SHELL
  • RBENV_SHELL
  • SHLVL
  • ZSH
  • TERM_PROGRAM
  • TERM_PROGRAM_VERSION
  • LANG
  • COLORTERM
  • TERM
  • _
  • PIP_DISABLE_PIP_VERSION_CHECK
  • PYTHONDONTWRITEBYTECODE
  • PIP_SHIMS_BASE_MODULE
  • PIP_PYTHON_PATH
  • PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: /usr/local/opt/node@12/bin:/Users/REDACTED/Applications/git-subrepo/lib:/usr/local/opt/openssl/bin:/usr/local/opt/postgresql@10/bin:/usr/local/opt/pyenv/shims:/usr/local/opt/pyenv/bin:/Users/REDACTED/.rbenv/shims:/Users/REDACTED/.rbenv/bin:/Users/REDACTED/bin:/usr/local/bin:/Users/REDACTED/Library/Python/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/Library/TeX/texbin:/usr/local/opt/node@12/bin:/Users/REDACTED/Applications/git-subrepo/lib:/usr/local/opt/openssl/bin:/usr/local/opt/postgresql@10/bin:/usr/local/opt/pyenv/shims:/usr/local/opt/pyenv/bin:/Users/REDACTED/.rbenv/shims:/Users/REDACTED/.rbenv/bin:/Users/REDACTED/REDACTED:/Users/REDACTED/Library/Python/3.7/bin
  • SHELL: /bin/zsh
  • EDITOR: nano
  • LANG: en_GB.UTF-8
  • PWD: /Users/REDACTED/git/wiki/src/Data-Engineering/Data-Summary

@n-batalha n-batalha changed the title Not finding Pipfile via PIPENV_PIPFILE Not finding Pipfile via PIPENV_PIPFILE with relative location Mar 30, 2020
@n-batalha
Copy link
Author

I've since updated my issue after further investigation and narrowed down the cause. One was the current issue, and another was #4115.

For those looking to address the above, you can use realpath to transform the link into one that pipenv understands.

@matteius
Copy link
Member

Can this be rechecked on pipenv==2022.8.19?

@matteius matteius added the Status: Awaiting Update ⏳ This issue requires more information before assistance can be provided. label Aug 22, 2022
@matteius matteius closed this as completed Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting Update ⏳ This issue requires more information before assistance can be provided. triage
Projects
None yet
Development

No branches or pull requests

2 participants