|
From: | Jeff Long |
Subject: | Re: [Discuss-gnuradio] Import block |
Date: | Mon, 20 Oct 2014 15:49:39 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 |
On 10/20/2014 03:42 PM, Jeff Long wrote:
Fernando, Set the PYTHONPATH environment variable to include the location of the file you want to import, then re-run gnuradio-companion (or the generated Python file). In bash: export PYTHONPATH=$PYTHONPATH:/some/other/directory Then you can put 'import psk' in an Import block. - Jeff
Also, if you can say what tutorial you're reading, it would help. If you're referring to the built-in psk.py, you would use something like:
from gnuradio.digital import psk Maybe the tutorial is old and you're using a newer version of GNU Radio? - Jeff
On 10/20/2014 01:36 PM, Fernando Rodríguez Brizuela wrote:Hi, I am a new user of GNURadio and I am interested in use the Import block, to import the PSK.PY file, according to a tutorial that I am reading. The problem is that file doesn' t exists in the file sytem of my GNURADIO. When I try to paste it (after download the file from the page of GNURadio), the block still not work because the Gnuradio doesn't catch the file. (with others file on the same folder it works fine). Could someone help me? What I have to do? Thanks ! Regards, *Fernando L. Rodríguez Brizuela -* _______________________________________________ Discuss-gnuradio mailing list address@hidden https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Prev in Thread] | Current Thread | [Next in Thread] |