That should just return without printing anything. If you get an error, gtksourceview isn't working. It's difficult to know what the cause is... perhaps you compiled pygtksourceview against one version of sourceview, but are running with a different version?
import gtksourceview
Try importing it manually:
That should just return without printing anything. If you get an error, gtksourceview isn't working. It's difficult to know what the cause is... perhaps you compiled pygtksourceview against one version of sourceview, but are running with a different version?