voxel51 / fiftyone

Refine high-quality datasets and visual AI models
https://fiftyone.ai
Apache License 2.0
8.72k stars 551 forks source link

[BUG] Setuptools incompatible with packaging on fityone, leading to 'strip_trailing_zero' error #4702

Closed GustavoOS closed 1 month ago

GustavoOS commented 1 month ago

Describe the problem

Fiftyone has the requirements/common.txt in multilple versions with setuptools set with version >= 45.2.0 and packaging 20.3. However, the expected behaviour changed on setuptools 71 when combined with packaging < 22.0, leading to the exception 'strip_trailing_zero' which occurs on source install. (See https://github.com/pypa/setuptools/issues/4483 for more details)

Code to reproduce issue

  1. Clone 51 repo
  2. Create a new virtual environment
  3. source install.bash

'strip_trailing_zero' error will occur

System information

Willingness to contribute

The FiftyOne Community encourages bug fix contributions. Would you or another member of your organization be willing to contribute a fix for this bug to the FiftyOne codebase?

benjaminpkane commented 1 month ago

Hi @GustavoOS. This is an indirect issue. pip install setuptools<71 fiftyone should be sufficient. Related to https://github.com/voxel51/fiftyone/pull/4581

GustavoOS commented 1 month ago

unfortunately this is a bug that affects multiple versions (tried 0.24.1 and 0.23.1, they all have the same error)

GustavoOS commented 1 month ago

Also, the install.bash script overrides pip install setuptools<71 fiftyone

benjaminpkane commented 1 month ago

The issue is fixed on release/v0.25.0 and develop branches. You can also edit the requirement/common.txt file directly as shown in https://github.com/voxel51/fiftyone/pull/4581/files since you are installing from source