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

ERROR: Invalid requirement: 'myLibraryName>=1.0.0.*': .* suffix can only be used with == or != operators myLibraryName>=1.0.0.* #23708

Closed
AlexanderRommel opened this issue Jun 26, 2024 · 3 comments
Assignees
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@AlexanderRommel
Copy link

Since recently the libraries configured via a text file (e.g. requirenments-bug.txt > attached) cannot be installed due to following error:

...
2024-06-26 15:37:30.832 [info] ERROR: Invalid requirement: 'zipp>=3.18.*': .* suffix can only be used with `==` or `!=` operators
    zipp>=3.18.*
        ~~~~~~~^ (from line 1 of c:\git_mappings\rof-motion-test-development\requirements-bug.txt)
...

As far as I could see the pip update will be done:

...
2024-06-26 15:37:21.618 [info] CREATE_VENV.UPGRADING_PIP
Running: c:\git_mappings\rof-motion-test-development\.venv\Scripts\python.exe -m pip install --upgrade pip
...

and with pip 24.1 the error occurs.

E.g. with pip 22.0.4 the error does not occur.

requirements-bug.txt
Python.log

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jun 26, 2024
@karthiknadig karthiknadig self-assigned this Jun 26, 2024
@karthiknadig
Copy link
Member

We do update pip to latest in your environment on creation. If that is not working you can downgrade pip in your environment manually. But this is a bug on pip (https://github.com/pypa/pip/issues)

@karthiknadig karthiknadig closed this as not planned Won't fix, can't repro, duplicate, stale Jun 26, 2024
@AlexanderRommel
Copy link
Author

Thanks @karthiknadig.
I've created an issue for pip: pypa/pip#12802

@notatallshaw
Copy link

But this is a bug on pip (https://github.com/pypa/pip/issues)

FWIW this is not a bug on pip side, but pip 24.1 included the breaking change of finally being PEP 440 compliant.

Some further details: https://pradyunsg.me/blog/2024/05/13/pip-24-1-betas/

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

3 participants