pypa / pypa/setuptools

python12 ubutu 20.04 build horovod 0.28.1

Open
#4,655 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

distutils deprecation Needs Triage
Dominant language
Python
Stars
2.9k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

setuptools version

setuptools==75.1.0

Python version

python 12

OS

ubuntu 20.04

Additional environment information

with python 12, tensorflow 2.16.2 ubuntu 20.04

Description

run
HOROVOD_WITH_TENSORFLOW=1
HOROVOD_WITHOUT_PYTORCH=1
HOROVOD_WITHOUT_MXNET=1
HOROVOD_WITH_MPI=1
HOROVOD_WITHOUT_GLOO=1
python -m pip install --no-cache-dir horovod==0.28.1

How to Reproduce

run with python 12, tensorflow 2.16.2 ubuntu 20.04
HOROVOD_WITH_TENSORFLOW=1
HOROVOD_WITHOUT_PYTORCH=1
HOROVOD_WITHOUT_MXNET=1
HOROVOD_WITH_MPI=1
HOROVOD_WITHOUT_GLOO=1
python -m pip install --no-cache-dir horovod==0.28.1

Other detail
#26 0.594   Downloading horovod-0.28.1.tar.gz (3.5 MB)
#26 0.635      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.5/3.5 MB 155.6 MB/s eta 0:00:00
#26 1.725   Preparing metadata (setup.py): started
#26 1.767   Preparing metadata (setup.py): finished with status 'error'
#26 1.771   error: subprocess-exited-with-error
#26 1.771   
#26 1.771   × python setup.py egg_info did not run successfully.
#26 1.771   │ exit code: 1
#26 1.771   ╰─> [3 lines of output]
#26 1.771       /usr/local/lib/python3.12/site-packages/_distutils_hack/__init__.py:54: UserWarning: Reliance on distutils from stdlib is deprecated. Users must rely on setuptools to provide the distutils module. Avoid importing distutils or import setuptools first, and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. Register concerns at https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml
#26 1.771         warnings.warn(
#26 1.771       ERROR: Can not execute `setup.py` since setuptools is not available in the build environment.
#26 1.771       [end of output]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported pip install command with Python 3.12, TensorFlow 2.16.2, and Ubuntu 20.04, then examine the setup.py egg_info failure and the setuptools build environment. Done means identifying whether setuptools 0.28.1 compatibility is the cause and documenting or validating a supported installation path.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.