Hi Guys, Thanks very much for the assistance!! The problem was that I hadn't installed the UHD binary from Ettus (I feel like a bit of an idiot, I should have worked that out). Once I did that, and included the path in my environmental variables, I no longer received any errors when running: python.exe -c "from gnuradio import uhd".
Unfortunately this hasn't cleared up my other problem. I'm still getting this error when I try to run a simple flow graph in Gnu Radio Companion: Generating: "C:\Program Files (x86)\gnuradio\bin\top_block.py" Executing: "C:\Program Files (x86)\gnuradio\bin\top_block.py" [Error 2] The system cannot find the file specified >>> Done The graph I created is very simple and is composed of: a signal source, a throttle, and a QT GUI Sink. It seems that the top_block.py is actually created (I can see it in windows explorer), but it Gnu Radio Companion doesn't seem to be able to find or run the file. Just in case it helps, I've added the file's contents below my e-mail. Do you guys have any idea as to what could be causing this? Thanks again and kind regards, Ryan #!/usr/bin/env python ################################################## # Gnuradio Python Flow Graph # Title: Top Block # Generated: Fri Apr 15 18:48:30 2011 ################################################## from PyQt4 import Qt from gnuradio import eng_notation from gnuradio import gr from gnuradio.eng_option import eng_option from gnuradio.gr import firdes from gnuradio.qtgui import qtgui from optparse import OptionParser import sip import sys class top_block(gr.top_block, Qt.QWidget): def __init__(self): gr.top_block.__init__(self, "Top Block") Qt.QWidget.__init__(self) self.setWindowTitle("Top Block") self.setWindowIcon(Qt.QIcon.fromTheme('gnuradio-grc')) self.top_layout = Qt.QVBoxLayout(self) self.top_grid_layout = Qt.QGridLayout() self.top_layout.addLayout(self.top_grid_layout) ################################################## # Variables ################################################## self.samp_rate = samp_rate = 32000 ################################################## # Blocks ################################################## self.qtgui_sink_x_0 = qtgui.sink_c( 1024, #fftsize firdes.WIN_BLACKMAN_hARRIS, #wintype 0, #fc samp_rate, #bw "QT GUI Plot", #name True, #plotfreq True, #plotwaterfall True, #plotwaterfall3d True, #plottime True, #plotconst ) self._qtgui_sink_x_0_win = sip.wrapinstance(self.qtgui_sink_x_0.pyqwidget(), Qt.QWidget) self.top_layout.addWidget(self._qtgui_sink_x_0_win) self.gr_throttle_0 = gr.throttle(gr.sizeof_gr_complex*1, samp_rate) self.gr_sig_source_x_0 = gr.sig_source_c(samp_rate, gr.GR_COS_WAVE, 1000, 1, 0) ################################################## # Connections ################################################## self.connect((self.gr_sig_source_x_0, 0), (self.gr_throttle_0, 0)) self.connect((self.gr_throttle_0, 0), (self.qtgui_sink_x_0, 0)) def get_samp_rate(self): return self.samp_rate def set_samp_rate(self, samp_rate): self.samp_rate = samp_rate self.gr_sig_source_x_0.set_sampling_freq(self.samp_rate) self.qtgui_sink_x_0.set_frequency_range(0, self.samp_rate) if __name__ == '__main__': parser = OptionParser(option_class=eng_option, usage="%prog: [options]") (options, args) = parser.parse_args() qapp = Qt.QApplication(sys.argv) tb = top_block() tb.start() tb.show() qapp.exec_() On Fri, Apr 15, 2011 at 5:57 PM, Marcus D. Leech <mle...@ripnet.com> wrote: > On 15/04/2011 11:51 AM, Josh Blum wrote: > >> >> FWIW I have been adding everything to the user side of the environment >> vars. Maybe you are running the app as a different user? >> >> -Josh >> >> >> Hmmm, the other day when I ran into "can't find the DLLs" issue, despite > having all the appropriate directories in the user-mode %PATH% > variable, it couldn't find 'em. So, I added to the *system* instance, and > suddenly it could find the DLLs. Windows? How do I hate thee? > Let me count the ways.... > > > > > > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio >
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio