Bug 2144297 - rabbitvcs plugin for nautilus does not work
Summary: rabbitvcs plugin for nautilus does not work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rabbitvcs
Version: 37
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Pete Walter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-20 15:28 UTC by GroovieMan
Modified: 2023-08-19 01:14 UTC (History)
7 users (show)

Fixed In Version: rabbitvcs-0.19-2.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-11 18:36:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description GroovieMan 2022-11-20 15:28:28 UTC
Description of problem:
I installed the rabbitvcs-nautilus-0.18-8.fc37.noarch but i was unable to 
use this nice tool in nautilus. I guess it is a problem of the plugin because
it also does not work with thunar too.

Version-Release number of selected component (if applicable):
- rabbitvcs-nautilus-0.18-8.fc37.noarch 
- nautilus-extensions-43.0-2.fc37.x86_64
- gnome-terminal-nautilus-3.45.90-1.fc37.x86_64
- nautilus-43.0-2.fc37.x86_64
- nautilus-python-4.0-1.fc37.x86_64

How reproducible:
Simply install the plugin and cd into a git-controlled directory and you will not see the flags. Besides the rabbitvcs menu extension does not appear in your file browser.

Steps to Reproduce:
1.install 
2.try 
3.fail

Actual results:


Expected results:


Additional info:

Comment 1 jan p. springer 2023-01-22 18:46:45 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?

Comment 2 Pete Walter 2023-03-17 09:20:35 UTC
Nautilus 43 changed the extension API and I assume rabbitvcs would need porting for that (ideally upstream).

Comment 3 cacheflood 2023-03-17 22:18:47 UTC
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

Comment 4 cacheflood 2023-03-17 22:27:55 UTC
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

Comment 5 GroovieMan 2023-04-28 06:58:12 UTC
Problem is still there in a properly new setup of a FC38 Workstation.

Comment 6 Stefano 2023-04-28 10:24:36 UTC
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

Comment 7 Stefano 2023-04-28 10:38:27 UTC
(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'?

Comment 8 GroovieMan 2023-06-06 10:53:17 UTC
Problems is still there after migration to F38

Comment 9 cacheflood 2023-06-06 20:36:39 UTC
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?

Comment 10 Fedora Update System 2023-08-03 20:14:09 UTC
FEDORA-2023-9731db4486 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-9731db4486

Comment 11 Fedora Update System 2023-08-04 02:18:55 UTC
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.

Comment 12 cacheflood 2023-08-04 08:17:02 UTC
works 👍️
(Tried first comment on https://bodhi.fedoraproject.org/updates/FEDORA-2023-9731db4486 but got internal error when creating account :(, so commented here )

Comment 13 Stefano 2023-08-05 09:37:04 UTC
Version 0.19-1.fc38  It works, thanks a lot

Comment 14 Fedora Update System 2023-08-11 00:56:22 UTC
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.

Comment 15 GroovieMan 2023-08-11 07:20:19 UTC
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.

Comment 16 GroovieMan 2023-08-11 18:36:09 UTC
Great rabbit-cvs is back again, many thanks!

Comment 17 Fedora Update System 2023-08-19 01:14:46 UTC
FEDORA-2023-0005cd1d1a has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.