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

[Bug] Tools/setup/requirements.txt uses deprecated syntax #23329

Closed
bluedisk opened this issue Jun 27, 2024 · 0 comments · Fixed by #23330
Closed

[Bug] Tools/setup/requirements.txt uses deprecated syntax #23329

bluedisk opened this issue Jun 27, 2024 · 0 comments · Fixed by #23330

Comments

@bluedisk
Copy link
Contributor

bluedisk commented Jun 27, 2024

Describe the bug

Following the PEP 440, "V.*" expression is only allowed on "==" or "!=" operator.
it has been used for a while - around 3 years - but it's deprecated now from pip version 24.1

this means "requirements.txt" makes an error and the install instruction is not working any more.

since the expression is deprecated, it needs to be changed to right syntax for making it work
because from pip verison 24.1, current "requirements.txt" file doesn't accepted by pip

To Reproduce

  1. updated pip to 24.1.* '''pip install -U pip```
  2. try to install requirements pip install -r Tools/setup/requirements.txt
  3. boom!
ERROR: Invalid requirement: 'matplotlib>=3.0.*': .* suffix can only be used with `==` or `!=` operators
    matplotlib>=3.0.*
              ~~~~~~^ (from line 10 of requirements.txt)

Expected behavior

"requirments.txt" has to be fixed.

Screenshot / Media

No response

Flight Log

it's a installation tool issue

Software Version

latest main branch 30b854d Aug, 27, 2024

Flight controller

N/A

Vehicle type

None

How are the different components wired up (including port information)

No response

Additional context

No response

bluedisk pushed a commit to bluedisk/PX4-Autopilot that referenced this issue Jun 27, 2024
…ments.txt```

- Fixes matplotlib version expression from ">=3.0.*" ro ">=3.0" which is the right syntax

Fixes issue PX4#23329
dagar pushed a commit that referenced this issue Jun 28, 2024
…nts.txt

- Fixes matplotlib version expression from ">=3.0.*" ro ">=3.0" which is the right syntax

Fixes issue #23329

Co-authored-by: lee wonwoo <leewonwoo@leeui-MacBookPro.local>
vertiq-jordan pushed a commit to iq-motion-control/PX4-Autopilot that referenced this issue Aug 21, 2024
…nts.txt

- Fixes matplotlib version expression from ">=3.0.*" ro ">=3.0" which is the right syntax

Fixes issue PX4#23329

Co-authored-by: lee wonwoo <leewonwoo@leeui-MacBookPro.local>
Ryanf55 pushed a commit to Ryanf55/PX4-Autopilot that referenced this issue Nov 28, 2024
…nts.txt

- Fixes matplotlib version expression from ">=3.0.*" ro ">=3.0" which is the right syntax

Fixes issue PX4#23329

Co-authored-by: lee wonwoo <leewonwoo@leeui-MacBookPro.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant