aquasync commented on issue #40073:
URL: https://github.com/apache/arrow/issues/40073#issuecomment-1942918452

   I've attempted to diagnose it by loading the library directly as follows:
   
   ```
   > library(arrow)
   ...
   > reticulate::repl_python()
   Python 3.12.2 (C:/Program Files/Python312/python.exe)
   Reticulate 1.35.0 REPL -- A Python interpreter in R.
   Enter 'exit' or 'quit' to exit the REPL and return to R.
   >>> import ctypes as c
   >>> dll = c.WinDLL(r'C:\Program 
Files\Python312\Lib\site-packages\pyarrow\lib.cp312-win_amd64.pyd')
   Traceback (most recent call last):
     File "<string>", line 1, in <module>
     File "C:\PROGRA~1\PYTHON~2\Lib\ctypes\__init__.py", line 379, in __init__
       self._handle = _dlopen(self._name, mode)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^
   OSError: [WinError 127] The specified procedure could not be found
   ```
   
   That produces a pop up with the mangled C++ symbol name that caused the 
issues, in this case eg: "The procedure entry point 
?type@StringBuilder@arrow@@UEBA?AV?$shared_ptr@VDataType@arrow@@@std@@XZ could 
not be located in the dynamic link library C:\Program 
Files\Python312\Lib\site-packages\pyarrow\lib.cp312-win_amd64.pyd".
   
   If I repeat the above without first loading the R arrow package, it will 
load the python libs just fine. Is this problem caused by both the R and python 
packages having different "arrow.dll" files that they're attempting to load 
into the same address space? 


-- 
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]

Reply via email to