Skip to content

Transient failures for Windows AMD64 builds when searching for pyproject.toml #1744

@alexlancaster

Description

@alexlancaster

Description

I am getting transient failures on Windows AMD64 builds. It only seems to affect Windows builds, but the exact version of Python seems to change, the error is related to not finding the pyproject.toml file:

ipx run --python "C:\hostedtoolcache\windows\Python\3.12.1\x64\python.exe" --spec "D:\a\_actions\pypa\cibuildwheel\v2.16.4" cibuildwheel "." --output-dir '"wheelhouse"' --config-file '"{package}/pyproject.toml"' --only '"cp310-win_amd64"'
  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
  env:
    CIBW_TEST_COMMAND: pytest -v {package}/tests 
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Program Files (x86)\pipx\.cache\f7cd3d446587c0e\Scripts\cibuildwheel.exe\__main__.py", line 7, in <module>
  File "C:\Program Files (x86)\pipx\.cache\f7cd3d446587c0e\Lib\site-packages\cibuildwheel\__main__.py", line 144, in main
    build_in_directory(args)
  File "C:\Program Files (x86)\pipx\.cache\f7cd3d446587c0e\Lib\site-packages\cibuildwheel\__main__.py", line 269, in build_in_directory
    options = compute_options(platform=platform, command_line_arguments=args, env=os.environ)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files (x86)\pipx\.cache\f7cd3d446587c0e\Lib\site-packages\cibuildwheel\options.py", line 749, in compute_options
    options = Options(platform=platform, command_line_arguments=command_line_arguments, env=env)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files (x86)\pipx\.cache\f7cd3d446587c0e\Lib\site-packages\cibuildwheel\options.py", line 401, in __init__
    self.reader = OptionsReader(
                  ^^^^^^^^^^^^^^
  File "C:\Program Files (x86)\pipx\.cache\f7cd3d446587c0e\Lib\site-packages\cibuildwheel\options.py", line 215, in __init__
    config_options, config_platform_options = self._load_file(config_file_path)
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files (x86)\pipx\.cache\f7cd3d446587c0e\Lib\site-packages\cibuildwheel\options.py", line 286, in _load_file
    with filename.open("rb") as f:
         ^^^^^^^^^^^^^^^^^^^
  File "C:\hostedtoolcache\windows\Python\3.12.1\x64\Lib\pathlib.py", line 1013, in open
    return io.open(self, mode, buffering, encoding, errors, newline)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 22] Invalid argument: '"D:\\a\\pypop\\pypop\\pyproject.toml"'
creating virtual environment...
creating virtual environment...
determining package name from 'D:\\a\\_actions\\pypa\\cibuildwheel\\v2.16.4'...
installing cibuildwheel from spec 'D:\\a\\_actions\\pypa\\cibuildwheel\\v2.16.4'...

Once the first set of wheels fails, i can normally get them to regenerate on a second attempt. The exact versions of Python change from time to time, but it's always on Windows.

Build log

https://github.com/alexlancaster/pypop/actions/runs/7717817812/job/21037765716#step:4:23

CI config

https://github.com/alexlancaster/pypop/blob/last_zenodo_check/.github/workflows/build_wheels.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions