Skip to content

Commit

Permalink
Add info about why >=17.0 required.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgautier committed Nov 30, 2024
1 parent 6fa5917 commit b793fb7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rpy2_arrow/arrow.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import pyarrow # type: ignore
from pyarrow.cffi import ffi
import rpy2.rinterface as rinterface
Expand Down Expand Up @@ -25,7 +26,12 @@
)[0]

if not _rarrow_has_c_api:
raise ValueError("rpy2_arrow requires R 'arrow' package version >= 17.0.0")
raise ValueError(
os.linesep.join(
("rpy2_arrow requires R 'arrow' package version >= 17.0.0.",
"(see https://www.cve.org/CVERecord?id=CVE-2024-52338).")
)
)

# TODO: remove since we require 'arrow' >= 17.0
# In arrow >= 7.0.0, pointers can be passed as externalptr,
Expand Down

0 comments on commit b793fb7

Please sign in to comment.