[krita] [Bug 465307] New: Snap AppArmor profile prohibits menu
https://bugs.kde.org/show_bug.cgi?id=465307 Bug ID: 465307 Summary: Snap AppArmor profile prohibits menu Classification: Applications Product: krita Version: 5.1.1 Platform: Ubuntu OS: Linux Status: REPORTED Severity: grave Priority: NOR Component: General Assignee: krita-bugs-n...@kde.org Reporter: stephematic...@gmail.com Target Milestone: --- SUMMARY: Menubar does not display. STEPS TO REPRODUCE: 1. Open terminal 2. Install via snap (e.g. `snap install krita`) 3. Run krita (`krita`) OBSERVED RESULT: No menubar, terminal output: < start of terminal output > Qt: Session management error: Could not open network socket /usr/share/libdrm/amdgpu.ids: No such file or directory Qt: Session management error: Could not open network socket /usr/share/libdrm/amdgpu.ids: No such file or directory Qt: Session management error: Could not open network socket /usr/share/libdrm/amdgpu.ids: No such file or directory /usr/share/libdrm/amdgpu.ids: No such file or directory Qt: Session management error: Could not open network socket propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.486\" (uid=1000 pid=27012 comm=\"/snap/krita/77/usr/bin/krita \" label=\"snap.krita.krita (enforce)\") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1096 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")" nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.486\" (uid=1000 pid=27012 comm=\"/snap/krita/77/usr/bin/krita \" label=\"snap.krita.krita (enforce)\") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1096 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")" "Object path cannot be empty" QObject::startTimer: Timers cannot have negative intervals Failed to register window menu, reason: org.freedesktop.DBus.Error.AccessDenied ("An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.188" (uid=1000 pid=27012 comm="/snap/krita/77/usr/bin/krita " label="snap.krita.krita (enforce)") interface="com.canonical.AppMenu.Registrar" member="RegisterWindow" error name="(unset)" requested_reply="0" destination="com.canonical.AppMenu.Registrar" (uid=1000 pid=19505 comm="/usr/libexec/vala-panel/appmenu-registrar " label="unconfined")") Failed to unregister window menu, reason: org.freedesktop.DBus.Error.AccessDenied ("An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.188" (uid=1000 pid=27012 comm="/snap/krita/77/usr/bin/krita " label="snap.krita.krita (enforce)") interface="com.canonical.AppMenu.Registrar" member="UnregisterWindow" error name="(unset)" requested_reply="0" destination="com.canonical.AppMenu.Registrar" (uid=1000 pid=19505 comm="/usr/libexec/vala-panel/appmenu-registrar " label="unconfined")") Failed to register window menu, reason: org.freedesktop.DBus.Error.AccessDenied ("An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.188" (uid=1000 pid=27012 comm="/snap/krita/77/usr/bin/krita " label="snap.krita.krita (enforce)") interface="com.canonical.AppMenu.Registrar" member="RegisterWindow" error name="(unset)" requested_reply="0" destination="com.canonical.AppMenu.Registrar" (uid=1000 pid=19505 comm="/usr/libexec/vala-panel/appmenu-registrar " label="unconfined")") Failed to unregister window menu, reason: org.freedesktop.DBus.Error.AccessDenied ("An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.188" (uid=1000 pid=27012 comm="/snap/krita/77/usr/bin/krita " label="snap.krita.krita (enforce)") interface="com.canonical.AppMenu.Registrar" member="UnregisterWindow" error name="(unset)" requested_reply="0" destination="com.canonical.AppMenu.Registrar" (uid=1000 pid=19505 comm="/usr/libexec/vala-panel/appmenu-registrar " label="unconfined")") < end of terminal output > EXPECTED RESULT Menubar, no errors in terminal. SOFTWARE/OS VERSIONS Linux, ubuntu MATE 22.04, OEM kernel 6.1.0 (uname -r: 6.1.0-1004-oem) Snap version: 2.58 ADDITIONAL INFORMATION AppArmor profile is loaded. apparmor_status apparmor module is loaded. 55 profiles are loaded. 47 profiles are in enforce mode. ... snap-update-ns.krita ... snap.krita.hook.configure snap.krita.krita ... 8 profiles are in complain mode. ... 0 profiles are
[krita] [Bug 465307] Snap AppArmor profile prohibits menu
https://bugs.kde.org/show_bug.cgi?id=465307 --- Comment #2 from stephematic...@gmail.com --- The menubar does not appear. E.g "File, Edit, ..." etc at the top of the window. -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 495907] New: Scripter and pip: 'DocWrapper' object has no attribute 'flush'
https://bugs.kde.org/show_bug.cgi?id=495907 Bug ID: 495907 Summary: Scripter and pip: 'DocWrapper' object has no attribute 'flush' Classification: Applications Product: krita Version: 5.2.6 Platform: Ubuntu OS: Linux Status: REPORTED Severity: wishlist Priority: NOR Component: Scripting Assignee: krita-bugs-n...@kde.org Reporter: stephematic...@gmail.com Target Milestone: --- SUMMARY Calling pip from Scripter does not work due to `runaction` replacing `stderr` and `stdout` with a `DocWrapper` object. DocWrapper does not have a flush attribute, which is needed by the `rich` package (used by pip). STEPS TO REPRODUCE 1. Install pip to a folder within sys.path. 2. Open Scripter, and import runpy; then run the following script: import runpy import sys def passive_exit(exitCode) return exitCode sys.argv = ['', 'install', 'numpy' ] sys.exit = passive_exit runpy.run_module('pip', run_name='__main__') OBSERVED RESULT --- Logging error --- Traceback (most recent call last): File "/home/username/.local/share/krita/pykrita/pip/_internal/utils/logging.py", line 177, in emit self.console.print(renderable, overflow="ignore", crop=False, style=style) File "/home/username/.local/share/krita/pykrita/pip/_vendor/rich/console.py", line 1673, in print with self: File "/home/username/.local/share/krita/pykrita/pip/_vendor/rich/console.py", line 865, in __exit__ self._exit_buffer() File "/home/username/.local/share/krita/pykrita/pip/_vendor/rich/console.py", line 823, in _exit_buffer self._check_buffer() File "/home/username/.local/share/krita/pykrita/pip/_vendor/rich/console.py", line 2065, in _check_buffer self.file.flush() AttributeError: 'DocWrapper' object has no attribute 'flush' Call stack: File "/tmp/.mount_krita-CyLgzy/usr/share/krita/pykrita/scripter/ui_scripter/actions/runaction/runaction.py", line 76, in run users_module = self.run_py3_document(document) File "/tmp/.mount_krita-CyLgzy/usr/share/krita/pykrita/scripter/ui_scripter/actions/runaction/runaction.py", line 139, in run_py3_document spec.loader.exec_module(users_module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/home/username/development/faycian/krita/scripter_attempt.py", line 9, in runpy.run_module('pip', run_name='__main__') File "/tmp/.mount_krita-CyLgzy/usr/lib/python3.10/runpy.py", line 227, in run_module return _run_code(code, {}, init_globals, run_name, mod_spec) File "/tmp/.mount_krita-CyLgzy/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/username/.local/share/krita/pykrita/pip/__main__.py", line 24, in sys.exit(_main()) File "/home/username/.local/share/krita/pykrita/pip/_internal/cli/main.py", line 80, in main return command.main(cmd_args) File "/home/username/.local/share/krita/pykrita/pip/_internal/cli/base_command.py", line 157, in main return self._main(args) File "/home/username/.local/share/krita/pykrita/pip/_internal/cli/base_command.py", line 231, in _main return self._run_wrapper(level_number, options, args) File "/home/username/.local/share/krita/pykrita/pip/_internal/cli/base_command.py", line 105, in _run_wrapper status = _inner_run() File "/home/username/.local/share/krita/pykrita/pip/_internal/cli/base_command.py", line 96, in _inner_run return self.run(options, args) File "/home/username/.local/share/krita/pykrita/pip/_internal/cli/req_command.py", line 67, in wrapper return func(self, options, args) File "/home/username/.local/share/krita/pykrita/pip/_internal/commands/install.py", line 501, in run write_output( File "/home/username/.local/share/krita/pykrita/pip/_internal/utils/misc.py", line 374, in write_output logger.info(msg, *args) File "/tmp/.mount_krita-CyLgzy/usr/lib/python3.10/logging/__init__.py", line 1477, in info self._log(INFO, msg, args, **kwargs) File "/tmp/.mount_krita-CyLgzy/usr/lib/python3.10/logging/__init__.py", line 1624, in _log self.handle(record) File "/tmp/.mount_krita-CyLgzy/usr/lib/python3.10/logging/__init__.py", line 1634, in handle self.callHandlers(record) File "/tmp/.mount_krita-CyLgzy/usr/lib/python3.10/logging/__init__.py", line 1696, in callHandlers hdlr.handle(record) File "/tmp/.mount_krita-CyLgzy/usr/lib/python3.10/logging/__init__.py", line 968, in handle self.emit(record) File "/home/username/.local/share/krita/pykrita/pip/_internal/utils/logging.py", line 179, in emit self.handleError(record) EXPECTED RESULT Successful installation without error. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Ubuntu MATE 24.04.1 Qt Version: As per Krita 5.2.6 appimage -- You are receiving this mail because: You are watching all bug changes.