Skip to content

Packaging fails because of missing bdist_wheel #4814

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

Closed
1 task
bedaka opened this issue Apr 9, 2025 · 2 comments
Closed
1 task

Packaging fails because of missing bdist_wheel #4814

bedaka opened this issue Apr 9, 2025 · 2 comments
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@bedaka
Copy link

bedaka commented Apr 9, 2025

Describe the bug

Hello.

since this morning the package job (executing jsii-pacmak) within our CI fails with the error logs below. It seems like the python dependency bdist_wheel is suddenly missing. The same jobs were running successfully yesterday evening and we did not make any changes to our containers in the meantime.

  • Manually installing wheel via pip install wheel within the CI before running package does not solve the issue.
  • Locally I cannot reproduce this issue.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

I expected the package command to be executed successfully like it did in the past.

Current Behavior

`
$ npm run package

@[email protected] package
jsii-pacmak
[jsii-pacmak] [WARN] Failed building python
[jsii-pacmak] [WARN] python failed
Error: All attempts failed. Last error: Command (/tmp/npm-packUAxNsj/.env-QWvd1k/bin/python -m pip wheel --no-deps --wheel-dir /builds/abc/internal/ourlib/dist/python /tmp/npm-packUAxNsj) failed with status 1:
#STDERR> ERROR: Command errored out with exit status 1:
#STDERR> command: /tmp/npm-packUAxNsj/.env-QWvd1k/bin/python /tmp/npm-packUAxNsj/.env-QWvd1k/lib64/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpjce3un5y
#STDERR> cwd: /tmp/npm-packUAxNsj
#STDERR> Complete output (15 lines):
#STDERR> /usr/lib/python3.9/site-packages/setuptools/_distutils/dist.py:275: UserWarning: Unknown distribution option: 'bdist_wheel'
#STDERR> warnings.warn(msg)
#STDERR> running dist_info
#STDERR> creating /tmp/pip-modern-metadata-oe2ac0ad/ourlib_common.egg-info
#STDERR> writing /tmp/pip-modern-metadata-oe2ac0ad/ourlib_common_common.egg-info/PKG-INFO
#STDERR> writing dependency_links to /tmp/pip-modern-metadata-oe2ac0ad/ourlib_common_common.egg-info/dependency_links.txt
#STDERR> writing requirements to /tmp/pip-modern-metadata-oe2ac0ad/ourlib_common_common.egg-info/requires.txt
#STDERR> writing top-level names to /tmp/pip-modern-metadata-oe2ac0ad/ourlib_common_cdk_common.egg-info/top_level.txt
#STDERR> writing manifest file '/tmp/pip-modern-metadata-oe2ac0ad/ourlib_common_common.egg-info/SOURCES.txt'
#STDERR> reading manifest file '/tmp/pip-modern-metadata-oe2ac0ad/ourlib_common.egg-info/SOURCES.txt'
#STDERR> reading manifest template 'MANIFEST.in'
#STDERR> adding license file 'LICENSE'
#STDERR> writing manifest file '/tmp/pip-modern-metadata-oe2ac0ad/ourlib_common.egg-info/SOURCES.txt'
#STDERR> creating '/tmp/pip-modern-metadata-oe2ac0ad/ourlib_common.dist-info'
#STDERR> error: invalid command 'bdist_wheel'
#STDERR> ----------------------------------------
#STDERR> WARNING: Discarding file:///tmp/npm-packUAxNsj. Command errored out with exit status 1: /tmp/npm-packUAxNsj/.env-QWvd1k/bin/python /tmp/npm-packUAxNsj/.env-QWvd1k/lib64/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpjce3un5y Check the logs for full command output.
#STDERR> ERROR: Command errored out with exit status 1: /tmp/npm-packUAxNsj/.env-QWvd1k/bin/python /tmp/npm-packUAxNsj/.env-QWvd1k/lib64/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpjce3un5y Check the logs for full command output.
#STDERR> WARNING: You are using pip version 21.3.1; however, version 25.0.1 is available.
#STDERR> You should consider upgrading via the '/tmp/npm-packUAxNsj/.env-QWvd1k/bin/python -m pip install --upgrade pip' command.
#STDERR>
#STDOUT> Processing /tmp/npm-packUAxNsj
#STDOUT> Installing build dependencies: started
#STDOUT> Installing build dependencies: finished with status 'done'
#STDOUT> Getting requirements to build wheel: started
#STDOUT> Getting requirements to build wheel: finished with status 'done'
#STDOUT> Preparing metadata (pyproject.toml): started
#STDOUT> Preparing metadata (pyproject.toml): finished with status 'error'
`

Reproduction Steps

As described above we run jsii-pacmak

The versions we use:
"jsii": "5.8.4",
"jsii-pacmak": "1.111.0",

Possible Solution

No response

Additional Information/Context

No response

SDK version used

1.111.0

Environment details (OS name and version, etc.)

al-2023

@bedaka bedaka added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Apr 9, 2025
@bedaka
Copy link
Author

bedaka commented Apr 9, 2025

Strangely this started working again without any interference from our side.

Closing the issue

@bedaka bedaka closed this as completed Apr 9, 2025
Copy link
Contributor

github-actions bot commented Apr 9, 2025

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant