Skip to content

unzipping pymupdf on snowflake  #3119

@ksahoocbre

Description

@ksahoocbre

Description of the bug

I am trying to use pymupdf on snowflake using the zipped file from the main branch since pymupdf is not natively supported on Snowflake.
The issue is I am getting a relative import error when importing the fitz module. The from . import * from src/fitz.py is causing the error. I've already raised an issue on the snowflake forum (please see below link) with the code snippet
issue

As you may see, the solution provided by the snowflake representative is to fix this import.
I looked into it and seems I may need to edit the src/fitz.py file.
Any help in this regard is highly appreciated

Best
Kamlesh

How to reproduce the bug

Please see the posted code snippet here

PyMuPDF version

1.23.19

Operating system

Other

Python version

3.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions