aquasync commented on issue #40073:
URL: https://github.com/apache/arrow/issues/40073#issuecomment-1942961404
After some more digging, I think that the cause is indeed the two
"arrow.dll" files. Loading the python package first works because the R
"arrow.dll" is loaded directly, whereas the pyarrow version is loaded
indirectly by being dependencies of the .pyd files.
I tried a hacky solution of renaming the python one to "xrrow.dll", and
running `sed -i.bak 's/arrow.dll/xrrow.dll/g'` on the .pyd files in the
directory, and it now "works" when loading the R package first:
```
> library(arrow)
> library(reticulate)
...
> pa = import('pyarrow')
> pa
Module(pyarrow)
```
Perhaps the easiest solution then is for the R library to use a different
name for its dll, though I'm not sure if it has to match the package name or if
that is just a convention? Alternatively perhaps dll manifests can be used on
the python side.
--
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]