sip 6.8.0+: AttributeError: 'WrappedClass' object has no attribute 'original_typedef'

Phil Thompson phil at riverbankcomputing.com
Sat Dec 9 10:41:01 GMT 2023


On 09/12/2023 02:36, Scott Talbert wrote:
> On Fri, 8 Dec 2023, Phil Thompson wrote:
> 
> Next issue:
> 
> [786/940] Compiling sip/cap/sip_richtextwxTextAttrBorders.cpp
> ../../../../sip/cpp/sip_richtextwxRichTextProperties.cpp: In function
> ‘PyObject* meth_wxRichTextProperties_SetProperty(PyObject*, PyObject*,
> PyObject*)’:
> ../../../../sip/cpp/sip_richtextwxRichTextProperties.cpp:738:21:
> error: invalid ‘const_cast’ from type ‘int’ to type ‘wchar_t*’
>   738 |             sipFree(const_cast<wchar_t *>(1));
>       |                     ^~~~~~~~~~~~~~~~~~~~~~~~
> 
> Waf: Leaving directory
> `/home/talbert/wxPython/doxygen/Phoenix.sip680/build/waf/3.12/gtk3'
> Build failed
>  -> task in '_richtext' failed with exit status 1 (run with -v to
> display more information)
> 
> The file is attached.  It looks like with sip 6.7, the inner argument
> was 'value' not '1'.  Let me know if you need further details.

Now fixed in the repo.

See also...

https://www.riverbankcomputing.com/pipermail/pyqt/2023-October/045557.html

...so you could identify all potential issues in one sweep rather than 
finding them one at a time.

Thanks,
Phil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sip_richtextwxRichTextProperties.cpp
Type: text/x-c++src
Size: 37760 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20231209/f771cec9/attachment-0001.cpp>


More information about the PyQt mailing list