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

🐛 Binary wheel has an unsupported platform tag 'linux_x86_64'. #1181

Open
galenseilis opened this issue Jun 29, 2024 · 5 comments
Open

🐛 Binary wheel has an unsupported platform tag 'linux_x86_64'. #1181

galenseilis opened this issue Jun 29, 2024 · 5 comments

Comments

@galenseilis
Copy link

Steps to Reproduce

$ rye init . --license AGPL-3.0-or-later --build-system maturin
$ rye build
$ rye publish

Expected Result

I expect a message saying that publishing to PyPI was successful.

Actual Result

Uploading distributions to https://upload.pypi.org/legacy/
Uploading pyruciw-0.1.0-cp312-cp312-linux_x86_64.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.9/2.9 MB • 00:02 • 1.2 MB/s
WARNING  Error during upload. Retry with the --verbose option for more details.                                     
ERROR    HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/                                            
         Binary wheel 'pyruciw-0.1.0-cp312-cp312-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'.  
error: failed to publish files

Version Info

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:        22.04
Codename:       jammy

$ rye --version
rye 0.35.0
commit: 0.35.0 (a1dbc56d4 2024-06-24)
platform: linux (x86_64)
self-python: [email protected]
symlink support: true
uv enabled: true

Stacktrace

$ RUST_BACKTRACE=1
$ rye publish
Uploading distributions to https://upload.pypi.org/legacy/
Uploading pyruciw-0.1.0-cp312-cp312-linux_x86_64.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.9/2.9 MB • 00:02 • 1.4 MB/s
WARNING  Error during upload. Retry with the --verbose option for more details.                                     
ERROR    HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/                                            
         Binary wheel 'pyruciw-0.1.0-cp312-cp312-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'.  
error: failed to publish files
@galenseilis
Copy link
Author

Not sure if PEP513 is relevant here, but it seems like I need an alternative linux build.

@galenseilis
Copy link
Author

galenseilis commented Jun 29, 2024

This seems like a weird fix... but changing the file name to pyruciw-0.1.0-cp312-cp312-manylinux1_x86_64.whl allowed rye publish to work... I'll leave this open as I feel this should be taken care of by Rye itself (or its underlying tooling).

@charliermarsh
Copy link
Member

I think you need to run that wheel through auditwheel?

@charliermarsh
Copy link
Member

Although I thought maturin did this for you.

@charliermarsh
Copy link
Member

Maybe @konstin knows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants