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

requirements.txt file issue #4447

Closed
Jayllyz opened this issue Jun 22, 2024 · 4 comments
Closed

requirements.txt file issue #4447

Jayllyz opened this issue Jun 22, 2024 · 4 comments
Labels
question Asking for clarification or support

Comments

@Jayllyz
Copy link

Jayllyz commented Jun 22, 2024

uv version : 0.2.13

image

To reproduce :

uv pip install pyqt5
uv pip freeze | uv pip compile - -o requirements.txt

The file generated :

# This file was autogenerated by uv via the following command:
#    uv pip compile - -o requirements.txt
pyqt5==5.15.10
pyqt5-qt5==5.15.14
    # via pyqt5
pyqt5-sip==12.13.0
    # via pyqt5
@Jayllyz Jayllyz changed the title requirements.txtissue requirements.txt file issue Jun 22, 2024
@zanieb
Copy link
Member

zanieb commented Jun 22, 2024

Are you installing on a different machine / platform than you generated the requirements file on?

@zanieb zanieb added the question Asking for clarification or support label Jun 22, 2024
@Jayllyz
Copy link
Author

Jayllyz commented Jun 22, 2024

Yes, does it change the requirements file result ?

@zanieb
Copy link
Member

zanieb commented Jun 22, 2024

Yeah pip compile / requirements.txt does not encode a multi-platform resolution, the resolution is for the platform that it was created on. Hence, at runtime, you get this error that there is not a wheel with a matching platform.

We do support running resolution for alternative platforms, you can see the documentation for more details. The discussion in #2679 may also be helpful.

We're working on universal resolution with a uv lock command: #3347

@Jayllyz
Copy link
Author

Jayllyz commented Jun 22, 2024

Thanks for the information

@zanieb zanieb closed this as completed Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Asking for clarification or support
Projects
None yet
Development

No branches or pull requests

2 participants