shiboken warnings and missing classes

27 views
Skip to first unread message

Ravi Jagannadhan

unread,
Jul 24, 2018, 9:21:02 PM7/24/18
to python_in...@googlegroups.com
Hi all, my apologies if this isn't the right place to ask this, but I'm at my wits end and I'm sure I'm missing something simple here. I'm trying to use Shiboken to build Python bindings. I'm using the widget example on Qt's website: 


and when I run shiboken2 on the class, I get a litany of (I assume benign) warnings, like: 

qt.shiboken: type 'QSizeF' is specified in typesystem, but not defined. This could potentially lead to compilation errors. 

The reject log for the classes is the precise class I needed wrapped, with the message, "Type redefined to not be a class". It's unclear to me why this is happening, does anyone here have any ideas?

Thank you for your time,
Ravi
--
Where we have strong emotions, we're liable to fool ourselves - Carl Sagan

Justin Israel

unread,
Jul 24, 2018, 10:14:41 PM7/24/18
to python_in...@googlegroups.com
Hey Ravi,

I have worked on a project that provides shiboken 1/2 python bindings, and my experience with shiboken is that it is poorly documented and hard to use :-/ And to be honest, the huge number of warnings you are seeing is something we are used to as well. A build of our project shows more than 900 warnings, but still functions as it is meant to. I see things like:
  • enum does not have a type entry...
  • Unable to decide type of property:
  • namespace does not have type entry
  • skipping field..
  • skipping function...
  • horribly broken type ''
  • signal is overloaded
  • class inherits from unknown base class
  • template baseclass is not known
  • Shadowing:
  • visibility of function modified in class
  • hiding of function in class
  • type is specified in typesystem but not defined
That last one *could* imply that you have specified a type in your xml file that was given to shiboken, but the headers defining that type haven't been provided.

Using shiboken is a dark art.

Justin


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CADHeb2Zm_7NmsOJe09ABJNk%3DmDS3mrpf6Wb%3D7eR_CRDBKzng4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ravi Jagannadhan

unread,
Jul 24, 2018, 10:30:33 PM7/24/18
to python_in...@googlegroups.com
Hi Justin, thanks. The issue seems to be in the typesystem XML file, I didn't add the object line. My next question, and I'm really sorry for how stupid this will sound.... is Shiboken supposed to generate .py files? Or is there some other process that makes them?

Ravi

To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1WpKk_Qkpc5SWiCVvOUtBtbLdw1t5xqjYrHEXhPT-UNg%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

Justin Israel

unread,
Jul 24, 2018, 10:42:10 PM7/24/18
to python_in...@googlegroups.com
On Wed, Jul 25, 2018 at 2:30 PM Ravi Jagannadhan <enr...@gmail.com> wrote:
Hi Justin, thanks. The issue seems to be in the typesystem XML file, I didn't add the object line. My next question, and I'm really sorry for how stupid this will sound.... is Shiboken supposed to generate .py files? Or is there some other process that makes them?

No need to apologize. I have to offer my sympathy for your journey into shiboken-land.

Actually what you get from shiboken is more headers and cpp wrapper files, which you then compile as a plugin linking against python, to produce a python compiled extension. So there are more steps, and no py files unfortunately. 

To simplify:

C++ headers -> shiboken -> wrapper headers/source
C++ headers/source + wrapper headers/source -> link Python -> myExt.so
 
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
Where we have strong emotions, we're liable to fool ourselves - Carl Sagan

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CADHeb2YAQu2oyTbaRFnTZXt%3DoL-YCfi6gjcN8aA-PqQDfVSBgQ%40mail.gmail.com.

Ravi Jagannadhan

unread,
Jul 24, 2018, 11:44:09 PM7/24/18
to python_in...@googlegroups.com
Darn, okay, I'll keep digging. Thanks Justin.

To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
Where we have strong emotions, we're liable to fool ourselves - Carl Sagan

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3hnc%3D1ZMgFQ4R%3DFRUX8PPadRWeD%3Dj60FwMR5og1Kzc-Q%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages