Skip to content

KeyError: Package('pycurl', '7.44.1', source_type='legacy' ...) on celery update #5019

@HoneyryderChuck

Description

@HoneyryderChuck
  • I am on the latest Poetry version.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

  • OS version and name: docker image (python:3.9-buster)

  • Poetry version: 1.1.12

# relevant contents of the toml
boto3 = "*"
celery = {extras = ["sqs"], version = "*"}
# this is what I have to have in order for things to work
# pycurl = "*"

Issue

I want to update celery to the latest version (5.2.3). Nothing in the pyproject.toml stops me, i.e. no transitive dependency mismatches. However, when I poetry update, it's unable to upgrade pycurl to latest deployed version. So then I add pycurl to the toml, although I don't use it directly. update works. Now, I have to keep pycurl around in the toml for everything to work. If I remove it, I get the following error on poetry install:

KeyError

  Package('pycurl', '7.44.1', source_type='legacy', source_url='https://our-pypi-proxy', source_reference='company')

  at ~/.local/lib/python3.9/site-packages/poetry/puzzle/solver.py:270 in _solve
      266│
      267│                 continue
      268│
      269│             final_packages.append(package)
    → 270│             depths.append(results[package])
      271│
      272│         # Return the packages in their original order with associated depths
      273│         return final_packages, depths
      274│

I think I should have to carry a transitive dependency in the toml. Can someone see what's wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/solverRelated to the dependency resolverkind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions