Skip to content

zipapp standard library compressed project code #131449

@confucuis

Description

@confucuis

Bug report

Bug description:

One of my projects depends on fastapi framework, when I use the standard library zipapp to compress the project and run it independently it will report an error: ModuleNotFoundError: No module named 'pydantic_core._pydantic_core', it seems that the fastapi framework in the pydanctic_core will depend on the c extension, but after zipping and packaging it will have ModuleNotFoundError, can the official solve this problem with the standard library zipapp. There are many scenarios where being able to call a pyz file using python still smells good.

CPython versions tested on:

3.11

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions