[PyQt] QtDBus: Unable to convert Array of Object Paths

Phil Thompson phil at riverbankcomputing.com
Sun Dec 4 14:04:31 GMT 2011


On Sun, 04 Dec 2011 12:52:47 +0000, Chris Mayo
<cjmayo at users.sourceforge.net> wrote:
> On 04/12/11 05:34, Phil Thompson wrote:
>> On Fri, 02 Dec 2011 17:37:50 +0000, Chris Mayo
>> <cjmayo at users.sourceforge.net>  wrote:
>>> On 02/12/11 01:42, Phil Thompson wrote:
>>>> On Thu, 01 Dec 2011 20:20:34 +0000, Chris Mayo
>>>> <cjmayo at users.sourceforge.net>   wrote:
>>>>> Can't get ee8b9c7eb565 to compile:
>>>>>
>>>>> Generating the C++ source for the QtDBus module...
>>>>> sip:
>>>>>
>>>>
>>
/var/tmp/portage/dev-python/PyQt4-4.9_pre20111201/work/PyQt-x11-gpl-snapshot-4.9-ee8b9c7eb565-2.7/sip/QtDBus/qdbusextratypes.sip:95:
>>>>>
>>>>> A class, exception, namespace or mapped type has already been
defined
>>>>> with the same name
>>>>> Error: Unable to create the C++ code.
>>>>
>>>> This might have been due to a build problem. Try downloading the
>> snapshot
>>>> again (even though it has the same name).
>>>>
>>>> Phil
>>>
>>> After downloading again a lot of different errors, just the first few:
>>
>> Sorry about that - it isn't triggered the way I normally build. Current
>> snapshot should be Ok.
> 
> No luck with 65564eb2fcf4 either:
> 
> x86_64-pc-linux-gnu-g++ -c -march=core2 -msse4.1 -ftree-vectorize -O2 
> -pipe -fPIC -Wall -W -D_REENTRANT -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC 
> -Dprotected=public -DQT_NO_DEBUG -DQT_CORE_LIB -I. 
>
-I/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/qpy/QtDBus
> 
> -I/usr/include/python2.7 -I/usr/mkspecs/linux-g++ 
> -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtCore -I/usr/include/qt4 
> -o sipQtDBusQDBusObjectPath.o sipQtDBusQDBusObjectPath.cpp
>
/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp:
> 
> In function ‘PyObject* meth_QDBusVariant_variant(PyObject*, PyObject*)’:
>
/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp:45:15:
> 
> error: ‘QDBusVariant’ does not name a type
>
/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp:47:87:
> 
> error: ‘sipCpp’ was not declared in this scope
> ...

I can't reproduce this. This is with Qt v4.8.0rc but I don't think
QDBusVariant or qdbusextratypes.h has changed recently.

Phil


More information about the PyQt mailing list