mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #1616] Bug: Bare metal install not possible on Ubuntu 24.10 - python3-distutils has been deprecated #3982
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#3982
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nextgenthemes on GitHub (Dec 11, 2024).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1616
Originally assigned to: @pirate on GitHub.
Provide a screenshot and describe the bug
python3-distutilshas been deprecated.Btw, I think the pip install should be done in a python virtualenv. I think new versions of Ubuntu/Python do not even let you do it without one. At least they encourage and complain if you try otherwise, not sure.
Also, you tell people to install 3 packages with pip in the docs
That is not a valid command. And also ldap and sonic are not valid pip package names. So I guess you want people to have the latest versions of them.
I think I should read like this:
I have
archiveboxas a command now like this globally, but it's giving errors that end withModuleNotFoundError: No module named 'distutils'. I expected it to fail because the packagepython3-distutilswas never installed.Steps to reproduce
Logs or errors
ArchiveBox Version
How did you install the version of ArchiveBox you are using?
pip
What operating system are you running on?
Linux (Ubuntu/Debian/Arch/Alpine/etc.)
What type of drive are you using to store your ArchiveBox data?
data/is on a local SSD or NVMe drivedata/is on a spinning hard drive or external USB drivedata/is on a network mount (e.g. NFS/SMB/CIFS/etc.)data/is on a FUSE mount (e.g. SSHFS/RClone/S3/B2/OneDrive, etc.)Docker Compose Configuration
ArchiveBox Configuration
@pirate commented on GitHub (Dec 11, 2024):
python3-distutilsis not deprecated universally, iirc it was only created recently for the 3.11 systems that removed it from the stdlib, with plans to deprecate it gradually in 3.12. https://packages.debian.org/search?keywords=python3-distutilsapt install python3-distutilsorpip install setuptoolsdepending on Linux flavorpip install distutilsdistutilsincludedthe pip install should be done in a python virtualenv, yes, always, I expect everyone to install python packages in either a venv,pipx, conda, uv, poetry, etc. environment, that's been true for many years at this point. there are some environments where it's not necessary (e.g. single-purpose systems, docker containers, VMs, etc.), it's up to the user to decide where they want to install it,pip install ...in the docs is always a generic stand-in for "install this however you normally install PyPI packages"That is not a valid command. And also ldap and sonic are not valid pip package names., it's a perfectly valid command,packagename[group1,group2]is how you specify pip packges with named groups of optional dependencies. Archivebox provides both anldapandsonicgroup. You can learn more about this standardpipsyntax here:@0duck0 commented on GitHub (Dec 13, 2024):
Python Version: 3.12
Report details
Hardware Information:
Software Information:
Command issued: sudo apt install python3-distutils
ERROR MESSAGE:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python3-distutils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python3-distutils' has no installation candidate
@pirate commented on GitHub (Dec 13, 2024):
@Mela commented on GitHub (Dec 14, 2024):
Distro: Linux Mint 22 Wilma base: Ubuntu 24.04 noble
@Mela commented on GitHub (Dec 14, 2024):
(Temporary?) Solution:
pip install setuptools@pirate commented on GitHub (Dec 14, 2024):
Ok then you're on one of the really new systems that removed it completely, I thought they were going to offer it as an apt package for a least a couple years but I guess not. In that case you want
pip install setuptoolsorapt install python3-distutils-extra.What a mess. Seems unlike the Ubuntu/Debian ethos to remove a core library that would break django and many other big common packages without providing patches for them?
@Mela commented on GitHub (Dec 14, 2024):
What I got from superficial reading while searching for a solution, was: "something, something Ubuntu pushing hard for user using only secure environments ... something ..."
@pirate commented on GitHub (Dec 18, 2024):
b3edf1f