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

uvx gimme-aws-creds fails on Windows #6661

Open
knowsuchagency opened this issue Aug 26, 2024 · 5 comments
Open

uvx gimme-aws-creds fails on Windows #6661

knowsuchagency opened this issue Aug 26, 2024 · 5 comments
Labels
bug Something isn't working uv tool Related to the uv tool interface windows Specific to the Windows platform

Comments

@knowsuchagency
Copy link

uvx seems to correctly identify the gimme-aws-creds executable but cannot invoke it.

This is with version 0.3.4, specifically on Windows

PS C:\Users\FOO> uvx gimme-aws-creds
Installed 45 packages in 2.42s
The executable `gimme-aws-creds` was not found.
warning: An executable named `gimme-aws-creds` is not provided by package `gimme-aws-creds`.
The following executables are provided by `gimme-aws-creds`:
- gimme-aws-creds
- gimme-aws-creds-autocomplete.sh
- gimme-aws-creds.cmd
@zanieb
Copy link
Member

zanieb commented Aug 26, 2024

Interesting, thanks for the report! Seems like a classic weird Windows thing.

@zanieb zanieb added bug Something isn't working windows Specific to the Windows platform uv tool Related to the uv tool interface labels Aug 26, 2024
@samypr100
Copy link
Collaborator

samypr100 commented Aug 26, 2024

Hmmm, they don't define console_scripts entrypoints, just a script section which points to other scripts.

@samypr100
Copy link
Collaborator

From https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#scripts

Although setup() supports a scripts keyword for pointing to pre-made scripts to install, the recommended approach to achieve cross-platform compatibility is to use Creating executable scripts entry points

Seems like using scripts doesn't work well from a cross-platform perspective, especially on Windows.

@zanieb
Copy link
Member

zanieb commented Aug 27, 2024

Ah interesting. Thanks for the context. Does this work with pipx?

@knowsuchagency
Copy link
Author

It works on Mac, but not Windows. That's actually true for both pipx and uvx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working uv tool Related to the uv tool interface windows Specific to the Windows platform
Projects
None yet
Development

No branches or pull requests

6 participants
@zanieb @samypr100 @knowsuchagency and others