raulcd commented on PR #47525:
URL: https://github.com/apache/arrow/pull/47525#issuecomment-3267009707

   This is a draft PR, ignore the removal of a bunch of GitHub actions I am 
just testing (will have to revert a commit) to re-add them.
   
   I have been able to build Arrow C++ and PyArrow on GH actions but seem 
unable to import the built PyArrow on CI, I've tried a lot of different 
approaches to understand what is the DLL that fails loading, the error doesn't 
give much detail:
   ```
    Traceback (most recent call last):
     File "<string>", line 2, in <module>
     File "D:\a\arrow\arrow\build\python\pyarrow\__init__.py", line 61, in 
<module>
       import pyarrow.lib as _lib
   ImportError: DLL load failed while importing lib: The specified module could 
not be found.
   ```
   I've added to the `PYTHONPATH` the path to Arrow C++ DLLs, PyArrow's path, 
along with a bunch of debugging but can't seem to find what is failing, I've 
been doing some dumpbin to find out what are the possible DLLs missing:
   ```
   Dump of file D:\a\arrow\arrow\build\python\pyarrow\lib.cp312-win_amd64.pyd
   
   File Type: DLL
   
     Image has the following dependencies:
   
       arrow_python.dll
       arrow.dll
       python312.dll
       MSVCP140.dll
       VCRUNTIME140.dll
       VCRUNTIME140_1.dll
       api-ms-win-crt-runtime-l1-1-0.dll
       api-ms-win-crt-heap-l1-1-0.dll
       api-ms-win-crt-string-l1-1-0.dll
       KERNEL32.dll
   ```
   I tried calling `vcvarsall.bat`, pip installing `msvc-runtime` but can't 
seem to load the correct DLLs.
   See the failing CI for more details: 
https://github.com/raulcd/arrow/actions/runs/17555300447/job/49857798682
   
   @pitrou any idea of what might be the problem? or something to debug what is 
the missing DLL?
   
   Otherwise I might try other approaches like building a wheel and using 
delvewheel to fix it, or use conda instead.


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