Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

missing Python distribution metadata #944

Open
Assignees
asmorkalov
Labels
@Apteryks

Description

@Apteryks

System Information

version: 4.8.0
Operating System: Guix System
Compiler: GCC 10.3.0

Detailed description

Python libraries/packages must come with a name-version.dist-info directory containing files such as METADATA [0], but this packages doesn't install any.

[0]https://packaging.python.org/en/latest/specifications/recording-installed-packages

Because of this, libraries such aspkg_resources.find_distributions (or the modern equivalent, I suppose:pypa/packaging-problems#664) fail to notice its existence.

Steps to reproduce

  1. install opencv
  2. Run this at the interpreter:
import pkg_resourcesws = list(pkg_resources.find_distributions('/path/to/your//lib/python3.10/site-packages/'))pkg_resources.require('opencv-python')
  1. Observe it fails with:
DistributionNotFound: The 'opencv-python' distribution was not found and is required by the application

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp