-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
pipenv checks outside of pipenv-managed venv #4819
Comments
I was able to reproduce this issue based on the report. It would seem there is discrepancy between the help text of From the virtualenv, we find package: |
@tucked Please see this, the checker does do some introspection of the Pipfile, but it also does a PEP 508 checker in the virtualenv Lines 2566 to 2578 in cdde3f7
|
It's not the correct virtualenv (i.e. it's the environment
Side note: It's not a great idea to call into library code this way (because you lose the package context):
Try |
I'm seeing the same issue (or at least difference from expected behaviour). Is the intended behavior that |
New version of pipenv released today has the latest version of safety check. Please check it out. |
I hit #5491 before the repro. |
@tucked Yeah sorry about that -- if you wanted to try it now you can do the editable install of pipenv, it was broken in the wheel. Otherwise there should be a new release in the next day. |
Yup, still repros on 66153e2 tox --devenv venv -r
venv/bin/python -m pip install --upgrade 'pip<21'
venv/bin/pipenv --python="$PWD/venv/bin/python" install 'pip>=21'
venv/bin/pipenv check
|
@matteius and @tucked, I decided to get the target packages from the target venv and pass them as a temporal file to the internal Safety. That change will fix this issue. Safety inside of About #4600, the difference is because The team is thinking in allow passing a target venv path in a Safety argument instead of checking the current one, but for now, it doesn't have a high priority. Let me know if I can help more or if you need me to make changes to PR #5501. Happy to help! |
@tucked |
Ah bummer, the published wheel is still missing ruamel. |
I just reran the repro with 2022.11.25, and:
🎉 Thanks @yeisonvargasf and @matteius! |
Issue description
pipenv check
can fail on packages not managed bypipenv
.It doesn't seem to matter if
PIPENV_IGNORE_VIRTUALENVS
is set.Expected result
Actual result
pipenv check --verbose
$ pipenv --support
Pipenv version:
'2021.5.29'
Pipenv location:
'/tmp/tmp.X2jD7mSKG6/venv/lib/python3.6/site-packages/pipenv'
Python location:
'/tmp/tmp.X2jD7mSKG6/venv/bin/python'
Python installations found:
3.10.0
:/ifs/home/dtucker/.pyenv/versions/3.10.0/bin/python3
3.9.7
:/ifs/home/dtucker/.pyenv/versions/3.9.7/bin/python3
3.9.0
:/ifs/home/dtucker/.pyenv/versions/3.9.0/bin/python3
3.8.12
:/ifs/home/dtucker/.pyenv/versions/3.8.12/bin/python3.8
3.8.6
:/ifs/home/dtucker/.pyenv/versions/3.8.6/bin/python3.8
3.8.0
:/ifs/home/dtucker/.pyenv/versions/3.8.0/bin/python3.8
3.8.0
:/usr/bin/python3.8
3.7.12
:/ifs/home/dtucker/.pyenv/versions/3.7.12/bin/python3.7m
3.7.9
:/ifs/home/dtucker/.pyenv/versions/3.7.9/bin/python3.7m
3.7.5
:/usr/bin/python3.7
3.7.5
:/usr/bin/python3.7m
3.7.4
:/ifs/home/dtucker/.pyenv/versions/3.7.4/bin/python3.7m
3.7.1
:/ifs/home/dtucker/.pyenv/versions/3.7.1/bin/python3.7m
3.6.15
:/ifs/home/dtucker/.pyenv/versions/3.6.15/bin/python3.6m
3.6.12
:/ifs/home/dtucker/.pyenv/versions/3.6.12/bin/python3.6m
3.6.9
:/ifs/home/dtucker/.pyenv/versions/3.6.9/bin/python3.6m
3.6.9
:/usr/bin/python3.6
3.6.9
:/usr/bin/python3.6m
3.6.9
:/usr/bin/python3
3.5.10
:/ifs/home/dtucker/.pyenv/versions/3.5.10/bin/python3.5m
3.5.7
:/ifs/home/dtucker/.pyenv/versions/3.5.7/bin/python3.5m
3.4.10
:/ifs/home/dtucker/.pyenv/versions/3.4.10/bin/python3.4m
2.7.18
:/ifs/home/dtucker/.pyenv/versions/2.7.18/bin/python2.7
2.7.17
:/usr/bin/python2
2.7.17
:/usr/bin/python2.7
2.7.16
:/ifs/home/dtucker/.pyenv/versions/2.7.16/bin/python2.7
2.6.9
:/ifs/home/dtucker/.pyenv/versions/2.6.9/bin/python2.6
PEP 508 Information:
System environment variables:
LC_ALL
LS_COLORS
SSH_CONNECTION
LANG
HISTCONTROL
HOSTNAME
OLDPWD
EDITOR
GPG_TTY
PYENV_VIRTUALENV_INIT
JIRA_PROXY
S_COLORS
XDG_SESSION_ID
PIP_INDEX_URL
USER
PWD
HOME
SSH_CLIENT
TESTLAB_LOG_DIRECTORY
TMUX
PIP_REQUIRE_VIRTUALENV
SSH_TTY
MAIL
TERM
SHELL
TMUX_PANE
SHLVL
PYENV_SHELL
LOGNAME
DBUS_SESSION_BUS_ADDRESS
HELIX_LOGDIR
XDG_RUNTIME_DIR
PIP_TRUSTED_HOST
PATH
PS1
HISTSIZE
_
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
:/ifs/home/dtucker/.pyenv/plugins/pyenv-virtualenv/shims:/ifs/home/dtucker/.pyenv/bin:/ifs/home/dtucker/.local/bin:/ifs/home/dtucker/bin:/ifs/home/dtucker/.pyenv/plugins/pyenv-virtualenv/shims:/ifs/home/dtucker/.pyenv/shims:/ifs/home/dtucker/.pyenv/bin:/ifs/home/dtucker/.local/bin:/ifs/home/dtucker/bin:.:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
SHELL
:/bin/bash
EDITOR
:vim
LANG
:en_US.UTF-8
PWD
:/tmp/tmp.X2jD7mSKG6
Contents of
Pipfile
('/tmp/tmp.X2jD7mSKG6/Pipfile'):Contents of
Pipfile.lock
('/tmp/tmp.X2jD7mSKG6/Pipfile.lock'):The text was updated successfully, but these errors were encountered: