-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: 'NoneType' object is not iterable
in _top_level_inferred
#344
Comments
I happened to fix this in #342 with: @property
- def files(self):
+ def files(self) -> List[PackagePath]:
…
- return file_lines and list(starmap(make_file, csv.reader(file_lines)))
+ return list(starmap(make_file, csv.reader(file_lines))) if file_lines else [] Although if the |
andersk
added a commit
to andersk/importlib_metadata
that referenced
this issue
Aug 26, 2021
Fixes python#344. Signed-off-by: Anders Kaseorg <[email protected]>
I've yanked the 4.7.0 release from PyPI while I address the issue. |
jaraco
added a commit
that referenced
this issue
Aug 26, 2021
halstead
pushed a commit
to openembedded/openembedded-core
that referenced
this issue
Oct 13, 2021
v4.8.1 #348: Restored support for EntryPoint access by item, deprecating support in the process. Users are advised to use direct member access instead of item-based access: - ep[0] -> ep.name - ep[1] -> ep.value - ep[2] -> ep.group - ep[:] -> ep.name, ep.value, ep.group v4.8.0 #337: Rewrote EntryPoint as a simple class, still immutable and still with the attributes, but without any expectation for namedtuple functionality such as _asdict. v4.7.1 #344: Fixed regression in packages_distributions when neither top-level.txt nor a files manifest is present. v4.7.0 #330: In packages_distributions, now infer top-level names from .files() when a top-level.txt (Setuptools-specific metadata) is not present. References: python/importlib_metadata#348 python/importlib_metadata#337 python/importlib_metadata#344 python/importlib_metadata#330 Signed-off-by: Tim Orling <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
splitice
pushed a commit
to HalleyAssist/poky
that referenced
this issue
Oct 13, 2021
v4.8.1 #348: Restored support for EntryPoint access by item, deprecating support in the process. Users are advised to use direct member access instead of item-based access: - ep[0] -> ep.name - ep[1] -> ep.value - ep[2] -> ep.group - ep[:] -> ep.name, ep.value, ep.group v4.8.0 #337: Rewrote EntryPoint as a simple class, still immutable and still with the attributes, but without any expectation for namedtuple functionality such as _asdict. v4.7.1 #344: Fixed regression in packages_distributions when neither top-level.txt nor a files manifest is present. v4.7.0 #330: In packages_distributions, now infer top-level names from .files() when a top-level.txt (Setuptools-specific metadata) is not present. References: python/importlib_metadata#348 python/importlib_metadata#337 python/importlib_metadata#344 python/importlib_metadata#330 (From OE-Core rev: 01eb9d4384ae78b02780cea3b8690d99484b2602) Signed-off-by: Tim Orling <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
splitice
pushed a commit
to HalleyAssist/poky
that referenced
this issue
Oct 13, 2021
v4.8.1 #348: Restored support for EntryPoint access by item, deprecating support in the process. Users are advised to use direct member access instead of item-based access: - ep[0] -> ep.name - ep[1] -> ep.value - ep[2] -> ep.group - ep[:] -> ep.name, ep.value, ep.group v4.8.0 #337: Rewrote EntryPoint as a simple class, still immutable and still with the attributes, but without any expectation for namedtuple functionality such as _asdict. v4.7.1 #344: Fixed regression in packages_distributions when neither top-level.txt nor a files manifest is present. v4.7.0 #330: In packages_distributions, now infer top-level names from .files() when a top-level.txt (Setuptools-specific metadata) is not present. References: python/importlib_metadata#348 python/importlib_metadata#337 python/importlib_metadata#344 python/importlib_metadata#330 (From OE-Core rev: 01eb9d4384ae78b02780cea3b8690d99484b2602) Signed-off-by: Tim Orling <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
kraj
pushed a commit
to YoeDistro/poky-old
that referenced
this issue
Oct 13, 2021
v4.8.1 #348: Restored support for EntryPoint access by item, deprecating support in the process. Users are advised to use direct member access instead of item-based access: - ep[0] -> ep.name - ep[1] -> ep.value - ep[2] -> ep.group - ep[:] -> ep.name, ep.value, ep.group v4.8.0 #337: Rewrote EntryPoint as a simple class, still immutable and still with the attributes, but without any expectation for namedtuple functionality such as _asdict. v4.7.1 #344: Fixed regression in packages_distributions when neither top-level.txt nor a files manifest is present. v4.7.0 #330: In packages_distributions, now infer top-level names from .files() when a top-level.txt (Setuptools-specific metadata) is not present. References: python/importlib_metadata#348 python/importlib_metadata#337 python/importlib_metadata#344 python/importlib_metadata#330 (From OE-Core rev: 01eb9d4384ae78b02780cea3b8690d99484b2602) Signed-off-by: Tim Orling <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
armcc
pushed a commit
to lgirdk/poky
that referenced
this issue
Oct 13, 2021
v4.8.1 #348: Restored support for EntryPoint access by item, deprecating support in the process. Users are advised to use direct member access instead of item-based access: - ep[0] -> ep.name - ep[1] -> ep.value - ep[2] -> ep.group - ep[:] -> ep.name, ep.value, ep.group v4.8.0 #337: Rewrote EntryPoint as a simple class, still immutable and still with the attributes, but without any expectation for namedtuple functionality such as _asdict. v4.7.1 #344: Fixed regression in packages_distributions when neither top-level.txt nor a files manifest is present. v4.7.0 #330: In packages_distributions, now infer top-level names from .files() when a top-level.txt (Setuptools-specific metadata) is not present. References: python/importlib_metadata#348 python/importlib_metadata#337 python/importlib_metadata#344 python/importlib_metadata#330 (From OE-Core rev: 01eb9d4384ae78b02780cea3b8690d99484b2602) Signed-off-by: Tim Orling <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
splitice
pushed a commit
to HalleyAssist/poky
that referenced
this issue
Oct 14, 2021
v4.8.1 #348: Restored support for EntryPoint access by item, deprecating support in the process. Users are advised to use direct member access instead of item-based access: - ep[0] -> ep.name - ep[1] -> ep.value - ep[2] -> ep.group - ep[:] -> ep.name, ep.value, ep.group v4.8.0 #337: Rewrote EntryPoint as a simple class, still immutable and still with the attributes, but without any expectation for namedtuple functionality such as _asdict. v4.7.1 #344: Fixed regression in packages_distributions when neither top-level.txt nor a files manifest is present. v4.7.0 #330: In packages_distributions, now infer top-level names from .files() when a top-level.txt (Setuptools-specific metadata) is not present. References: python/importlib_metadata#348 python/importlib_metadata#337 python/importlib_metadata#344 python/importlib_metadata#330 (From OE-Core rev: 01eb9d4384ae78b02780cea3b8690d99484b2602) Signed-off-by: Tim Orling <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
splitice
pushed a commit
to HalleyAssist/poky
that referenced
this issue
Oct 14, 2021
v4.8.1 #348: Restored support for EntryPoint access by item, deprecating support in the process. Users are advised to use direct member access instead of item-based access: - ep[0] -> ep.name - ep[1] -> ep.value - ep[2] -> ep.group - ep[:] -> ep.name, ep.value, ep.group v4.8.0 #337: Rewrote EntryPoint as a simple class, still immutable and still with the attributes, but without any expectation for namedtuple functionality such as _asdict. v4.7.1 #344: Fixed regression in packages_distributions when neither top-level.txt nor a files manifest is present. v4.7.0 #330: In packages_distributions, now infer top-level names from .files() when a top-level.txt (Setuptools-specific metadata) is not present. References: python/importlib_metadata#348 python/importlib_metadata#337 python/importlib_metadata#344 python/importlib_metadata#330 (From OE-Core rev: 01eb9d4384ae78b02780cea3b8690d99484b2602) Signed-off-by: Tim Orling <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
splitice
pushed a commit
to HalleyAssist/poky
that referenced
this issue
Oct 14, 2021
v4.8.1 #348: Restored support for EntryPoint access by item, deprecating support in the process. Users are advised to use direct member access instead of item-based access: - ep[0] -> ep.name - ep[1] -> ep.value - ep[2] -> ep.group - ep[:] -> ep.name, ep.value, ep.group v4.8.0 #337: Rewrote EntryPoint as a simple class, still immutable and still with the attributes, but without any expectation for namedtuple functionality such as _asdict. v4.7.1 #344: Fixed regression in packages_distributions when neither top-level.txt nor a files manifest is present. v4.7.0 #330: In packages_distributions, now infer top-level names from .files() when a top-level.txt (Setuptools-specific metadata) is not present. References: python/importlib_metadata#348 python/importlib_metadata#337 python/importlib_metadata#344 python/importlib_metadata#330 (From OE-Core rev: 4272ca45d137b91ec368c94b3e0dbd7d56c616dd) Signed-off-by: Tim Orling <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
halstead
pushed a commit
to openembedded/openembedded-core
that referenced
this issue
Oct 14, 2021
v4.8.1 #348: Restored support for EntryPoint access by item, deprecating support in the process. Users are advised to use direct member access instead of item-based access: - ep[0] -> ep.name - ep[1] -> ep.value - ep[2] -> ep.group - ep[:] -> ep.name, ep.value, ep.group v4.8.0 #337: Rewrote EntryPoint as a simple class, still immutable and still with the attributes, but without any expectation for namedtuple functionality such as _asdict. v4.7.1 #344: Fixed regression in packages_distributions when neither top-level.txt nor a files manifest is present. v4.7.0 #330: In packages_distributions, now infer top-level names from .files() when a top-level.txt (Setuptools-specific metadata) is not present. References: python/importlib_metadata#348 python/importlib_metadata#337 python/importlib_metadata#344 python/importlib_metadata#330 Signed-off-by: Tim Orling <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
halstead
pushed a commit
to openembedded/openembedded-core
that referenced
this issue
Oct 14, 2021
v4.8.1 #348: Restored support for EntryPoint access by item, deprecating support in the process. Users are advised to use direct member access instead of item-based access: - ep[0] -> ep.name - ep[1] -> ep.value - ep[2] -> ep.group - ep[:] -> ep.name, ep.value, ep.group v4.8.0 #337: Rewrote EntryPoint as a simple class, still immutable and still with the attributes, but without any expectation for namedtuple functionality such as _asdict. v4.7.1 #344: Fixed regression in packages_distributions when neither top-level.txt nor a files manifest is present. v4.7.0 #330: In packages_distributions, now infer top-level names from .files() when a top-level.txt (Setuptools-specific metadata) is not present. References: python/importlib_metadata#348 python/importlib_metadata#337 python/importlib_metadata#344 python/importlib_metadata#330 Signed-off-by: Tim Orling <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
seambot
pushed a commit
to seamapi/poky
that referenced
this issue
Oct 14, 2021
v4.8.1 #348: Restored support for EntryPoint access by item, deprecating support in the process. Users are advised to use direct member access instead of item-based access: - ep[0] -> ep.name - ep[1] -> ep.value - ep[2] -> ep.group - ep[:] -> ep.name, ep.value, ep.group v4.8.0 #337: Rewrote EntryPoint as a simple class, still immutable and still with the attributes, but without any expectation for namedtuple functionality such as _asdict. v4.7.1 #344: Fixed regression in packages_distributions when neither top-level.txt nor a files manifest is present. v4.7.0 #330: In packages_distributions, now infer top-level names from .files() when a top-level.txt (Setuptools-specific metadata) is not present. References: python/importlib_metadata#348 python/importlib_metadata#337 python/importlib_metadata#344 python/importlib_metadata#330 (From OE-Core rev: 21d72ace8f9486bd1b478e28d53da64087d790fa) Signed-off-by: Tim Orling <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
daregit
pushed a commit
to daregit/yocto-combined
that referenced
this issue
May 22, 2024
v4.8.1 #348: Restored support for EntryPoint access by item, deprecating support in the process. Users are advised to use direct member access instead of item-based access: - ep[0] -> ep.name - ep[1] -> ep.value - ep[2] -> ep.group - ep[:] -> ep.name, ep.value, ep.group v4.8.0 #337: Rewrote EntryPoint as a simple class, still immutable and still with the attributes, but without any expectation for namedtuple functionality such as _asdict. v4.7.1 #344: Fixed regression in packages_distributions when neither top-level.txt nor a files manifest is present. v4.7.0 #330: In packages_distributions, now infer top-level names from .files() when a top-level.txt (Setuptools-specific metadata) is not present. References: python/importlib_metadata#348 python/importlib_metadata#337 python/importlib_metadata#344 python/importlib_metadata#330 (From OE-Core rev: 21d72ace8f9486bd1b478e28d53da64087d790fa) Signed-off-by: Tim Orling <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
daregit
pushed a commit
to daregit/yocto-combined
that referenced
this issue
May 22, 2024
v4.8.1 #348: Restored support for EntryPoint access by item, deprecating support in the process. Users are advised to use direct member access instead of item-based access: - ep[0] -> ep.name - ep[1] -> ep.value - ep[2] -> ep.group - ep[:] -> ep.name, ep.value, ep.group v4.8.0 #337: Rewrote EntryPoint as a simple class, still immutable and still with the attributes, but without any expectation for namedtuple functionality such as _asdict. v4.7.1 #344: Fixed regression in packages_distributions when neither top-level.txt nor a files manifest is present. v4.7.0 #330: In packages_distributions, now infer top-level names from .files() when a top-level.txt (Setuptools-specific metadata) is not present. References: python/importlib_metadata#348 python/importlib_metadata#337 python/importlib_metadata#344 python/importlib_metadata#330 (From OE-Core rev: 21d72ace8f9486bd1b478e28d53da64087d790fa) Signed-off-by: Tim Orling <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reposting #340 (comment) as an issue.
I'm observing
importlib_metadata.packages_distributions()
throw the following error:https://github.com/mlflow/mlflow/runs/3428616955#step:5:7078
It looks like the line 1028 in
_top_level_inferred
tries to iterate ondist.files
that can be None and then throws the error above:importlib_metadata/importlib_metadata/__init__.py
Lines 1025 to 1030 in 15df009
https://docs.python.org/3/library/importlib.metadata.html#distribution-files says:
The text was updated successfully, but these errors were encountered: