Errpr when creating a Python plugin for an app in Vala

I was researching about libpeas in Vala, and following this guide I created a small test app. When I created the first plugin in Vala, everything worked correctly. However, when I created the second one in Python, I got a warning and the app never started.

The warning I get is as follows:

/usr/lib/python3.9/site-packages/gi/ Warning: cannot register existing type 'PtaExtension'
  g_type = info.get_g_type()
/usr/lib/python3.9/site-packages/gi/ Warning: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed
  g_type = info.get_g_type()
/usr/lib/python3.9/site-packages/gi/ Warning: g_once_init_leave: assertion 'result != 0' failed
  g_type = info.get_g_type()
/usr/lib/python3.9/site-packages/gi/ Warning: g_type_get_qdata: assertion 'node != NULL' failed
  type_ = g_type.pytype

And the app code is located here.

Could someone help me determine why this is happening?

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