-
-
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 on same domain #4672
Comments
@MyrikLD Since this involves private Pypis can you re-test with the latest version |
I suspect the newest version of |
I am facing the same problem. Also with version It seems like the new version generally does not handle multiple sources on locking
Maybe pipenv only checks the first source, which leads to:
|
@ThomasSteinbach what is your example Pipfile look like? |
@matteius here you are. I only replaced some names due to confidentiality:
All packages come from the first source (a proxy repository of pypi). Only the |
@ThomasSteinbach Your problem is different from the original issue report. You will need to pin your package to indexes whereby the first index in your Pipfile is the default that all unspecified packages will use. This first would have been an issue for you in
For more context see updated documentation on indexes: https://pipenv.pypa.io/en/latest/advanced/#specifying-package-indexes See also:
|
@ThomasSteinbach So in your case update to use:
|
@ThomasSteinbach No worries mate, I'm glad yours was an easy fix. Also there is an open issue/PR about giving a non-default option to still install from all sources as before for those that need it, but if you pin this way you'll get optimized installation as well as it will only search the indexes you expect to get the package from. |
@MyrikLD If you determine this is still an issue with the latest versions of pipenv and would like more support, just comment back with additional details. Until then I am closing this issue. |
Thank you, fixed in |
Issue description
ResolutionFailure on install packages from multiple sources with equal domains
Expected result
Package installing
Actual result
Locking [dev-packages] dependencies...
Building requirements...
Resolving dependencies...
✔ Success!
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✘ Locking Failed!
[ResolutionFailure]: File "/usr/lib/python3.9/site-packages/pipenv/resolver.py", line 741, in _main
[ResolutionFailure]: resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
[ResolutionFailure]: File "/usr/lib/python3.9/site-packages/pipenv/resolver.py", line 702, in resolve_packages
[ResolutionFailure]: results, resolver = resolve(
[ResolutionFailure]: File "/usr/lib/python3.9/site-packages/pipenv/resolver.py", line 684, in resolve
[ResolutionFailure]: return resolve_deps(
[ResolutionFailure]: File "/usr/lib/python3.9/site-packages/pipenv/utils.py", line 1395, in resolve_deps
[ResolutionFailure]: results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps(
[ResolutionFailure]: File "/usr/lib/python3.9/site-packages/pipenv/utils.py", line 1108, in actually_resolve_deps
[ResolutionFailure]: resolver.resolve()
[ResolutionFailure]: File "/usr/lib/python3.9/site-packages/pipenv/utils.py", line 833, in resolve
[ResolutionFailure]: raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: Could not find a version that matches package_two (from -r /tmp/pipenvamergd9lrequirements/pipenv-djbch16n-constraints.txt (line 14))
No versions found
Were
https://pypi.org/simple
orhttps://__token__:***@gitlab.com/api/v4/projects/123/packages/pypi/simple
orhttps://__token__:***@gitlab.com/api/v4/projects/456/packages/pypi/simple
reachable?Steps to replicate
pipenv lock
$ pipenv --support
Pipenv version:
'2020.11.15'
Pipenv location:
'~/.local/share/virtualenvs/scraper-mWBbuJI4/lib/python3.9/site-packages/pipenv'
Python location:
'~/.local/share/virtualenvs/scraper-mWBbuJI4/bin/python'
Python installations found:
3.9.2
:~/.local/share/virtualenvs/scraper-mWBbuJI4/bin/python3
3.9.2
:~/.local/share/virtualenvs/scraper-mWBbuJI4/bin/python3.9
3.9.2
:~/.local/share/virtualenvs/scraper-mWBbuJI4/bin/python3
3.9.2
:~/.local/share/virtualenvs/scraper-mWBbuJI4/bin/python3.9
3.9.2
:/usr/bin/python3.9
3.9.2
:/usr/bin/python3
3.8.8
:/usr/bin/python3.8
2.7.18
:/usr/bin/python2.7
2.7.18
:/usr/bin/python2
PEP 508 Information:
System environment variables:
HOME
DBUS_SESSION_BUS_ADDRESS
XDG_CURRENT_DESKTOP
LC_MONETARY
MONGO_USERNAME
PATH
PIP_PYTHON_PATH
REDIS_PORT
SHELL
XDG_MENU_PREFIX
PIPENV_ACTIVE
LC_PAPER
SSH_AGENT_PID
QT_AUTO_SCREEN_SCALE_FACTOR
XDG_VTNR
USER
PIP_DISABLE_PIP_VERSION_CHECK
LC_TIME
XDG_SESSION_TYPE
LC_MEASUREMENT
XDG_SEAT
DESKTOP_SESSION
GTK_MODULES
LC_IDENTIFICATION
PYTHONDONTWRITEBYTECODE
MOTD_SHOWN
LC_NAME
LC_NUMERIC
TERM
GDK_BACKEND
XDG_SESSION_CLASS
GTK3_MODULES
XDG_CONFIG_DIRS
PWD
__pipenv_fish_initial_pwd
SESSION_MANAGER
XDG_SESSION_ID
EDITOR
LOGNAME
MONGO_PASSWORD
QT_QPA_PLATFORMTHEME
XDG_RUNTIME_DIR
REDIS_HOST
VTE_VERSION
LC_ADDRESS
LC_TELEPHONE
XAUTHORITY
MKLROOT
XDG_DATA_DIRS
JOURNAL_STREAM
DISPLAY
MAIL
LANG
SSH_AUTH_SOCK
SHLVL
COLORTERM
LS_COLORS
INVOCATION_ID
MONGO_HOST
GTK2_RC_FILES
VIRTUAL_ENV
PIP_SHIMS_BASE_MODULE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
PIPENV_ACTIVE
:1
Debug–specific environment variables:
PATH
:/home/linuxbrew/.linuxbrew/opt/[email protected]/bin:package_two/.local/share/virtualenvs/scraper-mWBbuJI4/bin:package_two/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
SHELL
:/bin/fish
EDITOR
:/usr/bin/nano
LANG
:en_US.UTF-8
PWD
:/work/upsilon/liveart/scraper/laa_scrapy
VIRTUAL_ENV
:package_two/.local/share/virtualenvs/scraper-mWBbuJI4
Contents of
Pipfile
('/work/upsilon/liveart/scraper/Pipfile'):The text was updated successfully, but these errors were encountered: