Gfeeds can’t start with error

gfeeds can’t start with error,

[ukid@GPDPocket3 ~]$ gfeeds

(process:21793): Gdk-CRITICAL **: 10:03:50.188: gdk_monitor_set_scale: assertion 'scale >= 1.' failed
Traceback (most recent call last):
  File "/usr/bin/gfeeds", line 75, in <module>
    from gfeeds import __main__
  File "/usr/lib/python3.12/site-packages/gfeeds/__main__.py", line 9, in <module>
    from gfeeds.app_window import GFeedsAppWindow
  File "/usr/lib/python3.12/site-packages/gfeeds/app_window.py", line 2, in <module>
    from gfeeds.main_leaflet import MainLeaflet
  File "/usr/lib/python3.12/site-packages/gfeeds/main_leaflet.py", line 11, in <module>
    from gfeeds.webview import GFeedsWebView
  File "/usr/lib/python3.12/site-packages/gfeeds/webview.py", line 4, in <module>
    from gfeeds.util.build_reader_html import build_reader_html
  File "/usr/lib/python3.12/site-packages/gfeeds/util/build_reader_html.py", line 4, in <module>
    from gfeeds.util.readability_wrapper import RDoc
  File "/usr/lib/python3.12/site-packages/gfeeds/util/readability_wrapper.py", line 3, in <module>
    from readability.readability import *
  File "/usr/lib/python3.12/site-packages/readability/__init__.py", line 3, in <module>
    from .readability import Document
  File "/usr/lib/python3.12/site-packages/readability/readability.py", line 11, in <module>
    from .cleaners import clean_attributes
  File "/usr/lib/python3.12/site-packages/readability/cleaners.py", line 3, in <module>
    from lxml.html.clean import Cleaner
  File "/usr/lib/python3.12/site-packages/lxml/html/clean.py", line 18, in <module>
    raise ImportError(
ImportError: lxml.html.clean module is now a separate project lxml_html_clean.
Install lxml[html_clean] or lxml_html_clean directly.

I coludn’t find package containing lxml_html_clean.

The python-lxml package might need to be installed (although it is already listed as a required dependency of gfeeds). It contains the file:

/usr/lib/python3.12/site-packages/lxml/html/clean.py

I assume that would likely provide the lxml.html.clean module (I don’t use Gnome or gfeeds).

clean.py no loger export lxml.html.clean,

in the clean.py,

except ImportError:
    raise ImportError(
        "lxml.html.clean module is now a separate project lxml_html_clean.\n"
        "Install lxml[html_clean] or lxml_html_clean directly."
    ) from None
1 Like

It looks like this might be the new project page for lxml.html.clean:

I know it, so i’m asking which package can provide this module in the current testing branch.

I dont use this package at all, but did you try the one that says so right there?

pip install lxml_html_clean

Edit: see post bellow

None, yet. No one has submitted an Arch bug report, so no one knows about it therefore there is no package.

Don’t do that.

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try ‘pacman -S
python-xyz’, where xyz is the package you are trying to
install.

If you wish to install a non-Arch-packaged Python package,
create a virtual environment using 'python -m venv path/to/venv'.
Then use path/to/venv/bin/python and path/to/venv/bin/pip.

If you wish to install a non-Arch packaged Python application,
it may be easiest to use 'pipx install xyz', which will manage a
virtual environment for you. Make sure you have python-pipx
installed via pacman.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

1 Like

The downloadable source distribution might be useful lxml-html-clean 0.1.1.