discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Problem using GRC when executing the grc examples


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Problem using GRC when executing the grc examples
Date: Wed, 03 Mar 2010 10:06:23 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9pre) Gecko/20100217 Shredder/3.0.3pre

Just to clarify, this problem with the examples has nothing to do with .bashrc. Nevertheless, it is good to understand the .bashrc when working on a unix system (specifically one with bash).

For your installation, just save the .grc file to a writable directory.

For the future: I just pushed a branch that will generate the python file in your system's temp directory should the default directory be read-only.

-Josh

On 03/03/2010 09:39 AM, Tom Gross wrote:
Makmur,

.bashrc is just a convenient way to set environment variables and
aliases when you open a terminal.

if setting theose environment variables (BOOST_PREFIX and
LD_LIBRARY_PATH) before you run grc from the command line fixes your
problem, then you would want to add them to your .bashrc file.

Your .bashrc should be in your home directory.  It should be writable by you.

-Tom

On Wed, Mar 3, 2010 at 7:05 AM, Makmur Hidayat<address@hidden>  wrote:
Hello,

I can run some examples like dial_tone.py, audio_fft.py, and others.

But when using GRC to open grc examples, I can not execute the grc examples
like dial_tone.grc.

Then I try to add the following to .bashrc

export BOOST_PREFIX=/opt/boost_1_37_0
export LD_LIBRARY_PATH=$BOOST_PREFIX/lib

But I can not do that because .bashrc is read only.

Therefore how to solve the problem?

Thank you for your help.
Makmur

This is the error:

Loading: "/usr/share/gnuradio/examples/grc/simple/ber_simulation.grc"
Done

Showing: "/usr/share/gnuradio/examples/grc/simple/ber_simulation.grc"

Generating: "/usr/share/gnuradio/examples/grc/simple/ber_sim.py"
Generate Error: [Errno 13] Permission denied:
'/usr/share/gnuradio/examples/grc/simple/ber_sim.py'
Failue
Traceback (most recent call last):
   File "/usr/lib/python2.6/dist-packages/gnuradio/grc/gui/ActionHandler.py",
line 313, in handle_states
     generator.write()
   File "/usr/lib/python2.6/dist-packages/gnuradio/grc/python/Generator.py",
line 61, in write
     open(self.get_file_path(), 'w').write(str(self))
IOError: [Errno 13] Permission denied:
'/usr/share/gnuradio/examples/grc/simple/ber_sim.py'

Executing: "/usr/share/gnuradio/examples/grc/simple/ber_sim.py"

python: can't open file
'/usr/share/gnuradio/examples/grc/simple/ber_sim.py': [Errno 2] No such file
or directory

Done

_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio




_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio




reply via email to

[Prev in Thread] Current Thread [Next in Thread]