jorisvandenbossche commented on PR #34616:
URL: https://github.com/apache/arrow/pull/34616#issuecomment-1753494646
OK, the missing C++ compilation flag was because we enable this flag
explicitly in cmake with `set_source_files_properties(${module_SRC} PROPERTIES
CYTHON_IS_CXX TRUE)`, and I forgot to do this for the renamed src file.
After fixing that, the compilation works fine now, but at runtime I get the
following error:
```
ImportError: dynamic module does not define module export function
(PyInit__dataset_parquet_encryption)
```
So the extension module doesn't load. Checking the generated c++ code, it
actually defined a `PyInit__dataset_parquet_no_encryption` (so using the
original file name, not the module target name), and so it is not finding
`PyInit__dataset_parquet_encryption`.
@scoder Is that a limitation of cython when your pyx file has a different
name than the module target name? Or is there some extra flag I need to pass to
the cythonization step?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]