diff --git a/apis/python/src/tiledbvcf/binding/pyarrow_helpers.h b/apis/python/src/tiledbvcf/binding/pyarrow_helpers.h index 51110eb5e..b09a95138 100644 --- a/apis/python/src/tiledbvcf/binding/pyarrow_helpers.h +++ b/apis/python/src/tiledbvcf/binding/pyarrow_helpers.h @@ -44,7 +44,7 @@ using namespace tiledb::vcf; * @return py::object Arrow table */ py::object _buffer_to_table(std::shared_ptr buffers) { - auto pa = py::module::import("pyarrow"); + auto pa = py::module_::import("pyarrow"); auto pa_table_from_arrays = pa.attr("Table").attr("from_arrays"); auto pa_array_import = pa.attr("Array").attr("_import_from_c"); auto pa_schema_import = pa.attr("Schema").attr("_import_from_c"); diff --git a/apis/python/src/tiledbvcf/binding/sample_stats.h b/apis/python/src/tiledbvcf/binding/sample_stats.h index 3028084aa..b5495fbd2 100644 --- a/apis/python/src/tiledbvcf/binding/sample_stats.h +++ b/apis/python/src/tiledbvcf/binding/sample_stats.h @@ -35,7 +35,7 @@ namespace py = pybind11; using namespace py::literals; using namespace tiledb::vcf; -void load_sample_stats(py::module& m) { +void load_sample_stats(py::module_& m) { m.def( "sample_qc", [](const std::string& dataset_uri, diff --git a/apis/python/src/tiledbvcf/binding/vcf_arrow.cc b/apis/python/src/tiledbvcf/binding/vcf_arrow.cc index 0f7eaf55f..1fc40d767 100644 --- a/apis/python/src/tiledbvcf/binding/vcf_arrow.cc +++ b/apis/python/src/tiledbvcf/binding/vcf_arrow.cc @@ -316,7 +316,7 @@ void build_arrow_array_from_buffer( } py::object buffers_to_table(std::vector>& buffers) { - auto pa = py::module::import("pyarrow"); + auto pa = py::module_::import("pyarrow"); auto pa_table_from_arrays = pa.attr("Table").attr("from_arrays"); auto pa_array_import = pa.attr("Array").attr("_import_from_c"); auto pa_schema_import = pa.attr("Schema").attr("_import_from_c");