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
445 stars 127 forks source link

air_modes_swig #16

Closed Jorel15 closed 12 years ago

Jorel15 commented 12 years ago

Hello,

After downloading and building the project, here is the error that appears during the execution of uhd_modes.py:

etudiant@ubuntu:~/gr-air-modes/build/apps$ uhd_modes.py

Traceback (most recent call last): File "/usr/local/bin/uhd_modes.py", line 30, in import air_modes File "/usr/local/lib/python2.7/dist-packages/air_modes/init.py", line 50, in from air_modes_swig import * ImportError: No module named air_modes_swig

Online projet seems to be incomplete...

Thx

kylegordon commented 11 years ago

Hi Jorel15,

What did you do to resolve this error?

Kyle

bistromath commented 11 years ago

air_modes_swig.py is installed during 'make install' and on Ubuntu 12.xx will be found at: /usr/local/lib/python2.7/dist-packages/air_modes/air_modes_swig.py

Did you execute 'make install'? Does your system have air_modes_swig.py in /usr/local/lib/python2.7/dist-packages/air_modes?

Jorel15 commented 11 years ago

I had not the good version of GNU Radio installed in my computer (I had a temporary version). That's why this error occured.

kylegordon commented 11 years ago

ahaa, I'm thinking it was due to not having Swig binaries installed prior to the build :-) A quick apt-get install fixed it!

zavarzin commented 11 years ago

I have the same problem with air_modes_swig under Debian Wheezy AMD64 $ modes_rx Traceback (most recent call last): File "/usr/local/bin/modes_rx", line 30, in import air_modes File "/usr/local/lib/python2.7/dist-packages/air_modes/init.py", line 50, in from air_modes_swig import * ImportError: No module named air_modes_swig $ sudo ls -l /usr/local/lib/python2.7/dist-packages/air_modes итого 436 -rw-r--r-- 1 root staff 4190 Май 1 10:42 altitude.py -rw-r--r-- 1 root staff 2351 Май 1 10:43 altitude.pyc -rw-r--r-- 1 root staff 2351 Май 1 10:43 altitude.pyo -rw-r--r-- 1 root staff 8512 Май 1 10:42 az_map.py -rw-r--r-- 1 root staff 9230 Май 1 10:43 az_map.pyc -rw-r--r-- 1 root staff 9230 Май 1 10:43 az_map.pyo -rw-r--r-- 1 root staff 10628 Май 1 10:42 cpr.py -rw-r--r-- 1 root staff 8896 Май 1 10:43 cpr.pyc -rw-r--r-- 1 root staff 8896 Май 1 10:43 cpr.pyo -rw-r--r-- 1 root staff 1259 Май 1 10:42 exceptions.py -rw-r--r-- 1 root staff 2042 Май 1 10:43 exceptions.pyc -rw-r--r-- 1 root staff 2042 Май 1 10:43 exceptions.pyo -rw-r--r-- 1 root staff 9158 Май 1 10:42 flightgear.py -rw-r--r-- 1 root staff 7905 Май 1 10:43 flightgear.pyc -rw-r--r-- 1 root staff 7905 Май 1 10:43 flightgear.pyo -rw-r--r-- 1 root staff 9160 Май 1 10:42 gui_model.py -rw-r--r-- 1 root staff 7565 Май 1 10:43 gui_model.pyc -rw-r--r-- 1 root staff 7565 Май 1 10:43 gui_model.pyo -rw-r--r-- 1 root staff 2723 Май 1 10:42 init.py -rw-r--r-- 1 root staff 1659 Май 1 10:43 init.pyc -rw-r--r-- 1 root staff 1659 Май 1 10:43 init.pyo -rw-r--r-- 1 root staff 7389 Май 1 10:42 kml.py -rw-r--r-- 1 root staff 5723 Май 1 10:43 kml.pyc -rw-r--r-- 1 root staff 5723 Май 1 10:43 kml.pyo -rw-r--r-- 1 root staff 11425 Май 1 10:42 mlat.py -rw-r--r-- 1 root staff 7728 Май 1 10:43 mlat.pyc -rw-r--r-- 1 root staff 7728 Май 1 10:43 mlat.pyo -rw-r--r-- 1 root staff 0 Май 1 10:58 modes_rx_ui.py -rw-r--r-- 1 root staff 145 Май 1 10:58 modes_rx_ui.pyc -rw-r--r-- 1 root staff 145 Май 1 10:58 modes_rx_ui.pyo -rw-r--r-- 1 root staff 8651 Май 1 10:42 msprint.py -rw-r--r-- 1 root staff 8481 Май 1 10:43 msprint.pyc -rw-r--r-- 1 root staff 8481 Май 1 10:43 msprint.pyo -rw-r--r-- 1 root staff 16209 Май 1 10:42 parse.py -rw-r--r-- 1 root staff 19365 Май 1 10:43 parse.pyc -rw-r--r-- 1 root staff 19365 Май 1 10:43 parse.pyo -rw-r--r-- 1 root staff 12132 Май 1 10:42 Quaternion.py -rw-r--r-- 1 root staff 13918 Май 1 10:43 Quaternion.pyc -rw-r--r-- 1 root staff 13918 Май 1 10:43 Quaternion.pyo -rw-r--r-- 1 root staff 1581 Май 1 10:42 raw_server.py -rw-r--r-- 1 root staff 1766 Май 1 10:43 raw_server.pyc -rw-r--r-- 1 root staff 1766 Май 1 10:43 raw_server.pyo -rw-r--r-- 1 root staff 2245 Май 1 10:42 rx_path.py -rw-r--r-- 1 root staff 1418 Май 1 10:43 rx_path.pyc -rw-r--r-- 1 root staff 1418 Май 1 10:43 rx_path.pyo -rw-r--r-- 1 root staff 7220 Май 1 10:42 sbs1.py -rw-r--r-- 1 root staff 6809 Май 1 10:43 sbs1.pyc -rw-r--r-- 1 root staff 6809 Май 1 10:43 sbs1.pyo -rw-r--r-- 1 root staff 5223 Май 1 10:42 sql.py -rw-r--r-- 1 root staff 4158 Май 1 10:43 sql.pyc -rw-r--r-- 1 root staff 4158 Май 1 10:43 sql.pyo

I have done make install of course.

vsandilya commented 10 years ago

Same issue here. After building the project, I ran make, make install and sudo ldconfig. Running ./modes_rx produces an error that says "ImportError: No module names air_modes".

Running Fedora 17. I don't see a "air_modes_swig.py" in "/usr/local/lib/pyhton2.7/site-packages/air_modes"

Jorel15 commented 10 years ago

Make sure the GNU Radio version installed in your computer is OK. Some links for downloading GNU Radio toolkit on the web don't work well and are incomplete. After reinstalling GNU Radio software, a full version one, I didn't have this probelm anymore.