libcloud icon indicating copy to clipboard operation
libcloud copied to clipboard

`invalid literal for int() with base 10: 'unknown'` with 3.8.0 rel

Open chenrui333 opened this issue 10 months ago • 3 comments

Summary

While regression building ansible for homebrew, seeing some setuptools build failure as

      File "/private/tmp/pip-build-env-4sd8ymlv/normal/lib/python3.13/site-packages/wheel/_bdist_wheel.py", line 66, in <module>
        setuptools_major_version = int(setuptools.__version__.split(".")[0])
    ValueError: invalid literal for int() with base 10: 'unknown'

chenrui333 avatar Feb 23 '25 02:02 chenrui333

Thanks for reporting this.

I'm working on 3.9.0 release as we speak. I will start a voting thread on our mailing list by EOD and then hopefully we will get enough votes to publish the release by end of the week.

In the mean time, would it be possible for you to test latest trunk version and ensure the issue is fixed there?

Additionally, I would also like to add some safe guards to our CI to check issues like that automatically (we already have various dist and install checks in our pipeline, but it looks like they didn't catch this issue).

Kami avatar Mar 02 '25 16:03 Kami

Here are dist + install checks we run today with all the supported versions on CI:

  • https://github.com/apache/libcloud/blob/trunk/scripts/dist_install_check.sh
  • https://github.com/apache/libcloud/blob/trunk/scripts/dist_wheel_install_check.sh

I'm just working on improving 1) to also use python -m build to create the dist tarball, but besides that, it's not yet clear to me how they haven't caught this issue.

Kami avatar Mar 02 '25 16:03 Kami

Per @chenrui333, https://github.com/apache/libcloud/commit/a2114923adcaee6b022b43410 should fix the issue.

Additionally, I've included various improvements and additional build + dist + install checks (we already had a bunch, but sadly they some how diidn't catch this issue) as part of #2024 and other PRs.

Kami avatar Mar 02 '25 19:03 Kami