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™
64 X2 Dual Core Processor 3600+ AuthenticAMD GNU/Linux
Greetings,
John
On Tue, Dec 6, 2011 at 12:20 AM, John C. [email protected] wrote:
variable-config.grc. Here I get the error:
File
return expr_utils.sort_objects(variables, lambda v: v.get_id(), lambda
Exception: 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™
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
On Tue, 6 Dec 2011 12:51:50 -0500
Tom R. [email protected] wrote:
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 call gnuradio-companion from a terminal window (That’s where the
error messages come from)
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).
Yes, it is writeable. I did install with default paths, so it is all
in /usr/local, but I ran the demo from the original source tree. To
discard any permission problems, I tried to run as root too.
Is there anything else in your directory that could be causing a name
collision during the Python imports?
Tom
No idea - in the demo directory, only the three examples are present.
From the error message, it seems as if the word ‘True’ is causing
problems. I cannot image any reason for that.
John
On Tue, Dec 6, 2011 at 5:06 PM, John C. [email protected] wrote:
I’m assuming your examples directory you are reading from is writable? I
Is there anything else in your directory that could be causing a name
What OS are you running?
(I’m asking these questions because I’m stumped and am buying time.)
Tom
On Tue, 6 Dec 2011 18:00:51 -0500
Tom R. [email protected] wrote:
What OS are you running?
OS is Linux 2.6.37.3 running on an AMD64 - the distribution is
Slackware64-current with the Gnome SlackBuild additions and XFCE as
window manager.
I have no idea how to debug a mixture of Python and C++, so I can’t be
of much help with suggestions - sorry…
Cheers,
John
On Tue, Dec 6, 2011 at 4:00 PM, Tom R. [email protected]
wrote: