Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ueberzug previews don't work without python distutils #1725

Open
MaxLPM opened this issue May 24, 2024 · 2 comments
Open

Ueberzug previews don't work without python distutils #1725

MaxLPM opened this issue May 24, 2024 · 2 comments

Comments

@MaxLPM
Copy link

MaxLPM commented May 24, 2024

Right now, previews with Ueberzug don't work without installing python's distutils package, which is deprecated in python 3.12. Without it, lf is stuck in an infinite "loading..." loop, with no errors getting reported. In ueber-devel/ueberzug (which most distros use a replacement for the original ueberzug) distutils is still used, though some progress is being made.
Currently, the solution is to use python 3.11 and install the distutils package, since it doesn't come as a dependency to ueberzug. So, for anything Debian based, just run apt install python3-distutils. On Arch you need to downgrade to 3.11 and install python3-distutils-extra, though partial downgrades are not supported, which may cause problems.
I'm creating this issue just to document the current events, since I spent a lot of time trying to figure out what's going on here :) The issue may become irrelevant in a month or two, but I hope it helps someone, since I couldn't find any info on this without jumping down multiple rabbit holes. So, sorry if creating an issue is the wrong way to do this, maybe it can be mentioned in the wiki?

@joelim-work
Copy link
Collaborator

Thank you for reporting. I think it's fine to keep this as an issue - even if you didn't create this issue, chances are someone else will end up creating this anyway.

Hopefully anyone else who experiences this will check the issue tracker first before creating a duplicate issue. If it becomes necessary I can also pin this issue for greater visibility.

@aguyfromuranus
Copy link

Installing python-distutils-extra solves the problem on Arch, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants