Hello world ex. & grc problem

Hi everyone,

I am newbie both at gnuradio and linux environment and I am currently
working on a project about usrp.
First of all I’ve installed the gnuradio-3.2.2 and ubuntu 9.04. Then i
tried
to run the dial tone example.

When i run dial tone example on
http://www.gnu.org/software/gnuradio/doc/exploring-gnuradio.html on the
terminal
there is nothing wrong, i mean it doesn’t give any error messages but i
can’t hear anything from my computer’s
speakers. Do i have to do any extra process to execute the code?

My second question is about the grc. I wanted to use this gui to try
some
examples. But when i write the terminal
“grc” i got this messages;

mehmet@mehmet-laptop:~$ grc
Generic Colouriser 1.1

grc [options] command [args]

Options:
-e --stderr redirect stderr. If this option is selected,
do not automatically redirect stdout
-s --stdout redirect stdout, even if -e is selected
-c name --config=name use name as configuration file for grcat
–colour=word word is one of: on, off, auto

Is there something wrong with it? How can i open the grc GUI ?

Thanks …

About my second question:

Now I noticed that I have another program with a name of generic
colouriser
and when i type grc on the terminal i run this program. Now i uninstall
generic colouriser and then type grc again but now i got this message:

File “/usr/lib/python2.6/email/init.py”, line 82, in getattr
return getattr(mod, name)
File “/usr/lib/python2.6/email/init.py”, line 82, in getattr
return getattr(mod, name)
RuntimeError: maximum recursion depth exceeded

Original exception was:
Traceback (most recent call last):
File “/usr/bin/grc”, line 48, in
from gnuradio.grc.python.Platform import Platform
File
“/usr/lib/python2.6/dist-packages/gnuradio/grc/python/Platform.py”,
line 22, in
from … base.Platform import Platform as _Platform
File “/usr/lib/python2.6/dist-packages/gnuradio/grc/base/Platform.py”,
line 22, in
from … base import ParseXML, odict
File “/usr/lib/python2.6/dist-packages/gnuradio/grc/base/ParseXML.py”,
line 20, in
from lxml import etree
File “lxml.etree.pyx”, line 188, in lxml.etree
(src/lxml/lxml.etree.c:124917)
LookupError: unknown encoding: ASCII

The second question in the first mail is invalid!

Thanks…

2009/11/11 mehmet kabasakal [email protected]

File “/usr/lib/python2.6/dist-packages/gnuradio/grc/base/ParseXML.py”,
line 20, in
from lxml import etree
File “lxml.etree.pyx”, line 188, in lxml.etree
(src/lxml/lxml.etree.c:124917)
LookupError: unknown encoding: ASCII

did you install the python-lxml package?

Hi josh,
I’ve installed all the packages at
http://gnuradio.org/trac/wiki/GNURadioCompanion page.(i.e: python 2.6,
python-lxml, cheetah, python-gtk) and also i have installed the libxml2
and
libxslt libraries. But still I got the following error;

File “/usr/lib/python2.6/email/init.py”, line 82, in getattr
return getattr(mod, name)
File “/usr/lib/python2.6/email/init.py”, line 82, in getattr
return getattr(mod, name)
RuntimeError: maximum recursion depth exceeded

Original exception was:
Traceback (most recent call last):
File “/usr/bin/grc”, line 48, in
from gnuradio.grc.python.Platform import Platform
File
“/usr/lib/python2.6/dist-packages/gnuradio/grc/python/Platform.py”,
line 22, in
from … base.Platform import Platform as _Platform
File “/usr/lib/python2.6/dist-packages/gnuradio/grc/base/Platform.py”,
line 22, in
from … base import ParseXML, odict
File “/usr/lib/python2.6/dist-packages/gnuradio/grc/base/ParseXML.py”,
line 20, in
from lxml import etree
File “lxml.etree.pyx”, line 188, in lxml.etree
(src/lxml/lxml.etree.c:124917)
LookupError: unknown encoding: ASCII
mehmet@mehmet-laptop:~/Belgeler/gnuradio-3.2.2$

Do you have any idea why i got this error?

Thanks.

2009/11/12 Josh B. [email protected]

File “/usr/lib/python2.6/dist-packages/gnuradio/grc/base/ParseXML.py”,
line 20, in
from lxml import etree
File “lxml.etree.pyx”, line 188, in lxml.etree
(src/lxml/lxml.etree.c:124917)
LookupError: unknown encoding: ASCII
mehmet@mehmet-laptop:~/Belgeler/gnuradio-3.2.2$

Do you have any idea why i got this error?

I have never seen this error. It usually just works. Did you by some
chance try to install lxml from source? Perhaps there is a conflict
between multiple lxml installs.

What does the following output:
python -c “import lxml.etree; print lxml.etree.version

I get 2.1.5 on ubuntu 9.04

Hope that helps.
-Josh

Hi Josh,
The output of "python -c “import lxml.etree; print
lxml.etree.version
is 2.1.5
as yours.

I’ve uninstalled the gnuradio and reinstalled it again then the error
has
been changed when i write grc on the command line. It is as below;

File “/usr/lib/python2.6/email/init.py”, line 82, in getattr
return getattr(mod, name)
File “/usr/lib/python2.6/email/init.py”, line 82, in getattr
return getattr(mod, name)
RuntimeError: maximum recursion depth exceeded

Original exception was:
Traceback (most recent call last):
File “/usr/local/bin/grc”, line 33, in
from gnuradio.grc import VERSION
ImportError: cannot import name VERSION
mehmet@mehmet-laptop:~$

Do you have any idea about it?
Thanks.

2009/11/13 Josh B. [email protected]

mehmet kabasakal wrote:

File “/usr/lib/python2.6/email/init.py”, line 82, in getattr
return getattr(mod, name)
RuntimeError: maximum recursion depth exceeded

i have no idea about this email stuff, i have never seen it before

Original exception was:
Traceback (most recent call last):
File “/usr/local/bin/grc”, line 33, in
from gnuradio.grc import VERSION
ImportError: cannot import name VERSION
mehmet@mehmet-laptop:~$

Do you have any idea about it?
Thanks.

I bet there is more than one gnuradio setup on your system of different
versions, or something else along those lines… It happens all the
time.

My best guess, there are gnuradio files in
/usr/local/lib/python2.6/dist-packages/gnuradio
and
/usr/lib/python2.6/dist-packages/gnuradio

Whatever the case, remove ALL the gnuradio directories from your /usr,
with “rm -rf” Then reinstall. That way, you only have one copy/one
version of gnuradio on your computer.

-Josh