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.

Error installing dependencies using poetry

See original GitHub issue

After cloning the project, I get the following error when when executing poetry install -E docs:

❯ poetry install -E docs
Installing dependencies from lock file


Because mkdocstrings (0.14.0 git rev master) depends on mkdocs-autorefs (>=0.1,<0.2) which doesn't match any versions, mkdocstrings is forbidden.
So, because copier depends on mkdocstrings (0.14.0 git rev master), version solving failed.

at ~/.local/pipx/venvs/poetry/lib/python3.9/site-packages/poetry/puzzle/ in _solve
    237│             packages = result.packages
    238│         except OverrideNeeded as e:
    239│             return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
    240│         except SolveFailure as e:
  → 241│             raise SolverProblemError(e)
    243│         results = dict(
    244│             depth_first_search(
    245│                 PackageNode(self._package, packages), aggregate_package_nodes

Steps to reproduce

  1. Clone the project fresh
  2. Go into the cloned project root and run poetry install -E docs or poetry install

System Specs

  • OS: macOS 11.2.1
  • Poetry base Python interpreter: v3.9.1 (pyenv)
  • Poetry version 1.1.4 (pipx)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

pawamoycommented, Mar 1, 2021

Everything is now released and resolvable 🙂

pawamoycommented, Feb 24, 2021

Hey @Yajo, sure, just one PR to merge in pytkdocs and I can release both mkdocstrings and pytkdocs 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Poetry build does not install build dependencies (affects both ...
If I install Cython globally but then activate the virtual env (which doesn't have Cython), then poetry install and poetry build still fail....
Read more >
Poetry not installing the packages in the venv - Stack Overflow
I rename the lib/python3.9 to another name and I ran poetry install again. · So the dependencies were (re)installed in ~/.local/lib/python3. · Yes ......
Read more >
History | Poetry - Python dependency management and ...
Fix an issue where a package from the wrong source was installed for a multiple-constraints dependency with different sources (#6747).
Read more >
Dependency Management With Python Poetry
With the install command, Poetry checks your pyproject.toml file for dependencies then resolves and installs them. The resolving part is especially important ...
Read more >
A Poetic Apology. Or Why Should You Use Poetry to Manage…
If you install these with your system's package manager (say for instance apt , yay or brew ) they will be installed at...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found