Skip to content

[CI][Python][Packaging] Windows wheels fail on the updating docstrings step #49531

Description

@raulcd

Describe the bug, including details regarding any error messages, version, and platform.

The following error is appearing on the Windows wheel builds:

 -- Installing: C:\Users\ContainerAdministrator\AppData\Local\Temp\tmpo180f8qv\wheel\platlib\pyarrow/./__init__.pyi
Updating stub docstrings in: C:\Users\ContainerAdministrator\AppData\Local\Temp\tmpo180f8qv\wheel\platlib\pyarrow
  __init__.pyi -> (root)
__getattr__ not found in pyarrow
Traceback (most recent call last):
  File "C:\Users\ContainerAdministrator\AppData\Local\Python\pythoncore-3.14-64\Lib\shutil.py", line 701, in _rmtree_unsafe
    os.unlink(fullname)
    ~~~~~~~~~^^^^^^^^^^
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\tmp4z2yojzc\\pyarrow\\arrow.dll'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\arrow\python\scripts\update_stub_docstrings.py", line 267, in <module>
    with tempfile.TemporaryDirectory() as tmpdir:
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\ContainerAdministrator\AppData\Local\Python\pythoncore-3.14-64\Lib\tempfile.py", line 971, in __exit__
    self.cleanup()
    ~~~~~~~~~~~~^^
  File "C:\Users\ContainerAdministrator\AppData\Local\Python\pythoncore-3.14-64\Lib\tempfile.py", line 975, in cleanup
    self._rmtree(self.name, ignore_errors=self._ignore_cleanup_errors)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ContainerAdministrator\AppData\Local\Python\pythoncore-3.14-64\Lib\tempfile.py", line 955, in _rmtree
    _shutil.rmtree(name, onexc=onexc)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ContainerAdministrator\AppData\Local\Python\pythoncore-3.14-64\Lib\shutil.py", line 852, in rmtree
    _rmtree_impl(path, dir_fd, onexc)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ContainerAdministrator\AppData\Local\Python\pythoncore-3.14-64\Lib\shutil.py", line 705, in _rmtree_unsafe
    onexc(os.unlink, fullname, err)
    ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ContainerAdministrator\AppData\Local\Python\pythoncore-3.14-64\Lib\tempfile.py", line 930, in onexc
    _os.unlink(path)
    ~~~~~~~~~~^^^^^^
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\tmp4z2yojzc\\pyarrow\\arrow.dll'
CMake Error at C:/Users/ContainerAdministrator/AppData/Local/Temp/tmpo180f8qv/build/cmake_install.cmake:456 (message):
  Stub docstring injection failed (exit code: 1)



*** CMake install failed

ERROR Backend subprocess exited when trying to invoke build_wheel

Some of the builds:

Component(s)

Continuous Integration, Python, Packaging

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions