-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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] string version check regression (1.0.3.linux-x86_64) #4511
Comments
There is no indication that this has anything to do with pyserial or setuptools. It's also not reproducible in Docker given your instructions. One weird thing is that your instructions install pip, but your error shows using the system provided pip. |
Maybe related to pypa/pip#12825 ? |
I see. Yes, that is strange. Apologies for the subpar reproduction steps. A bit unsure what to make of this, but it seems they had to do something similar. Maybe the issue lies assumptions made in the script instead... |
The major change between setuptools 70.3 and 71.1 is the exposure of and reliance on natural dependencies, so the presence of an extant 'packaging' could very well affect the build. However, if you're using the latest version of pip (as indicated), I'd also expect you'd be building in an isolated environment, so the version of setuptools or packaging in the system environment should be irrelevant. Whatever the issue, until we can trace it to something with Setuptools, there's not much else we can do here. Please feel free to continue to investigate or refine the repro steps. |
I understand. I appreciate your time and effort. |
Hey there, Ryan here from the Ardupilot dev team. ArduPilot is NOT building Ubuntu 22 in an isolated environment on Ubuntu jammy, and we pinned a different version of setuptools to account for this bug. It broke other tools such as TLDR: Installing a different version of setuptools to account for this bug outside of a virtual environment had nasty sideffects, so now that it's fixed, we're going back to apt for stability. PR here: ArduPilot/ardupilot#28056 |
setuptools version
setuptools==71.1.0
Python version
Python 3.8
OS
Ubuntu 20.04.6
Additional environment information
CI runner info:
Current runner version: '2.317.0'
Operating System
Ubuntu
20.04.6 LTS
Runner Image
Image: ubuntu-20.04
Version: 20240721.1.0
Included Software: https://github.com/actions/runner-images/blob/ubuntu20/20240721.1/images/ubuntu/Ubuntu2004-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu20%2F20240721.1
Description
When I run the setuptools string/version check it fails a string that it was previously not (
1.0.3.linux-x86_64
), which I would think is a regression. It is afaik default Ubuntu running on github CI.Noticed on my github CI workflow that installation of
pyserial-3.5
was failing due to failing versioncheck (InvalidVersion), after setuptools got updated.Working:
setuptools-70.3.0
Failing:
setuptools-71.1.0
Expected behavior
I expected that the version string check (for
1.0.3.linux-x86_64
) that was previously succeeding would not fail when I run the same code/installation, with seemingly the same string.How to Reproduce
pip3 install --user -U pip setuptools
(should yield setuptools 71.1.0)pip3 install --user -U pyserial
1.0.3.linux-x86_64
)Output
The text was updated successfully, but these errors were encountered: