ValueError: Namespace Gtk is already loaded with version 3.0

I’m sure I’ve missed an implication but…

Why does the graphic interface toolkit need to be loaded when using the command line interface to execute a SuperTool script?

Maybe this is question to @kku ? Im not sure that I understand your question correctly, but where did you see that?

looks like here ))
I have no answer )))

As far as I understand this has nothing to do with Supertool. When any tool is invoked from the command line the Gramps code executes this import statement:

from gramps.gui.plug import tool

And this causes Gramps to eventually call for example

from gi.repository import Gtk

So some Gtk code is called also in the command line mode - even when it is not used for anything!

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.