[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] ValueError: PyCapsule_GetPointer called with incorrect name
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2020-04-24 10:32:11
Message-ID: c55b8d0a7ccd5b1b8b8c7def3244fe19 () riverbankcomputing ! com
[Download RAW message or body]

On 24/04/2020 07:10, Patrick Stinson wrote:
> When I import my sip extension module (named "_pkdiagram") on windows
> I get the following error:
> 
> 
> C:\Users\patrick\Desktop\familydiagram\_pkdiagram>python -c "import 
> _pkdiagram"
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> SystemError: initialization of _pkdiagram failed without raising an 
> exception
> 
> 
> Turns out the mod init function fails without setting an exception
> when it can't find "_C_API" on the sip module - the call returns null.
> 
> sip_capiobj = PyDict_GetItemString(PyModule_GetDict(sip_sipmod), 
> "_C_API");
> 
> Any ideas?

I'll fix the lack of exception in SIP v5.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic