Results 1 to 7 of 7

Thread: PyQt5 and QtWebEngine 5.12

  1. #1

    Default PyQt5 and QtWebEngine 5.12

    Hi,
    with the recent update of Qt to 5.12 for some reason qutebrowser is not working anymore.
    If I try to run it I get this error:
    Code:
    cannot import name "QtWebEngineWidgets" from "PyQt5" (/usr/lib64/python3.7/site-packages/PyQt5/init.py)
    I am using this live version https://build.opensuse.org/package/s...46/qutebrowser.

    If I try to simply import PyQt5:
    Code:
    $ python -c "import PyQt5; print(dir(PyQt5))"
    ['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__']
    

    seems that PyQt5 is not installed properly.

    I tried to reinstall:
    Code:
    # zypper install -f python3-qt5 libqt5-webengine
    

    But nothing.
    Any ideas?


    Thanks


  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,806
    Blog Entries
    1

    Default Re: PyQt5 and QtWebEngine 5.12

    Instead of installing from a home: repo where the owner might be tweaking and experimenting, why not install from the "netowrk" repo instead?

    https://software.opensuse.org/packag...rm=qutebrowser

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3

    Default Re: PyQt5 and QtWebEngine 5.12

    I tried but I get the same error.

    Thanks

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,806
    Blog Entries
    1

    Default Re: PyQt5 and QtWebEngine 5.12

    Took a look at this.
    The picture is quite clear if you install qutebrowser from Factory (and possibly other repos) which is the default when you install from https://software.opensuse.org/search/

    The qutebrowser code has not been updated since early 2017, and in the meantime security issues have been found running with the original webkit browser backend. The errors that are displayed were apparently written by someone who knows that a new QtWebkit backend should be written but did not do that himself.

    The bottom line is that when you launch qutebrowser, you either have the option to run with the original webkit backend or the non-existent Qtwebkit backend... You can use the old backend with its security issues or you shouldn't use the app at all.

    You can try submitting a bug to https://bugzilla.opensuse.org on the chance someone will be willing to do the work to create the new backend, but I wouldn't hold my breath..

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  5. #5

    Default Re: PyQt5 and QtWebEngine 5.12

    No no, let me explain.
    With qutebrowser you can choose 2 backends: WebKit and WebEngine.
    The default is WebEngine while WebKit is present by deprecated (as you said).
    After the update to Qt 5.12 (last week), for some reason, it is not able to found the WebEngine backend. While before was using it without any problem.
    But, also, I am not able to load it using plain python, as I said in my first post.
    So that's why, I think, is a problem of suse not the package.

    Hope that now I explain a bit better.

    Thanks

  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,806
    Blog Entries
    1

    Default Re: PyQt5 and QtWebEngine 5.12

    Quote Originally Posted by yellowhat46 View Post
    No no, let me explain.
    With qutebrowser you can choose 2 backends: WebKit and WebEngine.
    The default is WebEngine while WebKit is present by deprecated (as you said).
    After the update to Qt 5.12 (last week), for some reason, it is not able to found the WebEngine backend. While before was using it without any problem.
    But, also, I am not able to load it using plain python, as I said in my first post.
    So that's why, I think, is a problem of suse not the package.

    Hope that now I explain a bit better.

    Thanks
    Just me guessing,
    But I felt that there is a better than even chance that the problem is how the specific graphical widgets are accessed, not likely that the library can't be located at all.

    In fact,
    It looks like qutebrowser was targeted to run on Python 3.6 while TW is on Python 3.7... you may have to downgrade to Python 3.6. You can also ask the qutebrowser developer(s) whether there has been any testing and verification that qutebrowser can reliably run on Python 3.7

    Here is the application's project site where among various things describes qutebrowser's requirements
    https://github.com/qutebrowser/qutebrowser

    You can ask the Developers directly in the "Issues" tab, mentioning that you are installed on a rolling release that likely distributes changes sooner than most anyone else.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  7. #7

    Default Re: PyQt5 and QtWebEngine 5.12

    Just for reference:
    - issue raised on qutebrowser: https://github.com/qutebrowser/qutebrowser/issues/4601
    - bug raised on suse bug tracker: https://bugzilla.suse.com/show_bug.cgi?id=1126269

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •