You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think name_of_my_package.whl is well installed I see it in the pip install output, but it seems like the importlib does not find it when executed in the pyz generated by zipapps. It works with shiv.
The text was updated successfully, but these errors were encountered:
This is because zipapps does not include package metadata.
For example, let's run python -m zipapps -o psutil.pyz -u AUTO psutil and take a look inside generated psutil.pyz.
You'll find that only module directory psutil is present, but metadata directory (in my case psutil-5.9.2.dist-info) is missing. That's why importlib.metadata complains.
To fix that, you can use lazy install, which installs required packages at runtime.
Alternatively, you can tell zipapps to use a specific cache directory and copy package metadata to there ahead of time.
Hi
When using
I get a crash
importlib.metadata.PackageNotFoundError: No package metadata was found for name_of_my_package
I first create the wheel of my package and then create the
I think name_of_my_package.whl is well installed I see it in the pip install output, but it seems like the importlib does not find it when executed in the pyz generated by zipapps. It works with shiv.
The text was updated successfully, but these errors were encountered: