Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'QtWebEngineWidgets' from 'PyQt5' #15

Closed
sirlattwich opened this issue Nov 5, 2019 · 1 comment
Closed

Comments

@sirlattwich
Copy link

2019-11-05 15_14_21-sirlattwich@sirlattwich-ntp_~_Downloads_admbrowser

[sirlattwich@sirlattwich-ntp admbrowser]$ python admbrowser.py Traceback (most recent call last): File "admbrowser.py", line 1, in <module> from admbrowser import main File "/home/sirlattwich/Downloads/admbrowser/admbrowser/__init__.py", line 1, in <module> from .browser import * File "/home/sirlattwich/Downloads/admbrowser/admbrowser/browser.py", line 21, in <module> from PyQt5 import QtWebEngineWidgets as qtwe ImportError: cannot import name 'QtWebEngineWidgets' from 'PyQt5' (/usr/lib/python3.7/site-packages/PyQt5/__init__.py)

Root cause: https://stackoverflow.com/questions/37876987/cannot-import-qtwebkitwidgets-in-pyqt5

Solution: Add "python-pyqtwebengine" to requirements
https://www.archlinux.org/packages/extra/x86_64/python-pyqtwebengine/

@alandmoore
Copy link
Owner

I've added the proper import to requirements.txt. I'll look into the AUR packaging issue separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants