-
-
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
Multiple sources #5736
Comments
You need to add secondary sources explicitly to the Pipfile -- only the first source is tried for packages that do not specify an index explicitly per index restricted packages. Try:
|
@matteius sure! But I demonstrate the problem when no secondary source is used. |
@matteius just checked your Pipfile. Installation fails either. |
I reproduced what you are saying, seems odd -- I am noting that when you have the extra index in this example, something is pulling page from the second index even though it wasn't specified in Pipfile:
This is causing it to also pull torch from pytorch.org but the name is different there -- you get:
Its actually failing to generate the hashes because its looking for hashes under the key |
@matteius did you tried Pipfile with torch package line (your version) or not (my version)? Anyway I think it is more important to solve problem in my state because the second source should have no influence on the install process. |
I believe what happened is at some point pip changed behaviors from always preferring pypi to searching (randomly?) the provided sources. So the problem is really in my index restricted packages implementation, but there seems to be a simple fix within the pip patch I provide for index restricted packages -- there should be an else conditional that when a package index is not specified it will only search the first index, which should be the default index in the Pipfile. Making this small change to our patch fixes both example usages (mine and yours). |
In fixing this, and seeing the test failure, I realize there is a larger implication: Additionally, it seems |
@matteius I would like to comment your last message. I had a case when it was impossible to install packages without |
@RomanSteinberg Well it should still be possible to install specific packages with |
Issue description
Using multiple source in Pipfile leads to installation failure.
Expected result
Pipenv should install packages respecting filled index.
Actual result
Steps to replicate
Pipfile
Commands:
The result is very long. It's tail looks like this:
Important! If I remove the second source from the Pipfile then pipenv installs successfully.
$ pipenv --support
Pipenv version:
<module 'pipenv.__version__' from '/home/rl/.local/lib/python3.8/site-packages/pipenv/__version__.py'>
Pipenv location:
'/home/rl/.local/lib/python3.8/site-packages/pipenv'
Python location:
'/usr/bin/python3'
OS Name:
'posix'
User pip version:
'23.1.2'
user Python installations found:
PEP 508 Information:
System environment variables:
SHELL
SESSION_MANAGER
QT_ACCESSIBILITY
COLORTERM
XDG_CONFIG_DIRS
XDG_MENU_PREFIX
GNOME_DESKTOP_SESSION_ID
MANDATORY_PATH
LC_ADDRESS
GNOME_SHELL_SESSION_MODE
LC_NAME
SSH_AUTH_SOCK
XMODIFIERS
DESKTOP_SESSION
LC_MONETARY
SSH_AGENT_PID
GTK_MODULES
GUAKE_TAB_UUID
PWD
LOGNAME
XDG_SESSION_DESKTOP
XDG_SESSION_TYPE
GPG_AGENT_INFO
XAUTHORITY
DESKTOP_STARTUP_ID
GJS_DEBUG_TOPICS
WINDOWPATH
HOME
USERNAME
IM_CONFIG_PHASE
LC_PAPER
LANG
LS_COLORS
XDG_CURRENT_DESKTOP
VTE_VERSION
INVOCATION_ID
MANAGERPID
GJS_DEBUG_OUTPUT
LESSCLOSE
XDG_SESSION_CLASS
TERM
LC_IDENTIFICATION
DEFAULTS_PATH
LESSOPEN
USER
DISPLAY
SHLVL
LC_TELEPHONE
QT_IM_MODULE
LC_MEASUREMENT
XDG_RUNTIME_DIR
LC_TIME
JOURNAL_STREAM
XDG_DATA_DIRS
PATH
GDMSESSION
DBUS_SESSION_BUS_ADDRESS
GIO_LAUNCHED_DESKTOP_FILE_PID
GIO_LAUNCHED_DESKTOP_FILE
LC_NUMERIC
OLDPWD
_
PYTHONDONTWRITEBYTECODE
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/home/rl/.local/bin/:/home/rl/.local/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/rl/Temp/install
Contents of
Pipfile
('/home/rl/Temp/install/Pipfile'):Contents of
Pipfile.lock
('/home/rl/Temp/install/Pipfile.lock'):Pipfile.lock.txt
The text was updated successfully, but these errors were encountered: