[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Discuss-gnuradio] RE: Again! no module named grc!
From: |
Tachwali, Yahia |
Subject: |
RE: [Discuss-gnuradio] RE: Again! no module named grc! |
Date: |
Tue, 17 Nov 2009 17:25:20 +0000 |
Hello Josh,
Thanks alot for your help. Noting that this problem appeared after the restart,
it turns out that the Pythonpath was altered to a default value. I have a 64bit
machine so the libraries are in lib64 folder and not lib as defaulted somehow
in my pc when I do the restart. I followed your instruction that includes
setting up the right values for the pythonpath and it worked.
To avoid the problem to appear again , I had to add this export statement in
the .bashsc file.
Thank you very much for your help.
Kind regards,
Yahia Tachwali
________________________________________
From: Josh Blum address@hidden
Sent: Monday, November 16, 2009 5:07 PM
To: Tachwali, Yahia
Cc: address@hidden
Subject: Re: [Discuss-gnuradio] RE: Again! no module named grc!
Step 1) Lets avoid issues with multiple versions of gnuradio and stuff
like that. Remove **all** gnuradio stuff in /usr with rm -rf. Dont let a
single gnuradio directory survive.
Step 2) Run sudo make install from your gnuradio build directory. Take
note where the python files get installed.
Step 3) run this in the terminal:
python -c "from gnuradio import grc"
If there is no error, then grc and gnuradio should work. Done!
---------------------------------------------------------------
However, if this program spits out an error, you must set your
PYTHONPATH. The python path is a directory that ends in site-package or
dist-packages. Mine is /usr/local/lib/python2.6/dist-packages
Step 4) Set your python path by adding this line to ~/.bashrc
export PYTHONPATH=/your/pythonpath/here
Step 5) type bash, then run this command again:
python -c "from gnuradio import grc"
it should work!
-Josh
Tachwali, Yahia wrote:
> I know that this problem have been repeated alot in tis maillist but for me,
> non of the export statements for python or boost libarary helped in solving
> the problem. Indeed, I had this working before but after a restart this
> problem showed up again and I am really confused what should I do.
>
> Kind regards,
> Yahia Tachwali
> ________________________________________
> From: address@hidden address@hidden on behalf of Tachwali, Yahia
> address@hidden
> Sent: Monday, November 16, 2009 1:08 PM
> To: address@hidden
> Subject: [Discuss-gnuradio] Again! no module named grc!
>
> Hello Guys,
>
> How can I debug the problem when I type grc in the terminal, I get:
>
> File "/usr/local/bin/grc/", line 33, in <module>
> from gnuradio.grc import VERSION
> ImportError: No module named grc
>
> I got the dial_tone.py working so I do not think it is a python path problem
> but I am not sure, also when I run usrp_probe, I get:
> Traceback (most recent call last):
> File "/usr/local/bin/usrp_probe" , line 28 , in <module>
> from gnuradio.grc.gui.Dialogs import TextDisplay
> ImportError: No module named grc.gui.Dialogs
>
> Please advise.
>
>
> Kind regards,
> Yahia Tachwali
>
> _______________________________________________
> 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