Fatal bug under Pythonista because dist-info is not installed
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 (https://github.com/ywangd/stash/issues/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”.
Edited by Jason R. Coombs