Not able to create a subclass of Soup.Message (libsoup3)
Same code worked with libsoup 2.4, but now fails, i suspect they did something so introspection maybe does not work anymore correctly, but wanted to ask here first, maybe someone knows how to formulate the problem, i guess they would not much care for python stacktraces.
import gi
gi.require_version('Soup', '3.0')
from gi.repository import Soup
class A(Soup.Message):
pass
x = A()
yields
/usr/lib/python3/dist-packages/gi/types.py:217: Warning: cannot derive '__main__+A' from final parent type 'SoupMessage'
_gi.type_register(cls, namespace.get('__gtype_name__'))
Traceback (most recent call last):
File "/home/lovetox/projects/tests/data.py", line 7, in <module>
class A(Soup.Message):
File "/usr/lib/python3/dist-packages/gi/types.py", line 226, in __init__
super(GObjectMeta, cls).__init__(name, bases, dict_)
File "/usr/lib/python3/dist-packages/gi/types.py", line 205, in __init__
cls._type_register(cls.__dict__)
File "/usr/lib/python3/dist-packages/gi/types.py", line 217, in _type_register
_gi.type_register(cls, namespace.get('__gtype_name__'))
RuntimeError: could not create new GType: __main__+A (subclass of SoupMessage)