Skip to content

Commit faa516e

Browse files
committed
fix: Correct pypdf dependency specifier for remote PDF functions
1 parent 132e0ed commit faa516e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

bigframes/blob/_functions.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,9 @@ def pdf_extract_func(src_obj_ref_rt: str) -> str:
473473
return result_json
474474

475475

476-
pdf_extract_def = FunctionDef(pdf_extract_func, ["pypdf", "requests", "pypdf[crypto]"])
476+
pdf_extract_def = FunctionDef(
477+
pdf_extract_func, ["pypdf", "requests", "cryptography>=3.4.0"]
478+
)
477479

478480

479481
# Extracts text from a PDF url and chunks it simultaneously
@@ -527,4 +529,6 @@ def pdf_chunk_func(src_obj_ref_rt: str, chunk_size: int, overlap_size: int) -> s
527529
return result_json
528530

529531

530-
pdf_chunk_def = FunctionDef(pdf_chunk_func, ["pypdf", "requests", "pypdf[crypto]"])
532+
pdf_chunk_def = FunctionDef(
533+
pdf_chunk_func, ["pypdf", "requests", "cryptography>=3.4.0"]
534+
)

0 commit comments

Comments
 (0)