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

modes_gui; ImportError: cannot import name Ui_MainWindow #23

Closed TheGuv closed 11 years ago

TheGuv commented 11 years ago

Traceback (most recent call last): File "/usr/local/bin/modes_gui", line 30, in from air_modes.modes_rx_ui import Ui_MainWindow ImportError: cannot import name Ui_MainWindow

modes_rx_ui.py appears to be empty in HEAD (3a358b2334) - any clues?

'guv

bistromath commented 11 years ago

Try modes_gui.

On Tue, Oct 16, 2012 at 12:34 PM, Steve Brown notifications@github.comwrote:

Traceback (most recent call last): File "/usr/local/bin/modes_gui", line 30, in from air_modes.modes_rx_ui import Ui_MainWindow ImportError: cannot import name Ui_MainWindow

modes_rx_ui.py appears to be empty in HEAD (3a358b2https://github.com/bistromath/gr-air-modes/commit/3a358b2334)

  • any clues?

'guv

— Reply to this email directly or view it on GitHubhttps://github.com/bistromath/gr-air-modes/issues/23.

bistromath commented 11 years ago

Crap ignore that. Hold on.

On Tue, Oct 16, 2012 at 12:36 PM, Nick Foster bistromath@gmail.com wrote:

Try modes_gui.

On Tue, Oct 16, 2012 at 12:34 PM, Steve Brown notifications@github.comwrote:

Traceback (most recent call last): File "/usr/local/bin/modes_gui", line 30, in from air_modes.modes_rx_ui import Ui_MainWindow ImportError: cannot import name Ui_MainWindow

modes_rx_ui.py appears to be empty in HEAD (3a358b2https://github.com/bistromath/gr-air-modes/commit/3a358b2334)

  • any clues?

'guv

— Reply to this email directly or view it on GitHubhttps://github.com/bistromath/gr-air-modes/issues/23.

bistromath commented 11 years ago

Do you have pyuic4 installed? If not, it might bomb.

On Tue, Oct 16, 2012 at 12:36 PM, Nick Foster bistromath@gmail.com wrote:

Crap ignore that. Hold on.

On Tue, Oct 16, 2012 at 12:36 PM, Nick Foster bistromath@gmail.comwrote:

Try modes_gui.

On Tue, Oct 16, 2012 at 12:34 PM, Steve Brown notifications@github.comwrote:

Traceback (most recent call last): File "/usr/local/bin/modes_gui", line 30, in from air_modes.modes_rx_ui import Ui_MainWindow ImportError: cannot import name Ui_MainWindow

modes_rx_ui.py appears to be empty in HEAD (3a358b2https://github.com/bistromath/gr-air-modes/commit/3a358b2334)

  • any clues?

'guv

— Reply to this email directly or view it on GitHubhttps://github.com/bistromath/gr-air-modes/issues/23.

TheGuv commented 11 years ago

Yep, pyuic4 is installed: Python User Interface Compiler 4.9.1 for Qt version 4.8.1

bistromath commented 11 years ago

In the gr-air-modes/build/res directory, verify that modes_rx_ui.py and modes_rx_ui_borked.py are both present and contain something that looks like python.

On Tue, Oct 16, 2012 at 2:05 PM, Steve Brown notifications@github.comwrote:

Yep, pyuic4 is installed: Python User Interface Compiler 4.9.1 for Qt version 4.8.1

— Reply to this email directly or view it on GitHubhttps://github.com/bistromath/gr-air-modes/issues/23#issuecomment-9506802.

TheGuv commented 11 years ago

They are both empty. I did mention that modes_rx_ui.py was empty originally but on re-reading it might have been a tad ambiguous - sorry...

bistromath commented 11 years ago

can you make clean and make VERBOSE=1 and paste the output?

On Tue, Oct 16, 2012 at 2:21 PM, Steve Brown notifications@github.comwrote:

They are both empty. I did mention that modes_rx_ui.py was empty originally but on re-reading it might have been a tad ambiguous - sorry...

— Reply to this email directly or view it on GitHubhttps://github.com/bistromath/gr-air-modes/issues/23#issuecomment-9507366.

TheGuv commented 11 years ago

Sure:

cd /usr/src/gnuradio/gr-air-modes/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /usr/src/gnuradio/gr-air-modes /usr/src/gnuradio/gr-air-modes/res /usr/src/gnuradio/gr-air-modes/build /usr/src/gnuradio/gr-air-modes/build/res /usr/src/gnuradio/gr-air-modes/build/res/CMakeFiles/rx_ui.dir/DependInfo.cmake --color= make[2]: Leaving directory /usr/src/gnuradio/gr-air-modes/build' make -f res/CMakeFiles/rx_ui.dir/build.make res/CMakeFiles/rx_ui.dir/build make[2]: Entering directory/usr/src/gnuradio/gr-air-modes/build' make[2]: Nothing to be done for res/CMakeFiles/rx_ui.dir/build'. make[2]: Leaving directory/usr/src/gnuradio/gr-air-modes/build' /usr/bin/cmake -E cmake_progress_report /usr/src/gnuradio/gr-air-modes/build/CMakeFiles 19 20 [100%] Built target rx_ui make[1]: Leaving directory `/usr/src/gnuradio/gr-air-modes/build' /usr/bin/cmake -E cmake_progress_start /usr/src/gnuradio/gr-air-modes/build/CMakeFiles 0

bistromath commented 11 years ago

It's not building anything. Maybe delete the whole build dir and re-cmake things? If you make clean it should have something to do there. You're executing "make" from the build/ dir and not build/res, right?

On Tue, Oct 16, 2012 at 2:26 PM, Steve Brown notifications@github.comwrote:

Sure:

cd /usr/src/gnuradio/gr-air-modes/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /usr/src/gnuradio/gr-air-modes /usr/src/gnuradio/gr-air-modes/res /usr/src/gnuradio/gr-air-modes/build /usr/src/gnuradio/gr-air-modes/build/res /usr/src/gnuradio/gr-air-modes/build/res/CMakeFiles/rx_ui.dir/DependInfo.cmake --color= make[2]: Leaving directory /usr/src/gnuradio/gr-air-modes/build' make -f res/CMakeFiles/rx_ui.dir/build.make res/CMakeFiles/rx_ui.dir/build make[2]: Entering directory/usr/src/gnuradio/gr-air-modes/build' make[2]: Nothing to be done for res/CMakeFiles/rx_ui.dir/build'. make[2]: Leaving directory/usr/src/gnuradio/gr-air-modes/build' /usr/bin/cmake -E cmake_progress_report /usr/src/gnuradio/gr-air-modes/build/CMakeFiles 19 20 [100%] Built target rx_ui make[1]: Leaving directory `/usr/src/gnuradio/gr-air-modes/build' /usr/bin/cmake -E cmake_progress_start /usr/src/gnuradio/gr-air-modes/build/CMakeFiles 0

— Reply to this email directly or view it on GitHubhttps://github.com/bistromath/gr-air-modes/issues/23#issuecomment-9507532.

TheGuv commented 11 years ago

Yep, I'm building from the build/ dir.

Ok, I've nuked it, cloned a fresh copy and it built fine despite already being built from scratch a couple of times - thanks for the suggestion.

Now the only trouble I have is not receiving anything despite being 20 miles from Heathrow and under the flightpath. I have a feeling this is due to my dongle having an R820T tuner. I've noticed the command-line version modes_rx seems to ignore the gain setting and always shows as gain 0, but that's for another day ;)

bistromath commented 11 years ago

Not sure if that tuner locks up at 1090MHz or not. I know the E4000 is OK but I haven't tried others.

On Tue, Oct 16, 2012 at 2:48 PM, Steve Brown notifications@github.comwrote:

Yep, I'm building from the build/ dir.

Ok, I've nuked it, cloned a fresh copy and it built fine - thanks for the suggestion.

Now the only trouble I have is not receiving anything despite being 20 miles from Heathrow and under the flightpath. I have a feeling this is due to my dongle having an R820T tuner. I've noticed the command-line version modes_rx seems to ignore the gain setting and always shows as gain 0, but that's for another day ;)

— Reply to this email directly or view it on GitHubhttps://github.com/bistromath/gr-air-modes/issues/23#issuecomment-9508283.

TheGuv commented 11 years ago

Yeah, according to the thread about the driver it's officially rated to 1002MHz but like the e4k do much better; they cover 24 MHz to 1766 MHz (with lots of gaps from 1850-1860 and 1900-2100). Apparently setting gain manually is not yet supported...

bistromath commented 11 years ago

AGC is going to screw up gr-air-modes pretty bad, depending on the time constant, since it depends on a constant noise floor to find packets. If you wanted to experiment with gnuradio-companion, the flowgraph would be RTL source -> complex-to-mag -> WX FFT sink, then use the trigger to find Mode S packets.

On Tue, Oct 16, 2012 at 3:06 PM, Steve Brown notifications@github.comwrote:

Yeah, according to the thread about the driver it's officially rated to 1002MHz but like the e4k do much better; they cover 24 MHz to 1766 MHz (with lots of gaps from 1850-1860 and 1900-2100). Apparently setting gain manually is not yet supported...

— Reply to this email directly or view it on GitHubhttps://github.com/bistromath/gr-air-modes/issues/23#issuecomment-9508839.