On Tue, Dec 6, 2011 at 12:20 AM, John Coppens <j...@jcoppens.com> wrote:
> Hi, > > Pardon my newness to gnuradio... I compiled and installed the latest > dev tar.gz. I tried to compile 3.4.2 with autotools, but didn't get > anywhere. So I followed an advice in a mail I found, and, using > cmake/gmake, all went well (no error messages at least). > > Impatiently, I composed a small system with a wav-file reader, low-pass, > and audio-output, and this worked fine. More systematically, I tried to > load the example in /gnuradio-examples/grc/simple, called > variable-config.grc. Here I get the error: > > Generating: > "/usr/local/src/hardware/gnuradio/gnuradio-examples/grc/simple/variable_config_demo.py" > Generate Error: circular dependency caught in sort_variables > >>> Failue > Traceback (most recent call last): > File > "/usr/local/lib64/python2.6/site-packages/gnuradio/grc/gui/ActionHandler.py", > line 291, in _handle_action > generator.write() > File > "/usr/local/lib64/python2.6/site-packages/gnuradio/grc/python/Generator.py", > line 66, in write > open(self.get_file_path(), 'w').write(str(self)) > File > "/usr/local/lib64/python2.6/site-packages/gnuradio/grc/python/Generator.py", > line 102, in __str__ > variables = self._flow_graph.get_variables() > File > "/usr/local/lib64/python2.6/site-packages/gnuradio/grc/python/FlowGraph.py", > line 101, in get_variables > return expr_utils.sort_objects(variables, lambda v: v.get_id(), lambda > v: v.get_var_make()) > File > "/usr/local/lib64/python2.6/site-packages/gnuradio/grc/python/expr_utils.py", > line 148, in sort_objects > sorted_ids = sort_variables(id2expr) > File > "/usr/local/lib64/python2.6/site-packages/gnuradio/grc/python/expr_utils.py", > line 129, in sort_variables > if not indep_vars: raise Exception('circular dependency caught in > sort_variables') > Exception: circular dependency caught in sort_variables > > Executing: > "/usr/local/src/hardware/gnuradio/gnuradio-examples/grc/simple/variable_config_demo.py" > > > Seemingly randomly, I get a red title in some box, and the error message: > > Param - Enabled(_enabled): > Value "True" cannot be evaluated: > circular dependency caught in sort_variables > > Any suggestions for further testing? > > (Python 2.6.6, GNU Radio Companion v3.5.x-xxx-xunknown). > Linux 2.6.37.3 #1 SMP Sun Mar 13 20:31:56 ART 2011 x86_64 AMD Athlon(tm) > 64 X2 Dual Core Processor 3600+ AuthenticAMD GNU/Linux > > > Greetings, > John > John, Where are you running GRC from? And are you trying to run this inside GRC or on the command line after you generate the .py file? I'm assuming your examples directory you are reading from is writable? I ask because the default install is into /usr/local and becomes read-only; the generated .py file is placed in /tmp. I just tried this in the read-only environment on my machine and both executing inside GRC worked as well as from the command-line (in /tmp). Is there anything else in your directory that could be causing a name collision during the Python imports? Tom
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio