Qt6 WebEngine: Can't combine QWebEngineUrlScheme.Flag

Florian Bruhin me at the-compiler.org
Thu Aug 26 16:00:39 BST 2021


Hi,

I could indeed install PyQt6's QtWebEngine with --no-deps and now trying
to get qutebrowser to run with it (at least as a quick and dirty hack) :)

Here's a first issue I found:

    >>> from PyQt6.QtWebEngineCore import QWebEngineUrlScheme
    >>> QWebEngineUrlScheme.Flag.LocalScheme
    <Flag.LocalScheme: 2>
    >>> QWebEngineUrlScheme.Flag.LocalAccessAllowed
    <Flag.LocalAccessAllowed: 4>
    >>> QWebEngineUrlScheme.Flag.LocalScheme | QWebEngineUrlScheme.Flag.LocalAccessAllowed
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib/python3.9/enum.py", line 384, in __call__
        return cls.__new__(cls, value)
      File "/usr/lib/python3.9/enum.py", line 702, in __new__
        raise ve_exc
    ValueError: 6 is not a valid QWebEngineUrlScheme.Flag

Thanks,
Florian

-- 
            me at the-compiler.org | https://www.qutebrowser.org 
       https://bruhin.software/ | https://github.com/sponsors/The-Compiler/
       GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
             I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210826/d8498552/attachment-0001.sig>


More information about the PyQt mailing list