bistromath / gr-air-modes

Gnuradio Mode-S/ADS-B radio
This project implements a Mode S receiver for the Gnuradio software-defined radio project. It is designed to receive Mode S transmissions from aircraft and decode them to a human-readable format, including ADS-B information messages such as position and a
GNU General Public License v3.0
438 stars 126 forks source link

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

Open n7tae opened 7 years ago

n7tae commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

niehauss commented 7 years ago

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

Thanks,

Sebastian

bistromath commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 notifications@github.com 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 .

jayeye commented 5 years ago

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

bistromath commented 5 years ago

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 notifications@github.com 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 .