Skip to content

Build failures on Windows #46

@choldgraf

Description

@choldgraf

Link to source code that is involved in this issue

executablebooks/sphinx-book-theme#775

Reproducer

This is failing at a basic "install from pip" level on windows builds in GitHub for the Sphinx Book Theme. I've linked to a PR where the errors are seen and pasted logs from the failing build below.

Output containing crash traceback

return hook(wheel_directory, config_settings, metadata_directory)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-qx1ru23b\overlay\Lib\site-packages\sphinx_theme_builder\__init__.py", line 121, in build_editable
      return _generate_wheel(
             ^^^^^^^^^^^^^^^^
    File "C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-qx1ru23b\overlay\Lib\site-packages\sphinx_theme_builder\_internal\distributions.py", line 157, in generate_wheel_distribution
      generate_assets(project, production=not editable)
    File "C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-qx1ru23b\overlay\Lib\site-packages\sphinx_theme_builder\_internal\nodejs.py", line 322, in generate_assets
      populate_npm_packages(nodeenv, node_modules)
    File "C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-qx1ru23b\overlay\Lib\site-packages\sphinx_theme_builder\_internal\nodejs.py", line 232, in populate_npm_packages
      run_in(nodeenv, ["npm", "install", "--include=dev"])
    File "C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-qx1ru23b\overlay\Lib\site-packages\sphinx_theme_builder\_internal\nodejs.py", line 67, in run_in
      returncode = passthrough_run(args)
                   ^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-qx1ru23b\overlay\Lib\site-packages\sphinx_theme_builder\_internal\passthrough.py", line 97, in passthrough_run
      p = subprocess.run(args)
          ^^^^^^^^^^^^^^^^^^^^
    File "C:\hostedtoolcache\windows\Python\3.12.0\x64\Lib\subprocess.py", line 548, in run
      with Popen(*popenargs, **kwargs) as process:
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\hostedtoolcache\windows\Python\3.12.0\x64\Lib\subprocess.py", line 1026, in __init__
      self._execute_child(args, executable, preexec_fn, close_fds,
    File "C:\hostedtoolcache\windows\Python\3.12.0\x64\Lib\subprocess.py", line 1538, in _execute_child
      hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  OSError: [WinError 193] %1 is not a valid Win32 application
  [end of output]

Code of Conduct

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