python-poetry / python-poetry/poetry-plugin-export

Bug: `numpy` package has compatible issues

Open
#320 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
335
Forks
57
Avg merge
1h 23m
Merged PRs (30d)
3

Description

Descripion:

I get the following error when i run poetry install --no-root and it suggests "Contribute to poetry-plugin-export to solve this problem."

Error:

The numpy package has the following compatible candidates [Package('numpy', '1.26.4')]; but, the exporter dependency walker previously elected numpy (2.2.2) which is not compatible with the dependency numpy (>=1.22.4,<2). Please contribute to poetry-plugin-export to solve this problem.

pyproject.yaml:

[tool.poetry]
name = "chat-with-your-data-solution-accelerator"
version = "1.1.0"
description = "Chat with your data solution accelerator"
authors = []
readme = "README.md"
packages = [
    { include = "code" }
]

[tool.poetry.dependencies]
python = "^3.11"
azure-functions = "1.21.0"
streamlit = "1.39.0"
python-dotenv = "1.0.1"
azure-ai-formrecognizer = "3.3.3"
azure-storage-blob = "12.20.0"
azure-identity = "1.19.0"
flask = {extras = ["async"], version = "^3.0.3"}
openai = "1.59.8"
langchain = "0.3.14"
langchain-community = "0.3.14"
langchain-openai = "0.3.0"
requests = "2.32.3"
tiktoken = "0.8.0"
azure-storage-queue = "12.12.0"
beautifulsoup4 = "4.12.3"
fake-useragent = "1.5.1"
chardet = "5.2.0"
azure-search-documents = "11.6.0b1"
azure-ai-contentsafety = "1.0.0"
python-docx = "1.1.2"
azure-keyvault-secrets = "4.9.0"
pandas = "2.2.3"
azure-monitor-opentelemetry = "^1.6.2"
opentelemetry-instrumentation-httpx = "^0.48b0"
pillow = "10.4.0"
azure-mgmt-cognitiveservices = "^13.5.0"
jsonschema = "^4.23.0"
semantic-kernel = {version = "1.18.2", python = "<3.13"}
azure-ai-ml = "^1.21.1"
azure-cosmos = "^4.7.0"
asyncpg = "^0.30.0"
psycopg2-binary = "^2.9.10"
pgvector = "^0.3.6"
bs4 = "^0.0.2"
pydevd-pycharm = "^242.21829.44"
pydantic = "^2.10.5"

[tool.poetry.group.dev.dependencies]
pytest = "^8.3.3"
pytest-cov = "6.0.0"
flake8 = "7.1.1"
black = "24.10.0"
pre-commit = "4.0.1"
pytest_httpserver = "1.1.0"
trustme = "1.2.0"
jupyter = "1.1.1"
pytest-asyncio = "^0.24.0"

[tool.poetry.group.prompt-flow]
optional = true

[tool.poetry.group.prompt-flow.dependencies]
promptflow = {extras = ["azure"], version = "^1.15.0"}

[tool.coverage.run]
omit = [
    "**/tests/*",
    "**/dist/*",
    "**/infra/*",
]

[tool.coverage.report]
skip_empty = true
include_namespace_packages = true

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file or test is named. Start by reproducing the failure with the reported pyproject.yaml constraints and poetry install --no-root, then trace the exporter dependency walker mentioned in the error; done means the reported NumPy compatibility error is resolved for this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.