Bug 2144297
| Summary: | rabbitvcs plugin for nautilus does not work | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | GroovieMan <christian.groove> |
| Component: | rabbitvcs | Assignee: | Pete Walter <walter.pete> |
| Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 37 | CC: | cacheflood, gwync, i, jsd, nushio, stefanosu, walter.pete |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-08-11 18:36:09 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
GroovieMan
2022-11-20 15:28:28 UTC
i'm not sure it's rabbitvcs's fault. there seem to be *no* extensions or any add'l things working in nautilus for gnome 43. anybody investigating any of this? Nautilus 43 changed the extension API and I assume rabbitvcs would need porting for that (ideally upstream). does this help?;
* Message: 00:17:53.635: Connecting to org.freedesktop.Tracker3.Miner.Files
/usr/share/nautilus-python/extensions/RabbitVCS.py:66: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '4.0') before import to ensure that the right version gets loaded.
from gi.repository import Nautilus, GObject, Gtk, GdkPixbuf
Traceback (most recent call last):
File "/usr/share/nautilus-python/extensions/RabbitVCS.py", line 80, in <module>
from rabbitvcs.util.contextmenu import MenuBuilder, MainContextMenu, SEPARATOR, ContextMenuConditions
File "/usr/lib/python3.11/site-packages/rabbitvcs/util/contextmenu.py", line 32, in <module>
from .contextmenuitems import *
File "/usr/lib/python3.11/site-packages/rabbitvcs/util/contextmenuitems.py", line 27, in <module>
gi.require_version("Gtk", "3.0")
File "/usr/lib64/python3.11/site-packages/gi/__init__.py", line 117, in require_version
raise ValueError('Namespace %s is already loaded with version %s' %
ValueError: Namespace Gtk is already loaded with version 4.0
Additional information: Currently installed plugins: /usr/lib64/nautilus/extensions-4/libterminal-nautilus.so /usr/lib64/nautilus/extensions-4/libnautilus-image-properties.so /usr/lib64/nautilus/extensions-4/libtotem-properties-page.so /usr/lib64/nautilus/extensions-4/libnautilus-python.so For bug testing only, the following command can be used: NAUTILUS_DISABLE_PLUGINS=TRUE nautilus Problem is still there in a properly new setup of a FC38 Workstation. Same error for me with Fedora 38,
I've tryed to modify the script /usr/share/nautilus-python/extensions/RabbitVCS.py:66
by adding on line 66
import gi
gi.require_version('Gtk', '3.0')
but then Nautilus hangs and does not start anymore
writing this to journal:
apr 28 11:42:02 stslnx systemd[2213]: Started dbus-:1.2-org.gnome.Nautilus.
apr 28 11:42:02 stslnx nautilus[30025]: Connecting to org.freedesktop.Tracker3.Miner.Files
apr 28 11:42:02 stslnx nautilus[30025]: /usr/lib64/python3.11/site-packages/gi/module.py:168: Warning: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed
apr 28 11:42:02 stslnx nautilus[30025]: g_type = info.get_g_type()
apr 28 11:42:02 stslnx nautilus[30025]: /usr/lib64/python3.11/site-packages/gi/module.py:168: Warning: g_once_init_leave: assertion 'result != 0' failed
apr 28 11:42:02 stslnx nautilus[30025]: g_type = info.get_g_type()
apr 28 11:42:02 stslnx nautilus[30025]: /usr/lib64/python3.11/site-packages/gi/module.py:203: Warning: g_type_get_qdata: assertion 'node != NULL' failed
apr 28 11:42:02 stslnx nautilus[30025]: type_ = g_type.pytype
So I've tryed with Gtk 4.0 :
import gi
gi.require_version('Gtk', '4.0')
and then on cascade changing to 4.0 to all .py files complaining that 4.0 was already loaded and 3.0 required
since I reached this error:
apr 28 12:23:34 stslnx systemd[2213]: Started dbus-:1.2-org.gnome.Nautilus.
apr 28 12:23:34 stslnx nautilus[36996]: Connecting to org.freedesktop.Tracker3.Miner.Files
apr 28 12:23:34 stslnx nautilus[36996]: detected unhandled Python exception in 'nautilus'
apr 28 12:23:34 stslnx nautilus[36996]: Traceback (most recent call last):
apr 28 12:23:34 stslnx nautilus[36996]: File "/usr/share/nautilus-python/extensions/RabbitVCS.py", line 87, in <module>
apr 28 12:23:34 stslnx nautilus[36996]: import rabbitvcs.ui.property_page
apr 28 12:23:34 stslnx nautilus[36996]: File "/usr/lib/python3.11/site-packages/rabbitvcs/ui/property_page.py", line 31, in <module>
apr 28 12:23:34 stslnx nautilus[36996]: import rabbitvcs.ui.widget
apr 28 12:23:34 stslnx nautilus[36996]: File "/usr/lib/python3.11/site-packages/rabbitvcs/ui/widget.py", line 989, in <module>
apr 28 12:23:34 stslnx nautilus[36996]: class Clickable(object):
apr 28 12:23:34 stslnx nautilus[36996]: File "/usr/lib/python3.11/site-packages/rabbitvcs/ui/widget.py", line 1000, in Clickable
apr 28 12:23:34 stslnx nautilus[36996]: _2BUTTON_PRESS = Gdk.EventType._2BUTTON_PRESS
(In reply to Stefano from comment #6) > Same error for me with Fedora 38, > I've tryed to modify the script > /usr/share/nautilus-python/extensions/RabbitVCS.py:66 > by adding on line 66 > import gi > gi.require_version('Gtk', '3.0') > > > but then Nautilus hangs and does not start anymore > writing this to journal: > > apr 28 11:42:02 stslnx systemd[2213]: Started > dbus-:1.2-org.gnome.Nautilus. > apr 28 11:42:02 stslnx nautilus[30025]: Connecting to > org.freedesktop.Tracker3.Miner.Files > apr 28 11:42:02 stslnx nautilus[30025]: > /usr/lib64/python3.11/site-packages/gi/module.py:168: Warning: > g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed > apr 28 11:42:02 stslnx nautilus[30025]: g_type = info.get_g_type() > apr 28 11:42:02 stslnx nautilus[30025]: > /usr/lib64/python3.11/site-packages/gi/module.py:168: Warning: > g_once_init_leave: assertion 'result != 0' failed > apr 28 11:42:02 stslnx nautilus[30025]: g_type = info.get_g_type() > apr 28 11:42:02 stslnx nautilus[30025]: > /usr/lib64/python3.11/site-packages/gi/module.py:203: Warning: > g_type_get_qdata: assertion 'node != NULL' failed > apr 28 11:42:02 stslnx nautilus[30025]: type_ = g_type.pytype > > > So I've tryed with Gtk 4.0 : > import gi > gi.require_version('Gtk', '4.0') > > and then on cascade changing to 4.0 to all .py files complaining that 4.0 > was already loaded and 3.0 required > since I reached this error: > apr 28 12:23:34 stslnx systemd[2213]: Started > dbus-:1.2-org.gnome.Nautilus. > apr 28 12:23:34 stslnx nautilus[36996]: Connecting to > org.freedesktop.Tracker3.Miner.Files > apr 28 12:23:34 stslnx nautilus[36996]: detected unhandled Python exception > in 'nautilus' > apr 28 12:23:34 stslnx nautilus[36996]: Traceback (most recent call last): > apr 28 12:23:34 stslnx nautilus[36996]: File > "/usr/share/nautilus-python/extensions/RabbitVCS.py", line 87, in <module> > apr 28 12:23:34 stslnx nautilus[36996]: import rabbitvcs.ui.property_page > apr 28 12:23:34 stslnx nautilus[36996]: File > "/usr/lib/python3.11/site-packages/rabbitvcs/ui/property_page.py", line 31, > in <module> > apr 28 12:23:34 stslnx nautilus[36996]: import rabbitvcs.ui.widget > apr 28 12:23:34 stslnx nautilus[36996]: File > "/usr/lib/python3.11/site-packages/rabbitvcs/ui/widget.py", line 989, in > <module> > apr 28 12:23:34 stslnx nautilus[36996]: class Clickable(object): > apr 28 12:23:34 stslnx nautilus[36996]: File > "/usr/lib/python3.11/site-packages/rabbitvcs/ui/widget.py", line 1000, in > Clickable > apr 28 12:23:34 stslnx nautilus[36996]: _2BUTTON_PRESS = > Gdk.EventType._2BUTTON_PRESS sorry in previous post I've missed last rows, I'll post another attempt: apr 28 12:35:29 stslnx systemd[2213]: Started dbus-:1.2-org.gnome.Nautilus. apr 28 12:35:29 stslnx nautilus[38823]: Connecting to org.freedesktop.Tracker3.Miner.Files apr 28 12:35:29 stslnx nautilus[38823]: detected unhandled Python exception in 'nautilus' apr 28 12:35:29 stslnx nautilus[38823]: Traceback (most recent call last): apr 28 12:35:29 stslnx nautilus[38823]: File "/usr/share/nautilus-python/extensions/RabbitVCS.py", line 87, in <module> apr 28 12:35:29 stslnx nautilus[38823]: import rabbitvcs.ui.property_page apr 28 12:35:29 stslnx nautilus[38823]: File "/usr/lib/python3.11/site-packages/rabbitvcs/ui/property_page.py", line 31, in <module> apr 28 12:35:29 stslnx nautilus[38823]: import rabbitvcs.ui.widget apr 28 12:35:29 stslnx nautilus[38823]: File "/usr/lib/python3.11/site-packages/rabbitvcs/ui/widget.py", line 989, in <module> apr 28 12:35:29 stslnx nautilus[38823]: class Clickable(object): apr 28 12:35:29 stslnx nautilus[38823]: File "/usr/lib/python3.11/site-packages/rabbitvcs/ui/widget.py", line 1000, in Clickable apr 28 12:35:29 stslnx nautilus[38823]: _2BUTTON_PRESS = Gdk.EventType._2BUTTON_PRESS apr 28 12:35:29 stslnx nautilus[38823]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ apr 28 12:35:29 stslnx nautilus[38823]: AttributeError: type object 'EventType' has no attribute '_2BUTTON_PRESS'. Did you mean: 'BUTTON_PRESS'? Problems is still there after migration to F38 ended exactly at same point: Did you mean: 'BUTTON_PRESS'? when tried to fix for 4.0 and gave up due probably more of similar conversions should be done though program, and I'm not python coder, just want to use this. Please developers give head up if this will be fixed on future? FEDORA-2023-9731db4486 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-9731db4486 FEDORA-2023-9731db4486 has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-9731db4486` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-9731db4486 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. works 👍️ (Tried first comment on https://bodhi.fedoraproject.org/updates/FEDORA-2023-9731db4486 but got internal error when creating account :(, so commented here ) Version 0.19-1.fc38 It works, thanks a lot FEDORA-2023-0005cd1d1a has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-0005cd1d1a` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-0005cd1d1a See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. I installed the fix but i do not see anything of rabbitcvs in nautilis, also no changes when i do a logoff/login form my desktop. Great rabbit-cvs is back again, many thanks! |