After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 791208 - Throws warning about missing gi.require_version("Nautilus", ...) when any script installed
Throws warning about missing gi.require_version("Nautilus", ...) when any scr...
Status: RESOLVED FIXED
Product: nautilus-python
Classification: Other
Component: general
1.1
Other Linux
: Normal normal
: v1.1.1
Assigned To: Adam Plumb
Adam Plumb
Depends on:
Blocks:
 
 
Reported: 2017-12-04 14:16 UTC by Stephen
Modified: 2017-12-05 23:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stephen 2017-12-04 14:16:43 UTC
With any nautilus-python extension script installed, Nautilus prints the following warning on start:

sys:1: PyGIWarning: Nautilus was imported without specifying a version first. Use gi.require_version('Nautilus', '3.0') before import to ensure that the right version gets loaded.

This is irrespective of the script contents - a blank script in e.g. ~/.local/share/nautilus-python/extensions/test.py is sufficient to reproduce this:

touch ~/.local/share/nautilus-python/extensions/test.py
nautilus -q
Comment 1 Adam Plumb 2017-12-04 14:19:30 UTC
Thanks for the report, I have a fix for this in mind that I'm pretty sure will work.
Comment 2 Adam Plumb 2017-12-05 23:52:05 UTC
I've fixed this in master.