kou opened a new issue, #45651:
URL: https://github.com/apache/arrow/issues/45651

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   
https://github.com/ursacomputing/crossbow/actions/runs/13613708451/job/38054048270#step:9:1110
   
   ```text
   _______________________________ test_cython_api 
_______________________________
   
   tmpdir = 
local('C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\pytest-of-ContainerAdministrator\\pytest-0\\test_cython_api0')
   
       @pytest.mark.numpy
       @pytest.mark.cython
       def test_cython_api(tmpdir):
           """
           Basic test for the Cython API.
           """
           # Fail early if cython is not found
           import cython  # noqa
       
           with tmpdir.as_cwd():
               # Set up temporary workspace
               pyx_file = 'pyarrow_cython_example.pyx'
               shutil.copyfile(os.path.join(here, pyx_file),
                               os.path.join(str(tmpdir), pyx_file))
               # Create setup.py file
               setup_code = setup_template.format(pyx_file=pyx_file,
                                                  compiler_opts=compiler_opts,
                                                  test_ld_path=test_ld_path)
               with open('setup.py', 'w') as f:
                   f.write(setup_code)
       
               # ARROW-2263: Make environment with this pyarrow/ package first 
on the
               # PYTHONPATH, for local dev environments
               subprocess_env = test_util.get_modified_env_with_pythonpath()
       
               # Compile extension module
               subprocess.check_call([sys.executable, 'setup.py',
                                      'build_ext', '--inplace'],
                                     env=subprocess_env)
       
               # Check basic functionality
               orig_path = sys.path[:]
               sys.path.insert(0, str(tmpdir))
               try:
                   mod = __import__('pyarrow_cython_example')
                   check_cython_example_module(mod)
               finally:
   retcode = 1
   cmd = ['C:\\Python310\\python.exe', '-c', 'if 1:\n            import sys\n   
         import os\n\n            try:\n       ...ke_null_array(5)\n            
assert mod.get_array_length(arr) == 5\n            assert arr.null_count == 5\n 
       ']
   
       def check_call(*popenargs, **kwargs):
           """Run command with arguments.  Wait for command to complete.  If
           the exit code was zero then return, otherwise raise
           CalledProcessError.  The CalledProcessError object will have the
           return code in the returncode attribute.
       
           The arguments are the same as for the call function.  Example:
       
           check_call(["ls", "-l"])
           """
           retcode = call(*popenargs, **kwargs)
           if retcode:
               cmd = kwargs.get("args")
               if cmd is None:
                   cmd = popenargs[0]
   >           raise CalledProcessError(retcode, cmd)
   E           subprocess.CalledProcessError: Command 
'['C:\\Python310\\python.exe', '-c', "if 1:\n            import sys\n           
 import os\n\n            try:\n                # Add dll directory was added 
on python 3.8\n                # and is required in order to find extra DLLs\n  
              # only for win32\n                for dir in 
['C:\\\\Python310\\\\lib\\\\site-packages\\\\pyarrow']:\n                    
os.add_dll_directory(dir)\n            except AttributeError:\n                
pass\n\n            mod = __import__('pyarrow_cython_example')\n            arr 
= mod.make_null_array(5)\n            assert mod.get_array_length(arr) == 5\n   
         assert arr.null_count == 5\n        "]' returned non-zero exit status 
1.
   
   Python310\lib\subprocess.py:369: CalledProcessError
   ---------------------------- Captured stdout call 
-----------------------------
   Compiling pyarrow_cython_example.pyx because it changed.
   
   [1/1] Cythonizing pyarrow_cython_example.pyx
   
   Extension module: <setuptools.extension.Extension('pyarrow_cython_example') 
at 0x12498f63c40> ['C:\\Python310\\lib\\site-packages\\numpy\\core\\include', 
'C:\\Python310\\lib\\site-packages\\pyarrow\\include'] ['arrow_python', 
'arrow'] ['C:\\Python310\\lib\\site-packages\\pyarrow']
   
   running build_ext
   
   building 'pyarrow_cython_example' extension
   
   creating build\temp.win-amd64-cpython-310\Release
   
   "C:\Program Files (x86)\Microsoft Visual 
Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\cl.exe" /c 
/nologo /O2 /W3 /GL /DNDEBUG /MD 
-IC:\Python310\lib\site-packages\numpy\core\include 
-IC:\Python310\lib\site-packages\pyarrow\include -IC:\Python310\include 
-IC:\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual 
Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\include" "-IC:\Program Files 
(x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" 
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\ucrt" 
"-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.20348.0\\um" 
"-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.20348.0\\shared" 
"-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.20348.0\\winrt" 
"-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.20348.0\\cppwinrt" 
/EHsc /Tppyarrow_cython_example.cpp 
/Fobuild\temp.win-amd64-cpython-310\Release\pyarrow_cython_example.obj 
-D_ENABLE_EXTENDED_ALIGNED_STORAGE /std:c
 ++17
   
   pyarrow_cython_example.cpp
   
   creating 
C:\Users\ContainerAdministrator\AppData\Local\Temp\pytest-of-ContainerAdministrator\pytest-0\test_cython_api0\build\lib.win-amd64-cpython-310
   
   "C:\Program Files (x86)\Microsoft Visual 
Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\link.exe" 
/nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO 
/LIBPATH:C:\Python310\lib\site-packages\pyarrow /LIBPATH:C:\Python310\libs 
/LIBPATH:C:\Python310 /LIBPATH:C:\Python310\PCbuild\amd64 "/LIBPATH:C:\Program 
Files (x86)\Microsoft Visual 
Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\lib\x64" "/LIBPATH:C:\Program 
Files (x86)\Windows Kits\10\lib\10.0.20348.0\ucrt\x64" "/LIBPATH:C:\Program 
Files (x86)\Windows Kits\10\\lib\10.0.20348.0\\um\x64" arrow_python.lib 
arrow.lib /EXPORT:PyInit_pyarrow_cython_example 
build\temp.win-amd64-cpython-310\Release\pyarrow_cython_example.obj 
/OUT:build\lib.win-amd64-cpython-310\pyarrow_cython_example.cp310-win_amd64.pyd 
/IMPLIB:build\temp.win-amd64-cpython-310\Release\pyarrow_cython_example.cp310-win_amd64.lib
   
      Creating library 
build\temp.win-amd64-cpython-310\Release\pyarrow_cython_example.cp310-win_amd64.lib
 and object 
build\temp.win-amd64-cpython-310\Release\pyarrow_cython_example.cp310-win_amd64.exp
   
   Generating code
   
   Finished generating code
   
   copying 
build\lib.win-amd64-cpython-310\pyarrow_cython_example.cp310-win_amd64.pyd -> 
   
   ---------------------------- Captured stderr call 
-----------------------------
   Traceback (most recent call last):
   
     File "<string>", line 14, in <module>
   
   ImportError: DLL load failed while importing pyarrow_cython_example: The 
specified module could not be found.
   ```
   
   GH-45550 may be related.
   
   ### Component(s)
   
   Continuous Integration, Python


-- 
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: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to