I hadn’t heard of GNU Radio before. I just now checked out http://gnuradio.org/redmine/wiki/gnuradio .


It says: “GNU Radio applications are primarily written using the Python programming language, while the supplied, performance-critical signal processing path is implemented in C++ using processor floating point extensions where available.


It sounds like GNU Radio is written in C++. That would explain why it won’t work in Jython. Jython can’t import Python modules written in C++. You have to use regular Python.


David H


From: Jim Stys [mailto:jstys92@gmail.com]
Sent: Wednesday, June 15, 2011 4:30 PM
To: jython-users@lists.sourceforge.net
Subject: [Jython-users] gnuradio ImportError issues




I haven't been able to find much documentation of anyone trying to use jython with the gnuradio software, but my issue seems very basic.  The included modules in the open source software are not being detected for whatever reason because no matter what I append using sys.path.append(), an ImportError is the result.  What is the correct procedure for including these modules?  Here are the import statements:


import sys

from gnuradio import gr, gru, eng_notation, optfir, window

from gnuradio import audio

from gnuradio import usrp

from gnuradio.eng_option import eng_option

from optparse import OptionParser

from usrpm import usrp_dbid

import math

import time

import struct