MCPcopy Index your code
hub / github.com/python/cpython / PackageNotFoundError

Class PackageNotFoundError

Lib/importlib/metadata/__init__.py:59–68  ·  view source on GitHub ↗

The package was not found.

Source from the content-addressed store, hash-verified

57
58
59class PackageNotFoundError(ModuleNotFoundError):
60 """The package was not found."""
61
62 def __str__(self) -> str:
63 return f"No package metadata was found for {self.name}"
64
65 @property
66 def name(self) -> str: # type: ignore[override] # make readonly
67 (name,) = self.args
68 return name
69
70
71class MetadataNotFound(FileNotFoundError):

Callers 1

from_nameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…