Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The command ""py" -m pip install -U blurb" exited with code 101 when building on windows. #100116

Open
liudonghua123 opened this issue Dec 8, 2022 · 2 comments
Labels
OS-windows type-bug An unexpected behavior, bug, or error

Comments

@liudonghua123
Copy link

liudonghua123 commented Dec 8, 2022

Bug report

I have a github action which try to build for windows installer (add some customizations of mine), it works for python 3.10.0-3.10.8, and I updated the code of cpython 3.10.9 recently, then the github action failed with The command ""py" -m pip install -U blurb" exited with code 101.

The detailed logs are on here.

And I found this error was from this line.

<Exec Command="&quot;$(HostPython)&quot; -m pip install -U blurb" WorkingDirectory="$(PCbuild)" />

Is there any options for wix to see the detailed error info?

And I also find the error code 101 is defined on this line.

#define RC_CREATE_PROCESS 101

Your environment

  • CPython versions tested on: v3.10.9
  • Operating system and architecture: windows 2022, github action runner

And I have also checked the required environments like python, py and so on are correct. I have spend a few hours to find the cause, but failed.

Any help would be appreciated.

I also checked the diffs v3.10.8...v3.10.9, but find nothing help info about this error.

Maybe it's a github action runner problems?

@liudonghua123 liudonghua123 added the type-bug An unexpected behavior, bug, or error label Dec 8, 2022
@liudonghua123
Copy link
Author

liudonghua123 commented Dec 8, 2022

I find even the official github action will failed with the same errors like mine.

build:
name: Windows Installer
runs-on: windows-latest
strategy:
matrix:
type: [x86, x64, arm64]
steps:
- uses: actions/checkout@v3
- name: Build CPython installer
run: .\Tools\msi\build.bat -${{ matrix.type }}

https://github.com/liudonghua123/windows-python-installer/actions/runs/3650363507/jobs/6166252162#step:3:1771

@liudonghua123
Copy link
Author

liudonghua123 commented Dec 9, 2022

I still could not find the error source, but I tried to back port some changes from the main branch currently made in exe.wixproj, find_python.bat and pyproject.props, and it seems work now.

See more details on liudonghua123/windows-python-installer@5c89b25#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants