gr-air-modes icon indicating copy to clipboard operation
gr-air-modes copied to clipboard

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

Open n7tae opened this issue 8 years ago • 9 comments

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.

n7tae avatar Nov 23 '16 04:11 n7tae

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?

Krastanov avatar Dec 09 '16 22:12 Krastanov

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784513

User TheCompiler suggest QtWebKit will eventually be removed from PyQt5: http://askubuntu.com/questions/840318/importerror-no-module-named-pyqt4-qtwebkit

n7tae avatar Dec 10 '16 16:12 n7tae

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

Thanks,

Sebastian

niehauss avatar Mar 27 '17 04:03 niehauss

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.

bistromath avatar Mar 27 '17 17:03 bistromath

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.

Krastanov avatar Mar 27 '17 19:03 Krastanov

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.

JWCampbell avatar Jul 25 '17 18:07 JWCampbell

I was holding off on this until Gnuradio finally moves to Python 3. Also because I'm lazy. =) If you'd like to take a stab at it I'm happy to merge it in.

On Tue, Jul 25, 2017 at 11:06 AM JWCampbell [email protected] wrote:

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.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/bistromath/gr-air-modes/issues/98#issuecomment-317819519, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYZq3M6FTzEY_i5Ubs9JM3IqTxM4k_bks5sRi6lgaJpZM4K6NM1 .

bistromath avatar Jul 25 '17 18:07 bistromath

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

jayeye avatar May 26 '19 18:05 jayeye

The modes_gui component was never much used, and I haven't had the bandwidth to maintain it to keep up with GUI toolkit changes. I should probably deprecate it.

On Sun, May 26, 2019 at 11:30 AM jayeye [email protected] wrote:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bistromath/gr-air-modes/issues/98?email_source=notifications&email_token=AADBTK6LRT4EPGRDZN6B77TPXLJL7A5CNFSM4CXI2M22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWIK7KQ#issuecomment-496021418, or mute the thread https://github.com/notifications/unsubscribe-auth/AADBTKZ6CUVDAJULABPRF53PXLJL7ANCNFSM4CXI2M2Q .

bistromath avatar May 28 '19 17:05 bistromath