close
Skip to content

Fatal bug under Pythonista because dist-info is not installed #124

Description

@jaraco

In GitLab by @jmmelko on Jun 13, 2020, 18:53

importlib_metadata has a fatal error under distributions that do not install the dist-info folder, in __init__.py, at line:

__version__ = ....

This happens with Pythonista (iOS Python IDE), when import_metadata is installed by stash-pip. The guys at Stash said that it would be very difficult for them to install the dist-info folder (ywangd/stash#411).
As a consequence importlib_resources cannot run.
I am not an expert, but I find it odd that a package should rely on a companion folder to run. I don’t find it very safe, even more if it’s only to get the version number...
In any case it would be cool if you could add an error message such as “no dist-info or .egg file found. Please check your installation”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions