-
-
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
Incorrect index in lockfile #3248
Comments
It just lists pypi as the index specifically because it locked it from the alternate index despite the fact that pypi is listed first (i.e. is the primary index), so it knows it should check there first I am curious to know if this causes issues though, I'm not sure we thought this through much |
My thought process is that if it's in the lockfile, it's because it's part of what needs to be considered as locked. If we don't actually care which index it comes from, should it even be in the lockfile? |
I do sometimes have issues with multiple indexes where the index chosen to install from first doesn't have the package, so it does seem to me that the index being specified is important to get correct. |
I'm also seeing this problem. Here's a bit more info: Our project
Our private wheelhouse holds closed-source projects that we don't release publicly. When we run The order of the Interestingly, it doesn't seem to affect anything. Future installs using the lock file still work fine. There are no errors. But this is clearly not accurate data in the lock file, and I'm concerned that, in future |
That's pretty much the way it's happening for me as well, except that, for reasons I don't understand, it doesn't lock everything to the internal index, some things get set to PyPI, and some to the internal index. I don't have a clue how it chooses, and it's very commonly incorrect. I also don't see it affecting the installs for the most part, except in the case I describe in #3250, which is related to the extent that it is an example of the index specified in the lockfile being ignored during the install. |
I have the exact same behavior as @nickwilliams-eventbrite . Is this a problem? is this normal? What does this |
Just come across this problem. In my case, it appears to be a bit random. Some packages from pypi are being attributed to my private (mainly containing prebuilt wheels for our environment) repository but not all. The main side effect is the install stage takes longer as packages will initially fail to install, but are then subsequently installed when they are retried (presumably using the other repository listed). While the outcome is all expected packages are installed, it takes longer than required and causes a few double takes when reading through the lock file seeing packages that I know are not in the private repository listed. Our junior developer was confused by the issue when they first encountered it. |
Same issue here, a package coming from a private package index is labeled with index="pypi". This is confusing because looking at either the Pipfile or Pipfile.lock, there is no way to know from where index the package comes from.
|
Observed this a few times as well. This behavior breaks integration with other tools in our cases (e.g. micropipenv). |
These issues I believe have since been resolved. |
Issue description
When using a custom index for a package that is also on PyPI, but with different versions, it uses the custom index for the version (which is the higher version, so this is correct), but the lock file tags it as coming from the PyPI index. The version that is locked does not exist on the
pypi
index, and the PyPI versions do not exist on the custom index.Expected result
I expected it to get the latest version, and annotate the lockfile with the correct index that the version was retrieved from.
Actual result
Locking works cleanly, but produced the odd output in the lockfile.
Steps to replicate
Use this
Pipfile
to lock and get this
Pipfile.lock
$ pipenv --support
Pipenv version:
'2018.11.14'
Pipenv location:
'/home/ryan/.local/lib/python3.6/site-packages/pipenv'
Python location:
'/home/ryan/.pyenv/versions/3.6.6/bin/python3.6'
Python installations found:
3.7.1
:/home/ryan/.pyenv/versions/3.7.1/bin/python3
3.7.1
:/home/ryan/.pyenv/versions/3.7.1/bin/python3.7m
3.7.0
:/home/ryan/.pyenv/versions/3.7.0/bin/python3
3.7.0
:/home/ryan/.pyenv/versions/3.7.0/bin/python3.7m
3.6.7
:/home/ryan/.pyenv/versions/3.6.7/bin/python3
3.6.7
:/home/ryan/.pyenv/versions/3.6.7/bin/python3.6m
3.6.6
:/home/ryan/.pyenv/versions/3.6.6/bin/python3
3.6.6
:/home/ryan/.pyenv/versions/3.6.6/bin/python3.6m
3.6.6
:/usr/bin/python3
3.6.6
:/usr/bin/python3.6m
2.7.15rc1
:/usr/bin/python2.7
PEP 508 Information:
System environment variables:
CLUTTER_IM_MODULE
LS_COLORS
LESSCLOSE
XDG_MENU_PREFIX
LANG
GDM_LANG
DISPLAY
QT_STYLE_OVERRIDE
COLORTERM
PYENV_VIRTUALENV_INIT
XDG_VTNR
SSH_AUTH_SOCK
MANDATORY_PATH
XDG_SESSION_ID
XDG_GREETER_DATA_DIR
USER
DESKTOP_SESSION
QT4_IM_MODULE
TEXTDOMAINDIR
GNOME_TERMINAL_SCREEN
DEFAULTS_PATH
QT_QPA_PLATFORMTHEME
PWD
HOME
TEXTDOMAIN
SSH_AGENT_PID
QT_ACCESSIBILITY
XDG_SESSION_TYPE
XDG_DATA_DIRS
XDG_SESSION_DESKTOP
GTK_MODULES
TERM
SHELL
VTE_VERSION
XDG_SEAT_PATH
QT_IM_MODULE
XMODIFIERS
IM_CONFIG_PHASE
XDG_CURRENT_DESKTOP
GPG_AGENT_INFO
GNOME_TERMINAL_SERVICE
XDG_SEAT
SHLVL
PYENV_SHELL
LANGUAGE
GDMSESSION
GNOME_DESKTOP_SESSION_ID
LOGNAME
DBUS_SESSION_BUS_ADDRESS
XDG_RUNTIME_DIR
XAUTHORITY
XDG_SESSION_PATH
XDG_CONFIG_DIRS
PATH
SESSION_MANAGER
LESSOPEN
GTK_IM_MODULE
OLDPWD
_
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
:/home/ryan/bin:/home/ryan/.local/bin:/home/ryan/.pyenv/plugins/pyenv-virtualenv/shims:/home/ryan/.pyenv/shims:/home/ryan/.pyenv/bin:/home/ryan/.local/bin:/home/ryan/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
SHELL
:/bin/bash
LANG
:en_US.UTF-8
PWD
:/home/ryan/Code/aspiredu/pipenv-indices
Contents of
Pipfile
('/home/ryan/Code/aspiredu/pipenv-indices/Pipfile'):Contents of
Pipfile.lock
('/home/ryan/Code/aspiredu/pipenv-indices/Pipfile.lock'):The text was updated successfully, but these errors were encountered: