This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Setuptools 60.0 breaks building from source on Debian 11: No module named 'binascii'
Type: behavior Stage: resolved
Components: Build, Installation Versions: Python 3.10
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, i-Ching
Priority: normal Keywords:

Created on 2022-01-16 16:35 by i-Ching, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
error1.txt i-Ching, 2022-01-16 16:35 Error log of upgrading at the stage "make -j 4"
Messages (5)
msg410701 - (view) Author: Ching (i-Ching) Date: 2022-01-16 16:35
1. Before upgrade to Python version 3.10.2 from source on Debian Linux, I must downgrade setuptools to version 59.8.0 or below.

2. At the stage of "make -j 4", setuptools version 60.0.0 or above raise an error of: ModuleNotFoundError: No module named 'binascii'

It is not a big issue, just remind Pythonistas to save their time to debug.

Reference of installation Python from source on Debian:
https://computingforgeeks.com/how-to-install-python-on-debian-linux/
msg410712 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2022-01-16 18:48
Please report the issue to setuptools, https://github.com/pypa/setuptools . It's a regression in setuptools 60.0.
msg410713 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2022-01-16 19:00
Does setting the env var SETUPTOOLS_USE_DISTUTILS=stdlib resolve the issue for you?
msg410725 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2022-01-16 20:54
Jason told me that setuptools is already aware of the issue. He reopened bug https://github.com/pypa/setuptools/issues/3007 and is now investigation the problem.
msg410737 - (view) Author: Ching (i-Ching) Date: 2022-01-17 00:18
Thank you for your solution: setting the env var SETUPTOOLS_USE_DISTUTILS=stdlib.

1. At my previous Python 3.10.1, I always upgrade to the latest setuptools (60.5.0), then I get an error of "No module named 'binascii'" during upgrading to Python 3.10.2 from compiling source.

2. I do not have the above issue as I install a new Python 3.10.2 with the bundled setuptools 59.0.1 at termux environment.

It is an issue of upgrade at my linux environment.

I shall close this ticket soon.
History
Date User Action Args
2022-04-11 14:59:54adminsetgithub: 90559
2022-01-17 00:18:23i-Chingsetstatus: open -> closed

messages: + msg410737
stage: resolved
2022-01-16 20:54:52christian.heimessetmessages: + msg410725
2022-01-16 19:00:59christian.heimessetmessages: + msg410713
2022-01-16 18:48:14christian.heimessettitle: Using setuptools version 59.8.0 or below before upgrade Python 3.10.2 from source on Debian 11 -> Setuptools 60.0 breaks building from source on Debian 11: No module named 'binascii'
nosy: + christian.heimes

messages: + msg410712

components: + Build
2022-01-16 16:35:12i-Chingcreate