Bugreport: QDBusArgument does not work with PyQt6

Phil Thompson phil at riverbankcomputing.com
Fri Jul 1 21:52:26 BST 2022


I'm also using a fresh venv (on Ubuntu). I don't have the portal thing 
installed.

Phil

On 01/07/2022 19:05, JakobDev wrote:
> I'm using the latest version. The crash is reproducible in a fresh 
> venv.
> 
> 
> [jakob at Jakobs-PC ~]$ python -m venv /tmp/venv
> [jakob at Jakobs-PC ~]$ source /tmp/venv/bin/activate
> (venv) [jakob at Jakobs-PC ~]$ pip install PyQt6
> Collecting PyQt6
>   Downloading PyQt6-6.3.1-cp37-abi3-manylinux1_x86_64.whl (7.8 MB)
>      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.8/7.8 MB 5.4 MB/s eta 
> 0:00:00
> Collecting PyQt6-Qt6>=6.3.0
>   Downloading PyQt6_Qt6-6.3.1-py3-none-manylinux_2_28_x86_64.whl (52.4 
> MB)
>      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 52.4/52.4 MB 6.3 MB/s eta 
> 0:00:00
> Collecting PyQt6-sip<14,>=13.4
>   Downloading PyQt6_sip-13.4.0-cp310-cp310-manylinux1_x86_64.whl (310 
> kB)
>      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 310.6/310.6 KB 6.2 MB/s
> eta 0:00:00
> Installing collected packages: PyQt6-Qt6, PyQt6-sip, PyQt6
> Successfully installed PyQt6-6.3.1 PyQt6-Qt6-6.3.1 PyQt6-sip-13.4.0
> WARNING: You are using pip version 22.0.4; however, version 22.1.2 is 
> available.
> You should consider upgrading via the '/tmp/venv/bin/python -m pip
> install --upgrade pip' command.
> (venv) [jakob at Jakobs-PC ~]$ python ./dbus.py
> QDBusMarshaller: type `PyQt_PyObject' (65729) is not registered with
> D-BUS. Use qDBusRegisterMetaType to register it
> (venv) [jakob at Jakobs-PC ~]$
> 
> 
> The OS is Manjaro.
> 
> 
> Am 30.06.22 um 23:05 schrieb Phil Thompson:
>> On 30/06/2022 18:55, JakobDev wrote:
>>> This is strange. It crashes with message.setArguments() before it 
>>> send
>>> anything, so there is nothing dbus-monitor could show. I have now
>>> attached a simpler code. The line
>>> arg.add(QDBusVariant(QByteArray(b"Hello"))) is the culprit. If I 
>>> comment
>>> them out, it doesn't crash.- Also no crash under PyQt5 with this 
>>> line.
>> 
>> I don't get any crash. I assume you are using the latest version.
>> 
>> Phil


More information about the PyQt mailing list