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

QtWebKit no longer in PyQt4 (for example, in Ubuntu 16.10) #98

Open
n7tae opened this issue Nov 23, 2016 · 9 comments
Open

QtWebKit no longer in PyQt4 (for example, in Ubuntu 16.10) #98

n7tae opened this issue Nov 23, 2016 · 9 comments

Comments

@n7tae
Copy link

n7tae commented Nov 23, 2016

tom@kudu:~$ modes_gui
Traceback (most recent call last):
File "/usr/local/bin/modes_gui", line 24, in
from PyQt4 import QtCore,QtGui,QtWebKit
ImportError: cannot import name QtWebKit

Work-arounds on the web suggest you can get it to work by manually installing an earlier version of the PyQt4 package (I didn't try this), or use QtWebKit from PySide (I tried this but it didn't work):

tom@kudu:~$ modes_gui
Traceback (most recent call last):
File "/usr/local/bin/modes_gui", line 33, in
from air_modes.modes_rx_ui import Ui_MainWindow
File "/usr/local/lib/python2.7/dist-packages/air_modes/modes_rx_ui.py", line 428, in
from QtWebKit.qwebview import QWebView
ImportError: No module named QtWebKit.qwebview

Links to the Debian 8 discussion seems to say developers need to switch to PyQt5.

@Krastanov
Copy link

Commenting out a few lines inside of the file permitted me to launch the software without crashes. The map does not work, as it is the part that requires the WebView.

I will see whether I can spend some time on making it work with PyQt5.

@ac2ie , could you please share the link to the Debian 8 discussion you mentioned?

@n7tae
Copy link
Author

n7tae commented Dec 10, 2016

@niehauss
Copy link

Krastanov, since I am unexperienced with pyhon but the bug hurts me too: can you suggest which lines to commemt out?

Thanks,

Sebastian

@bistromath
Copy link
Owner

Not a lot I can do about this other than reimplement the map outside QtWebKit. I'll make the map support conditional on having QtWebKit installed, so it at least runs when the map is unavailable.

@Krastanov
Copy link

There are some options that do not require reimplementation, just renaming some of the imports and fixing some API calls. I am sorry for the vagueness, I will try to respond more completely briefly.

@JWCampbell
Copy link

Any update on this issue? If nobody else is working on it, I will probably take a try at it, but it would be better if I knew I wasn't duplicating another persons effort.

@bistromath
Copy link
Owner

bistromath commented Jul 25, 2017 via email

@jayeye
Copy link

jayeye commented May 26, 2019

no progress on this bug in two years? The problem persists. Does nobody use qt-air-modes?

@bistromath
Copy link
Owner

bistromath commented May 28, 2019 via email

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

6 participants