question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple sources on same domain

See original GitHub issue

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 or https://__token__:***@gitlab.com/api/v4/projects/123/packages/pypi/simple or https://__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:

{'implementation_name': 'cpython',
 'implementation_version': '3.9.2',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '5.11.10-1-MANJARO',
 'platform_system': 'Linux',
 'platform_version': '#1 SMP PREEMPT Thu Mar 25 17:14:55 UTC 2021',
 'python_full_version': '3.9.2',
 'python_version': '3.9',
 'sys_platform': 'linux'}

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/python@3.8/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’):

[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[[source]]
url = "https://__token__:***@gitlab.com/api/v4/projects/123/packages/pypi/simple"
verify_ssl = true
name = "scraper"

[[source]]
url = "https://__token__:***@gitlab.com/api/v4/projects/456/packages/pypi/simple"
verify_ssl = true
name = "api"

[packages]
package_one = {version="*", index="api"}
package_two = {version="*", index="scraper"}

[requires]
python_version = "3"

[pipenv]
allow_prereleases = true

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:11

github_iconTop GitHub Comments

1reaction
MyrikLDcommented, Apr 13, 2022

Thank you, fixed in 2022.4.8

1reaction
matteiuscommented, Apr 12, 2022

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Domain Adaptation with Multiple Sources - Google Research
This paper presents a theoretical analysis of the problem of domain adaptation with multiple sources. For each source domain, the distribution over the ......
Read more >
Can I Create Multiple Websites with One Domain Name?
Is it possible to create more than one website on a single domain name? This article answers the question and clarifies the relationship ......
Read more >
Building multiple Progressive Web Apps on the same domain
Explore the recommended and not recommended ways of building multiple PWAs reusing the same domain with their pros and cons.
Read more >
Can I use the same domain name for 2 separate web servers?
No, you cannot have the same domain name publicly visible from two sources. Your DNS with either point to the one server, or...
Read more >
Is it Bad for SEO to Have Multiple Links from the Same Domain?
Google tends to place more value on root links than it does on external links. So, if you have 1,000 different links on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found