You are not logged in.

#26 2024-05-20 11:21:16

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

Just tried chafa and it does not render the content appropriately, ueberzug works way better.

Do I get it right, ueberzug got broken because it depends on Python 3.11 and Arch switched to Python 3.12? Does that also mean ueberzug has to be updated in order to properly work with Python 3.12 ?

Offline

#27 2024-05-20 12:04:38

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,038

Re: [SOLVED] ctpv does not work after the last upgrade

That is  a possbility and there's atleast one issue ueberzug has with python 3.12 , https://github.com/ueber-devel/ueberzug/issues/19

More info is needed.
boot to an updated system, use lf/ctpv/ueberzug .
run (with root rights)

journalctl -b |  curl -F 'file=@-' 0x0.st

post the url it outputs.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#28 2024-05-20 12:29:10

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

Lone_Wolf wrote:

use lf/ctpv/ueberzug .

What do you exactly mean by this?

Offline

#29 2024-05-20 13:43:38

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,038

Re: [SOLVED] ctpv does not work after the last upgrade

We need messages from ctpv and ueberzug while being used.

In the opening post of this thread you said :

ctpv prieview does not work for lf anymore after the last upgrade, it does not show any previews anymore.

To ensure ctpv / ueberzug have something to report to the journal :
, start lf
run several commands that should show previews (listing files in a directory ?)
incase you do other things with ctpv / ueberzug execute those.

After doing that, run the curl command so I can see the journal and look for clues in it.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#30 2024-05-20 14:39:50

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

That command does not show anything pertaining to ueberzug or ctpv, it shows system log.

But I did the following:

[user@arch ~]$ ueberzug layer -l Downloads/icons8-code-48.png 
Traceback (most recent call last): 
  File "/usr/bin/ueberzug", line 8, in <module> 
    sys.exit(main()) 
             ^^^^^^ 
  File "/usr/lib/python3.12/site-packages/ueberzug/__main__.py", line 55, in main 
    module.main(options) 
  File "/usr/lib/python3.12/site-packages/ueberzug/layer.py", line 218, in main 
    image_loader = (loading.ImageLoaderOption(options['--loader']) 
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
  File "/usr/lib/python3.12/enum.py", line 757, in __call__ 
    return cls.__new__(cls, value) 
           ^^^^^^^^^^^^^^^^^^^^^^^ 
  File "/usr/lib/python3.12/enum.py", line 1171, in __new__ 
    raise ve_exc 
ValueError: 'Downloads/icons8-code-48.png' is not a valid ImageLoaderOption 

Offline

#31 2024-05-21 12:24:02

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

what python packages should I downgrade to 3.11 in order for ueberzug to work properly?

Offline

#32 2024-05-21 23:58:47

loqs
Member
Registered: 2014-03-06
Posts: 18,136

Re: [SOLVED] ctpv does not work after the last upgrade

Do you have python-setuptools installed?  That vendors distutils so should provide distutils under python 3.12 for ueberzug.
Edit:
@Lone_Wolf what about stracing what ctpv is doing?  That would at least capture the commands it is running.

Last edited by loqs (2024-05-22 00:00:48)

Offline

#33 2024-05-22 06:31:52

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

loqs wrote:

Do you have python-setuptools installed?  That vendors distutils so should provide distutils under python 3.12 for ueberzug.

lol. This fixed the issue, ueberzug seems to be working now. Can I ask you how did you know this solution?

Offline

#34 2024-05-22 10:01:58

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,038

Re: [SOLVED] ctpv does not work after the last upgrade

Thanks for helping out, loqs.

b42 wrote:

Can I ask you how did you know this solution?

Maybe because the ueberzug issue I linked in #27 mentioned removal of python-setuptools as the problem ?
(I should have suggested it myself, but didn't realize that could be the reason of the problems).


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#35 2024-05-22 10:49:25

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

following two packages work for this case:

python-setuptools
python-distutils-extra

Offline

Board footer

Powered by FluxBB