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

Phil Thompson phil at riverbankcomputing.com
Mon Dec 11 12:18:29 GMT 2023


On 09/12/2023 16:18, Scott Talbert wrote:
> On Sat, 9 Dec 2023, Phil Thompson wrote:
> 
>> On 09/12/2023 14:53, Scott Talbert wrote:
>>> On Sat, 9 Dec 2023, Phil Thompson wrote:
>>> 
>>>> 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.  Sorry for forgetting about that note.  I've attached a
>>> diff of wxPython's cpp files (sip 6.7.12 vs 6.8.0+) after your latest
>>> fixes. Of the differences, the only things that look concerning to me
>>> are the changes in sip_advcmodule.cpp and sip_richtextcmodule.cpp.
>>> 
>>> Let me know if you need more details on those.
>> 
>> Can you send me the .sip files that mention TimePickerCtrlNameStr and 
>> RichTextLineBreakChar?
>> 
>> The other (benign) issue is the duplicated #includes of some header 
>> files. Can you send me the .sip file for ScrolledWindowBase?
> 
> Attached.
> 
> Thanks,
> Scott

I think all of these are now fixed in the current repo.

Thanks,
Phil


More information about the PyQt mailing list