dynobo / normcap

OCR powered screen-capture tool to capture information instead of images
https://dynobo.github.io/normcap/
Other
1.96k stars 89 forks source link

normcap not working on Ubuntu 24.10 #666

Open Hyphaed opened 2 weeks ago

Hyphaed commented 2 weeks ago

What happened?

I'm running normcap from flathub

seems error is related with qt libraries

How did you install NormCap?

None

Operating System + Version?

No response

[Linux only] Display Server (DS) + Desktop environment (DE)?

No response

Debug log output?*

`(base) ferran@z590i:~/Documents/PersonalPackages/normcap$ flatpak run com.github.dynobo.normcap     
F: Not sharing "/usr/share" with sandbox: Path "/usr" is reserved by Flatpak
F: Not sharing "/usr/share/themes" with sandbox: Path "/usr" is reserved by Flatpak
10:08:10 - ERROR   - normcap.screengrab.handlers.dbus_portal:127 - Permission denied for Screenshot via xdg-portal! Message: <PySide6.QtDBus.QDBusMessage(type=Signal, service=":1.72", path="/org/freedesktop/portal/desktop/request/1_362/normcap_gcfaeefd", interface="org.freedesktop.portal.Request", member="Response", signature="ua{sv}", contents=(2, [Argument: a{sv} {}]) ) at 0x7ba40c466900>
10:08:10 - WARNING - normcap.screengrab.permissions:202 - Screenshot permissions on Wayland seem missing.
Traceback (most recent call last):
  File "/app/lib/python3.11/site-packages/normcap/screengrab/permissions.py", line 200, in _dbus_portal_has_screenshot_permission
    result = dbus_portal.capture()
             ^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.11/site-packages/normcap/screengrab/handlers/dbus_portal.py", line 242, in capture
    image = _synchronized_capture(interactive=False)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.11/site-packages/normcap/screengrab/handlers/dbus_portal.py", line 198, in _synchronized_capture
    raise error
PermissionError: Permission denied for Screenshot via xdg-portal! Message: <PySide6.QtDBus.QDBusMessage(type=Signal, service=":1.72", path="/org/freedesktop/portal/desktop/request/1_362/normcap_gcfaeefd", interface="org.freedesktop.portal.Request", member="Response", signature="ua{sv}", contents=(2, [Argument: a{sv} {}]) ) at 0x7ba40c466900>
10:08:12 - ERROR   - normcap:181 - [QT] qtfatalmsg - cannot mix incompatible qt library (6.7.3) with this library (6.7.0)
`
cvpsmith commented 1 week ago

Same error. Can't get AppImage or Flatpak to work on Ububtu 24.10.