unzipping pymupdf on snowflake #3120
Replies: 2 comments
-
This post seems best for the Discussions tab for further communication. |
Beta Was this translation helpful? Give feedback.
-
It looks like you're trying to use PyMuPDF directly from the unzipped source without building and installing it. This will not work, and the error message you're seeing is expected. PyMuPDF has a lot of C and C++ code that needs to be compiled and linked and then everything needs to be installed properly; you cannot just use it directly. I don't know how one builds and installs packages in Snowflake, so cannot advise you what to do - you'll need to ask the Snowflake people i think. On a plain Python system, one would do |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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. Thefrom . 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 snippetissue
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
Beta Was this translation helpful? Give feedback.
All reactions